一、拓扑图如下:LSW1 配置:SW1:dhcp enable#interface Vlanif10ip address 192.168.10.1 255.255.255.0vrrp vrid 10 virtual-ip 192.168.10.254vrrp vrid 10 priority 120vrrp vrid 10 preempt-mode timer delay 10dhcp select global#interface Vlanif20ip address 192.168.20.2 255.255.255.0vrrp vrid 20 virtual-ip 192.168.20.254dhcp select global#ip pool vlan10gateway-list 192.168.10.254network 192.168.10.0 mask 255.255.255.0excluded-ip-address 192.168.10.1 192.168.10.2static-bind ip-address 192.168.10.253 mac-address 5489-98d0-6f33lease day 3 hour 0 minute 0dns-list 114.114.114.114 8.8.8.8#