显示标签为“AR2200”的博文。显示所有博文
显示标签为“AR2200”的博文。显示所有博文

2014年5月23日星期五

Example for Configuring Communication Between VLANs Using VLANIF Interfaces



Huawei AR150&160&200&1200&2200&3200 Series Enterprise Routers Configuration Guide - Example for Configuring Communication Between VLANs Using VLANIF Interfaces

Networking Requirements
As shown in Figure 1, Ethernet 2/0/1 of the Router is connected to the uplink interface of SwitchA.
On SwitchA, the downlink interface Ethernet 2/0/1 is added to VLAN 10 and the downlink
interface Ethernet 2/0/2 is added to VLAN 20.
PC1 in VLAN 10 and PC2 in VLAN 20 need to communicate with each other

Figure 1 Network diagram for communication between VLANs through VLANIF interfaces

Configuration Roadmap
The configuration roadmap is as follows:
1. Add Ethernet interfaces to the VLAN.
2. Configure VLANIF interfaces.

Procedure
Step 1 Configure the Router.
# Create VLANs.
<Huawei> system-view
[Huawei] sysname Router
[Router] vlan batch 10 20
# Add interfaces to the VLANs.
[Router] interface ethernet 2/0/1
[Router-Ethernet2/0/1] port link-type trunk
[Router-Ethernet2/0/1] port trunk allow-pass vlan 10 20
[Router-Ethernet2/0/1] quit
# Assign IP addresses to the VLANIF interfaces.
[Router] interface vlanif 10
[Router-Vlanif10] ip address 10.10.10.1 24
[Router-Vlanif10] quit                   
[Router] interface vlanif 20
[Router-Vlanif20] ip address 20.20.20.1 24
[Router-Vlanif20] quit

Step 2 Configure SwitchA.
# Create VLANs.
<Huawei> system-view
[Huawei] sysname SwitchA
[SwitchA] vlan batch 10 20
# Add interfaces to the VLANs.
[SwitchA-Ethernet2/0/1] port link-type access
[SwitchA-Ethernet2/0/1] port default vlan 10
[SwitchA-Ethernet2/0/1] quit
[SwitchA] interface ethernet 2/0/2
[SwitchA-Ethernet2/0/2] port link-type access
[SwitchA-Ethernet2/0/2] port default vlan 20
[SwitchA-Ethernet2/0/2] quit
[SwitchA] interface ethernet 2/0/3
[SwitchA-Ethernet2/0/3] port link-type trunk
[SwitchA-Ethernet2/0/3] port trunk allow-pass vlan 10 20
[SwitchA-Ethernet2/0/3] quit

Step 3 Verify the configuration.
On PC1 in VLAN 10, configure the default gateway address as the IP address of VLANIF 10 (in this example: 10.10.10.1/24).
On PC2 in VLAN 20, configure the default gateway address as the IP address of VLANIF 20 (in this example: 20.20.20.1/24).
After the configuration is complete, PC1 in VLAN 10 can communicate with PC2 in VLAN 20.
----End

Configuration Files
Configuration file of the Router
#
sysname Router
#
vlan batch 10 20
#
interface Vlanif10
ip address 10.10.10.1 255.255.255.0
#
interface Vlanif20
ip address 20.20.20.1 255.255.255.0
#
interface Ethernet2/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
#
return
Configuration file of SwitchA
#
sysname SwitchA
#
vlan batch 10 20
#
interface Ethernet2/0/1
port link-type access
port default vlan 10
#
interface Ethernet2/0/2
port link-type access
port default vlan 20
#
interface Ethernet2/0/3
port link-type trunk
port trunk allow-pass vlan 10 20
#
Return

More related:

2013年12月23日星期一

How to Configuring Local Traffic Mirroring of Huawei Router

Pre-configuration Tasks
Before configuring local traffic mirroring, complete the following task:
Ensuring that the link layer protocol status of ports is Up.

1 Configuring a Local Observing Port
Context
In local mirroring, the monitoring device is directly connected to the observing port.
Do not configure other functions on an observing port; otherwise, the mirroring function is
affected.
1 If other service packets are transmitted on the observing port besides the mirrored packets, the packet sources cannot be identified.
2 If congestion occurs on the observing port, mirrored packets may be discarded because of their low priorities.

Step 1 Run:
system-view
The system view is displayed.

Step 2 Run:
observe-port interface interface-type interface-number
A local observing port is configured.
----End

2 Configuring a Traffic Classifier
Configure complex traffic classification by selecting proper traffic classification rules. For
details, see Configuring a Traffic Classifier in the Huawei AR150&200&1200&2200&3200
Series Enterprise Routers Configuration Guide - QoS.

3 Configuring a Traffic Behavior
By configuring the traffic behavior, the device mirrors all the packets matching traffic
classification rules to the observing interface.

Procedure
Step 1 Run:
system-view
The system view is displayed.

Step 2 Run:
traffic behavior behavior-name
A traffic behavior is configured and its view is displayed.

Step 3 Run:
mirror to observe-port
Traffic matching the rules is mirrored to the specified observing port.
----End

4 Configuring a Traffic Policy
Step 1 Run:
system-view
The system view is displayed.

Step 2 Run:
traffic policy policy-name
A traffic policy is created and its view is displayed.

Step 3 Run:
classifier classifier-name behavior behavior-name
The traffic policy is associated with the traffic classifier and the traffic behavior containing traffic mirroring.
In the preceding command, classifier-name specifies a traffic classifier. The value of this
parameter must be the same as the value set in 7.5.2 Configuring a Traffic Classifier. The
behavior-name parameter specifies a traffic behavior. The value of this parameter must be the same as the value set Configuring a Traffic Behavior.
----End

5 Applying a Traffic Policy
You can apply a traffic policy bound to traffic behaviors and traffic classifiers to a mirrored port. For details, see Applying the Traffic Policy in the Huawei AR150&200&1200&2200&3200 Series Enterprise Routers Configuration Guide - QoS.

6 Checking the Configuration
1 Run the display observe-port command to check the observing port.
2 Run the display traffic behavior { system-defined | user-defined } [ behavior-name ]
command to check the traffic behavior configuration.
3 Run the display traffic classifier { system-defined | user-defined } [ classifier-name ]
command to check the traffic classifier configuration.
4 Run the display traffic policy user-defined [ policy-name [ classifier classifier-name ] ]
command to check the traffic policy configuration.
5 Run the display traffic-policy applied-record [ policy-name ] command to check the
application record of a specified mirroring policy.

----End
Customers interested in purchasing huawei router or the price, please refer to below links:

Contact information:
Telephone: +852-30501940(Hong Kong)
Fax: +852-30501941
Email:   sales@huanetwork.com(Sales Inquiries)
Address: 3/F, China Fen Hin Bld., 5 Cheung Yue St., Cheung Sha Wan, KLN., Hong Kong
Website: http://www.huanetwork.com