首先,在华为核心交换机开启DHCP服务(华为默认是没有开启DHCP服务的)
DHCP enable 开启DHCP服务
DHCP enable 开启DHCP服务vlan 20quitint vlan k20ip add 192.168.20.254 24dhcp select globalip pool vlan20network 192.168.20.0 mask 24gate-list 192.168.20.254dns-list 202.96.128.166 114.114.114.114lease day 1excluded-ip-address 192.168.20.1 192.168.20.100