DHCP配置梳理
(1)dhcp select global 全局配置地址池
DHCP的IP POOL配置在全局模式下,在接口上启用dhcp select global,接口应用全局的dhcp地址池。如建设一个有4个不同VLAN的域采用DHCP配置可以这样配。
ip pool vlan2
gateway-list 192.168.2.1
network 192.168.2.0 mask 255.255.255.0
excluded-ip-address 192.168.2.253 192.168.2.254
#
ip pool vlan3
gateway-list 192.168.3.1
network 192.168.3.0 mask 255.255.255.0
excluded-ip-address 192.168.3.253 192.168.3.254
#
ip pool vlan4
gateway-list 192.168.4.1
network 192.168.4.0 mask 255.255.255.0
excluded-ip-address 192.168.4.253 192.168.4.254
#
ip pool vlan5
gateway-list 192.168.5.1
network 192.168.5.0 mask 255.255.255.0
excluded-ip-address 192.168.5.253 192.168.5.254
在int vlanif端口下启用dhcp select global
interface Vlanif2
ip address 192.168.2.254 255.255.255.0
vrrp vrid 2 virtual-ip 192.168.2.