LSW14:
undo terminal monitor
system-view
sysname SW1
vlan batch 10 20 30 40 66
interface Ethernet0/0/1
port link-type access
port default vlan 10
int e0/0/2
port link-type access
port default vlan 20
int e0/0/16
port link-type trunk
port trunk allow-pass vlan all
LSW15:
undo terminal monitor
system-view
sysname SW2
vlan batch 10 20 30 40 66
interface Ethernet0/0/3
port link-type access
port default vlan 10
int e0/0/4
port link-type access
port default vlan 30
int e0/0/6
port link-type trunk
port trunk allow-pass vlan all
LSW16:
undo terminal monitor
system-view
sysname SW3
vlan batch 10 20 30 40 66
interface Ethernet0/0/5
port link-type access
port default vlan 20
int e0/0/6
port link-type access
port default vlan 40
int e0/0/14
port link-type trunk
port trunk allow-pass vlan all
LSW17:
undo terminal monitor
system-view
sysname SW4
vlan batch 10 20 30 40 66
interface Ethernet0/0/7
port link-type access
port default vlan 40
int e0/0/8
port link-type access
port default vlan 30
int e0/0/18
port link-type trunk
port trunk allow-pass vlan all
LSW13:
undo terminal monitor
system-view
sysname SW6
vlan batch 10 20 30 40 66
dhcp enable
interface Vlanif10
ip address 192.168.10.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.66.1
quit
interface Vlanif20
ip address 192.168.20.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.66.1
quit
interface Vlanif30
ip address 192.168.30.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.66.1
quit
interface Vlanif40
ip address 192.168.40.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 192.168.66.1
quit
interface Vlanif66
ip address 192.168.66.254 255.255.255.0
quit
port-group group-member g0/0/16 g0/0/6 g0/0/14 g0/0/18
port link-type trunk
port trunk allow-pass vlan all
quit
int g0/0/8
port link-type access
port default vlan 66
quit
AR6:
undo terminal monitor
system-view
sysname DHCP
dhcp enable
ip pool 10
gateway-list 192.168.10.254
network 192.168.10.0 mask 255.255.255.0
quit
ip pool 20
gateway-list 192.168.20.254
network 192.168.20.0 mask 255.255.255.0
quit
ip pool 30
gateway-list 192.168.30.254
network 192.168.30.0 mask 255.255.255.0
quit
ip pool 40
gateway-list 192.168.40.254
network 192.168.40.0 mask 255.255.255.0
quit
interface GigabitEthernet0/0/0
ip address 192.168.66.1 255.255.255.0
dhcp select global
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.66.254