<a href="http://blog.51cto.com/attachment/201310/214300967.png" target="_blank"></a>
两个华为交换机之间配置trunk
LSW1 LSW2
192.168.2.1/24 -------vlan2 (E0/0/2)
192.168.3.1/24 -------vlan3 (E0/0/3)
---------------------------------^-^----------------------------------------
1.配置LSW1,LSW2的管理vlan 1 按照配置LSW1的方法配置LSW2
<a href="http://blog.51cto.com/attachment/201310/215251997.png" target="_blank"></a>
2.创建vlan 2 vlan 3把端口划分进去
[LSW1]int e0/0/2
[LSW1-Ethernet0/0/2]port link-type access
[LSW1]vlan 2
[LSW1-vlan2]port Ethernet 0/0/2
[LSW1]int e0/0/3
[LSW1-Ethernet0/0/3]port link-type access
[LSW1]vlan 3
[LSW1-vlan2]port Ethernet 0/0/3
<a href="http://blog.51cto.com/attachment/201310/220740969.png" target="_blank"></a>
[LSW2]int e0/0/2
[LSW2-Ethernet0/0/2]port link-type access
[LSW2]vlan 2
[LSW2-vlan2]port Ethernet 0/0/2
[LSW2]int e0/0/3
[LSW2-Ethernet0/0/3]port link-type access
[LSW2]vlan 3
[LSW2-vlan2]port Ethernet 0/0/3
<a href="http://blog.51cto.com/attachment/201310/220918531.png" target="_blank"></a>
2.LSW1---------LSW2的trunk
[LSW1]int e0/0/1
[LSW1-Ethernet0/0/1]port link-type trunk
[LSW1-Ethernet0/0/1]port trunk allow-pass vlan 1 2 3
[LSW2]int e0/0/1
[LSW2-Ethernet0/0/1]port link-type trunk
[LSW2-Ethernet0/0/1]port trunk allow-pass vlan 1 2 3
3<b>。主机1 ping 主机2</b>
<a href="http://blog.51cto.com/attachment/201310/221945654.png" target="_blank"></a>
本文转自zhang25yun51CTO博客,原文链接: <b>http://blog.51cto.com/1585654/1307098</b>,如需转载请自行联系原作者