1. Experiment Name: Special case in trunk only this one!
2. Configuration environment: 2 pcs 2 switches
3. Configure IP Address: pc1:192.168.1.1/24 pc2:192.168.1.2/24
4. Connect PC1 switch port configure access mode; Connect PC2 switch port Configure trunk mode
5. Configure the command as follows:
<Huawei>system-view [SW1]int Eth0/0/1 [SW1-Ethernet0/0/1]port link-type access [SW1]interface Eth0/0/2 [SW1-Ethernet0/0/2]port link-type trunk [SW1-Ethernet0/0/2]port trunk allow-pass vlan all <Huawei>system-view [SW2]interface Eth0/0/2 [SW2-Ethernet0/0/2]port link-type trunk [SW2-Ethernet0/0/2]port trunk allow-pass vlan all 下面配置连接PC2的端口: [SW2-Ethernet0/0/1]port link-type trunk [SW2-Ethernet0/0/1]port trunk allow-pass vlan all 验证、测试:
can also pass-ii.
Why is it? Try to change pvid.
In the switch SW2
[Sw2-ethernet0/0/1]undo Port trunk allow-pass VLAN All
[Sw2-ethernet0/0/1]port trunk Pvid VLAN 2
Test:
Cause: Because all ports on the switch belong to VLAN1 by default, when the packet that identifies PC1 is detected to be VLAN1, the default VLAN1 port is found directly in the MAC Address table, and the switch itself strips out the label to all the ports that belong to VLAN1. While the trunk is allowed by all VLANs through;
(Huawei) Special case in trunk pc1:access Pc2:trunk only one example to achieve interoperability