Do VLANs Need to Be Assigned on the Intermediate Device That Transparently Transmits Packets?
- If Switch1 and Switch2 where VLANs are not assigned use default VLAN configuration, VLANs do not need to be assigned on the switch.
- If VLANs are assigned on Switch1 and Switch2, VLANs need to be assigned on the switch.
For example, GE1/0/1 interfaces connecting Switch1 and Switch2 to the switch transparently transmit packets from VLAN 10 and VLAN 20, so GE1/0/2 and GE1/0/3 on the switch need be configured to transparently transmit packets from VLAN 10 and VLAN 20. Perform the following configurations.
[HUAWEI] vlan batch 10 20 [HUAWEI] interface gigabitethernet 1/0/2 [HUAWEI-GigabitEthernet1/0/2] port link-type trunk [HUAWEI-GigabitEthernet1/0/2] port trunk allow-pass vlan 10 20 [HUAWEI-GigabitEthernet1/0/2] quit [HUAWEI] interface gigabitethernet 1/0/3 [HUAWEI-GigabitEthernet1/0/3] port link-type trunk [HUAWEI-GigabitEthernet1/0/3] port trunk allow-pass vlan 10 20