sw1
vlan batch 2 to 6
sw2
vlan batch 2 to 6
sw3
vlan batch 2 to 6
sw1
int g0/0/1
port link-type access
port default vlan 2
int g 0/0/2
port link-type hybrid
port hybrid untagged vlan 3 to 6
port hybrid pvid vlan 3
int g 0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 6
int g 0/0/4
p l h
p h u v 3 4 5 6
port hybrid tagged vlan 2
sw2:
int g 0/0/1
port link-type access
port default vlan 2
int g 0/0/2
p l h
port hybrid pvid vlan 4
port hybrid untagged vlan 3 to 6
int g 0/0/3
p l t
p t a v 2 t 6
int g 0/0/4
p l t
p t a v 2 t 6
sw3:
int g 0/0/1
p l h
p h p v 5
p h u v 3 4 5
int g 0/0/2
p l h
p h p v 6
p h u v 3 4 6
int g 0/0/3
p l t
p t a v
p t a v 2 3 4 5 6
r1
sy R1
int g 0/0/0
ip address 192.168.1.1 24
int g 0/0/0.1
ip address 192.168.2.1 24
dot1q termination vid 2
arp broadcast enable
dhcp enable
ip pool aa
network 192.168.1.0 mask 24
gateway-list 192.168.1.1
dns-list 114.114.114.114
ip pool bb
q
network 192.168.2.0 mask 24
gateway-list 192.168.2.1
dns-list 114.114.114.114