实验环境
通过华为eNSP软件实现
1.两台S3700交换机
2.四台电脑
PC1:192.168.0.1
PC2:192.168.0.2
PC3:192.168.0.3
PC4:192.168.0.4
PC11:192.168.0.11
PC22:192.168.0.22
PC33:192.168.0.33
PC44:192.168.0.44
Trunk实现多交换机相同VLAN机器互通
Trunk-中继链路,可以承载多个VLAN的数据
[Huawei]interface ethernet 0/0/5
[Huawei-Ethernet0/0/5]port link-type trunk
[Huawei-Ethernet0/0/5]port trunk allow-pass vlan all
接口组
[Huawei]port-group 1
[Huawei-port-group-1]group-member ethernet 0/0/3 ethernet 0/0/4
[Huawei-port-group-1]port link-type access
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/4]port link-type access
[Huawei-port-group-1]port default vlan 3
[Huawei-Ethernet0/0/3]port default vlan 3
[Huawei-Ethernet0/0/4]port default vlan 3
链路聚合
[Huawei]interface eth-trunk 1
[Huawei-Eth-Trunk1]trunkport ethernet 0/0/5 0/0/6
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk1]port link-type trunk
[Huawei-Eth-Trunk1]port trunk allow-pass vlan all
[Huawei-Eth-Trunk1]display vlan
The total number of vlans is : 3
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
--------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------
1 common UT:Eth0/0/7(D) Eth0/0/8(D) Eth0/0/9(D) Eth0/0/10(D)
Eth0/0/11(D) Eth0/0/12(D) Eth0/0/13(D) Eth0/0/14(D)
Eth0/0/15(D) Eth0/0/16(D) Eth0/0/17(D) Eth0/0/18(D)
Eth0/0/19(D) Eth0/0/20(D) Eth0/0/21(D) Eth0/0/22(D)
GE0/0/1(D) GE0/0/2(D) Eth-Trunk1(U)
2 common UT:Eth0/0/3(U) Eth0/0/4(U)
TG:Eth-Trunk1(U)
3 common UT:Eth0/0/1(U) Eth0/0/2(U)
TG:Eth-Trunk1(U)
VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
1 enable default enable disable VLAN 0001
2 enable default enable disable VLAN 0002
3 enable default enable disable VLAN 0003