全局地址池的DHCP拓扑图:
R1:
配置全局DHCP pool1 、 pool2 :
ip pool pool1
network 192.168.100.0 24
gateway-list 192.168.100.254
excluded-ip-address 192.168.100.240 192.168.100.254 //排除240-254地址段
dns-list 8.8.8.8
lease day 2
ip pool pool2
network 192.168.200.0 24
gateway-list 192.168.200.254
dns-list 8.8.8.8
lease day 2
interface g0/0/0:
system-view
interface g0/0/0
ip add 192.168.100.254 24
interface g0/0/0
dhcp select pool1
interface g0/0/1:
interface g0/0/1
ip add 192.168.200.254 24
interface g0/0/1
dhcp select pool2
dis ip pool //查看地址池信息