实验拓扑图如下:

LSW5三层交换机配置:
# sysname LSW5 # vlan batch 10 20 # dhcp enable # ip pool 1 gateway-list 192.168.1.254 network 192.168.1.0 mask 255.255.255.0 dns-list 8.8.8.8 # ip pool 2 gateway-list 192.168.2.254 network 192.168.2.0 mask 255.255.255.0 dns-list 8.8.8.8 # interface Vlanif10 ip address 192.168.1.254 255.255.255.0 dhcp select global # interface Vlanif20 ip address 192.168.2.254 255.255.255.0 dhcp select global # interface MEth0/0/1 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 # # sysname LSW5 # vlan batc