<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>,如需轉載請自行聯系原作者