2014年2月28日星期五

Configuring RADIUS Attribute Translation

The Huawei ME60 can communicate with RADIUS servers from different vendors through the RADIUS attribute translation function.

Run:
system-view
The system view is displayed.
Run:
radius-server group group-name
The RADIUS server group view is displayed.
Run:
radius-server attribute translate
RADIUS attribute translation is enabled.
Run:
radius-attribute translate extend src-attr-description dest-attr-description{ access-accept | { access-request | account } * }
RADIUS attribute translation is configured.


NOTE:
You can configure translation of up to 64 attributes on the ME60-X3

2014年2月23日星期日

Configuration Example of the RADIUS Authentication

The Huawei MA5680T    is interconnected with the RADIUS server through the RADIUS protocol to implement authentication.

Configure the authentication scheme.

Configure authentication scheme newscheme (users are authenticated through RADIUS).

huawei(config)#aaa

huawei(config-aaa)#authentication-scheme newscheme

huawei(config-aaa-authen-newscheme)#authentication-mode radius

huawei(config-aaa-authen-newscheme)#quit

huawei(config-aaa)#quit

Configure the RADIUS protocol.

Create RADIUS server template template1. RADIUS server 10.10.66.66 functions as the primary authentication server, and RADIUS server 10.10.66.67 functions as the secondary authentication.

huawei(config)#radius-server template template1

 Note: Create a new server template

huawei(config-radius-template1)#radius-server authentication 10.10.66.66 1812

huawei(config-radius-template1)#radius-server authentication 10.10.66.67 1812 secondary

huawei(config-radius-template1)#quit

Create a domain.

Create domain isp1.

huawei(config)#aaa

huawei(config-aaa)#domain isp1

  Info: Create a new domain 

Reference the authentication scheme.

You can reference an authentication scheme in a domain only after the authentication scheme is created.

huawei(config-aaa-domain-isp1)#authentication-scheme newscheme

Reference the RADIUS server template.

You can reference a RADIUS server template in a domain only after the RADIUS server template is created.

huawei(config-aaa  MA5680T    -domain-isp1)#radius-server template1


huawei(config-aaa-domain-isp1)#quit

2014年2月20日星期四

Configuration Example of the IPv4 Static Route

This topic describes how to manually add the IPv4 static route to implement the interconnection between MA5683T  /MA5600

Configure the IP address of the Layer 3 interface.

The configurations for the three MA5600T/MA5603T devices are the same. The configuration of the MA5600T/MA5603T is considered as an example.

huawei(config)#vlan 2 smart

huawei(config)#port vlan 2 0/19 0

huawei(config)#interface vlanif 2

huawei(config-if-vlanif2)#ip address 1.1.1.2 24

huawei(config-if-vlanif2)#ip address 1.1.2.1 24 sub

huawei(config-if-vlanif2)#quit

Configure IPv4 static routes.

Configure an IPv4 static route for MA5600T/MA5603T_A.

huawei(config)#ip route-static 1.1.5.0 255.255.255.0 1.1.2.2

huawei(config)#ip route-static 1.1.4.0 255.255.255.0 1.1.2.2

Configure an IPv4 static route for MA5600T/MA5603T_B.

huawei(config)#ip route-static 1.1.5.0 255.255.255.0 1.1.3.1

huawei(config)#ip route-static 1.1.1.0 255.255.255.0 1.1.3.1

Configure IPv4 static routes for MA5600T/MA5603T_C.

huawei(config)#ip route-static 1.1.1.0 255.255.255.0 1.1.2.1

huawei(config)#ip route-static 1.1.4.0 255.255.255.0 1.1.3.2

Configure the host gateways.

Configure the default gateway of Host A to 1.1.1.2.

Configure the default gateway of Host B to 1.1.4.2.

Configure the default gateway of Host C to 1.1.5.2.

Save the data.

huawei#save

Configuration example of MA5600T/MA5603T_A.

vlan 2 smart

port vlan 2 0/19 0

interface vlanif 2

ip address 1.1.1.2 24

ip address 1.1.2.1 24 sub

quit

ip route-static 1.1.5.0 255.255.255.0 1.1.2.2


ip route-static 1.1.4.0 255.255.255.0 1.1.2.2

Configuring Spatial Multicast

Only the NE80E/40E-X8 and ME60  /NE40E-X8    support spatial multicast.

Run:

system-view

The system view is displayed.

Run:

spatial-multicast

The spatial multicast view is displayed

Run:

spatial-multicast slot slot-id1 [ to slot-id2 ]

Spatial multicast is enabled on the board that resides in the specified slot.

Run:

spatial-multicast { p2mp-te | mldp } bandwidth bandwidth-value

The spatial multicast bandwidth is configured for P2MP traffic to implement load balancing.

Run:

commit


The configuration is committed.

2014年2月17日星期一

Configuration Example of the RADIUS Authentication

The MA5600 is interconnected with the RADIUS server through the RADIUS protocol to implement authentication.

Configure the authentication scheme.

Configure authentication scheme newscheme (users are authenticated through RADIUS).

huawei(config)#aaa

huawei(config-aaa)#authentication-scheme newscheme

huawei(config-aaa-authen-newscheme)#authentication-mode radius

huawei(config-aaa-authen-newscheme)#quit

huawei(config-aaa)#quit

Configure the RADIUS protocol.

Create RADIUS server template template1. RADIUS server 10.10.66.66 functions as the primary authentication server, and RADIUS server 10.10.66.67 functions as the secondary authentication.

huawei(config)#radius-server template template1

 Note: Create a new server template

huawei(config-radius-template1)#radius-server authentication 10.10.66.66 1812

huawei(config-radius-template1)#radius-server authentication 10.10.66.67 1812 secondary

huawei(config-radius-template1)#quit

Create a domain.

Create domain isp1.

hawei(config)#aaa

huawei(config-aaa)#domain isp1

  Info: Create a new domain 

Reference the authentication scheme.

You can reference an authentication scheme in a domain only after the authentication scheme is created.

huawei(config-aaa-domain-isp1)#authentication-scheme newscheme

Reference the RADIUS server template.

You can reference a RADIUS server template in a domain only after the RADIUS server template is created.

huawei(config-aaa-domain-isp1)#radius-server template1


huawei(config-aaa  MA5600T  -domain-isp1)#quit

2014年2月16日星期日

Configuring huawei MA5600

Configure MA5683T   the IP address of the L3 interface.

huawei(config)#vlan 2 smart

huawei(config)#port vlan 2 0/7 0

huawei(config)#interface vlanif 2

huawei(config-if-vlanif2)#ip address 10.0.0.2 24

huawei(config-if-vlanif2)#quit

Configure the ACL.

huawei(config)#acl 2000

huawei(config-acl-basic-2000)#rule deny source 30.0.0.0 255.255.255.0

huawei(config-acl-basic-2000)#rule permit source any

huawei(config-acl-basic-2000)#quit

Enable OSPF and specify the area id to which the interface belongs.

huawei(config)#ospf

huawei(config-ospf-1)#area 0

huawei(config-ospf-1-area-0.0.0.0)#network 10.0.0.0 0.0.0.255

huawei(config-ospf-1-area-0.0.0.0)#quit

huawei(config-ospf-1)#quit

Configure the OSPF router ID.

huawei(config)#router id 2.2.2.2

Filter imported routes.

huawei(config)#ospf

uawei(config-ospf-1)#filter-policy 2000 import

huawei(config-ospf-1)#quit

Save the data.


huawei(config  MA5600   )#save

2014年2月13日星期四

Configuring Local Flow Mirroring

LS-S2326TP-EI-AC   does not support flow mirroring.

Create a VLAN on the Switch and add interfaces to the VLAN in trunk mode.

# Add Ethernet 0/0/1, Ethernet 0/0/3, and Ethernet 0/0/5 to the same VLAN in trunk mode.

The following takes the configuration of Ethernet 0/0/1 as an example. The configurations

of Ethernet 0/0/3 and Ethernet 0/0/5 are the same as the configuration of Ethernet 0/0/1 and

are not mentioned here.

<Switch> system-view

[Switch] vlan 10

[Switch-vlan10] quit

[Switch] interface ethernet 0/0/1

[Switch-Ethernet0/0/1] port link-type trunk

[Switch-Ethernet0/0/1] port trunk allow-pass vlan 10

[Switch-Ethernet0/0/1] quit

2. Configure an observing port.

# Set Ethernet 0/0/24 as the observing port.

[Switch] observe-port 1 interface ethernet 0/0/24

3. # Create a traffic classifier.

# Create traffic classifier c1 and set the traffic classification rule that only the packets with

the 802.1p priority as 6 can be matched.

[Switch] traffic classifier c1

[Switch-classifier-c1] if-match 8021p 6

[Switch-classifier-c1] quit

4. # Create a traffic behavior.

# Create traffic behavior b1 and configure flow mirroring in the traffic behavior.

[Switch] traffic behavior b1

[Switch-behavior-b1] mirroring to observe-port 1

[Switch-behavior-b1] quit

5. Create a traffic policy.

# Create a traffic policy and bind traffic classifier c1 to traffic behavior b1.

[Switch] traffic policy p1

[Switch-trafficpolicy-p1] classifier c1 behavior b1

[Switch-trafficpolicy-p1] quit

6. Apply the traffic policy and enable the interface to trust the 802.1p priority of packets.

# Apply traffic policy p1 to Ethernet 0/0/1 and Ethernet 0/0/5, and enable Ethernet 0/0/1

and Ethernet 0/0/5 to trust the 802.1p priority of packets.

[Switch] interface ethernet 0/0/1

[Switch-Ethernet0/0/1] traffic-policy p1 inbound

[Switch-Ethernet0/0/1] trust 8021p

[Switch-Ethernet0/0/1] quit

[Switch]interface ethernet 0/0/5

[Switch-Ethernet0/0/5] traffic-policy p1 inbound

[Switch-Ethernet0/0/5] trust 8021p

[Switch-Ethernet0/0/5] quit

7. Verify the configuration.

# Run the display port-mirroring command. You can check the observing port.

[Switch] display port-mirroring

Stream-mirror:

----------------------------------------------------------------------

Behavior Direction Observe-port

----------------------------------------------------------------------

b1 - Ethernet0/0/24

----------------------------------------------------------------------

# Run the display traffic policy interface command. You can check the traffic policy

applied to Ethernet 0/0/1 and Ethernet 0/0/5.

[Switch] display traffic policy interface

Interface: Ethernet0/0/1

Direction: Inbound

Policy: p1

Classifier: c1

Operator: AND

Rule(s) :

if-match 8021p 6

Behavior: b1

Mirroring to observe-port 1

Interface: Ethernet0/0/5

Direction: Inbound

Policy: p1

Classifier: c1

Operator: AND

Rule(s) :

if-match 8021p 6

Behavior: b1


Mirroring to LS-S2326TP-SI-AC  observe-port 1