SW1
[Huawei]vlan batch 2 to 6
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 2
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type hybrid
[Huawei-GigabitEthernet0/0/2]port hybrid pvid vlan 3
[Huawei-port-group-hybrid]port hybrid untagged vlan 2 to 6
[Huawei-port-group-hybrid]q
[Huawei]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type trunk
[Huawei-port-group-trunk]port trunk allow-pass vlan 2 to 6
[Huawei]int g0/0/4
[Huawei-GigabitEthernet0/0/4]port hybrid tagged vlan 2
[Huawei-GigabitEthernet0/0/4]port hybrid untagged vlan 3 to 6
SW2
[Huawei]vlan batch 2 to 6
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]p
[Huawei-GigabitEthernet0/0/1]port link-type a
[Huawei-GigabitEthernet0/0/1]port default vlan 2
[Huawei-GigabitEthernet0/0/2]port link-type hybrid
[Huawei-GigabitEthernet0/0/2]port hybrid pvid vlan 4
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/2]port hybrid untagged vlan 2 3 4 6
[Huawei-GigabitEthernet0/0/2]
[Huawei-GigabitEthernet0/0/3]port link-type trunk
[Huawei-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 to 6
[Huawei-GigabitEthernet0/0/3]
[Huawei-GigabitEthernet0/0/3]int g0/0/4
[Huawei-GigabitEthernet0/0/4]port link-type trunk
[Huawei-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 to 6
SW3
[Huawei]vlan batch 2 to 6
[SW3]int g0/0/3
[SW3-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 to 6
[SW3-GigabitEthernet0/0/3]int g0/0/2
[SW3-GigabitEthernet0/0/2]port link-type hybrid
[SW3-GigabitEthernet0/0/2]port hybrid pvid vlan 5
[SW3-GigabitEthernet0/0/2]port hybrid untagged vlan 2 3 5
R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.2.254 255.255.255.0
[R1-GigabitEthernet0/0/0]dhcp select interface
[R1-GigabitEthernet0/0/0]dhcp server lease day 1 hour 0 m 0
[R1-GigabitEthernet0/0/0]dhcp server dns-list 114.114.114.114
[R1-GigabitEthernet0/0/0]int g0/0/0.1
[R1-GigabitEthernet0/0/0.1]dot1q termination vid 2
[R1-GigabitEthernet0/0/0.1]dhcp select interface
[R1-GigabitEthernet0/0/0.1]dhcp server lease day 1 hour 0 m 0
[R1-GigabitEthernet0/0/0.1]dhcp server dns-list 114.114.114.114