LSW1
sysname LSW1
vlan batch 10 30
dhcp enable
ip pool vlan30
gateway-list 30.30.30.254
network 30.30.30.0 mask 255.255.255.0
dns-list 114.114.114.114
interface Vlanif10
ip address 10.10.10.1 255.255.255.0
interface Vlanif30
ip address 30.30.30.254 255.255.255.0
dhcp select global
interface GigabitEthernet0/0/1
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan 10 20 30
ip route-static 20.20.20.0 255.255.255.0 10.10.10.2
ip route-static 30.30.30.0 255.255.255.0 10.10.10.2
LSW2
sysname LSW2
vlan batch 10 20 30
dhcp enable
interface Vlanif10
ip address 10.10.10.2 255.255.255.0
interface Vlanif20
ip address 20.20.20.2 255.255.255.0
interface Vlanif30
dhcp select relay
interface Ethernet0/0/1
port link-type trunk
port trunk pvid vlan 20
port trunk allow-pass vlan 10 20 30
interface GigabitEthernet0/0/1
port link-type trunk
port trunk pvid vlan 10
port trunk allow-pass vlan 10 20 30
ip route-static 30.30.30.0 255.255.255.0 10.10.10.1
LSW3
sysname LSW3
vlan batch 20 30
dhcp enable
interface Vlanif20
ip address 20.20.20.1 255.255.255.0
interface Vlanif30
dhcp select relay
dhcp relay server-ip 30.30.30.253
interface Ethernet0/0/1
port link-type trunk
port trunk pvid vlan 20
port trunk allow-pass vlan 10 20 30
interface Ethernet0/0/2
port link-type access
port default vlan 30
ip route-static 10.10.10.0 255.255.255.0 20.20.20.2
ip route-static 30.30.30.0 255.255.255.0 20.20.20.2