取消
显示结果 
搜索替代 
您的意思是: 
cancel
2212
查看次数
5
有帮助
1
回复

关于dhcp地址保留问题

guiyangzhou
Level 1
Level 1

有个问题想请教一下各位大佬,我在交换机上起了一个dhcp地址池,192.168.20.0/22,想要保留一下192.168.21-23.0;192.168.21-23.255;这几个ip不被终端获取到,保留地址如果ip dhcp excluded-address 192.168.21.0

ip dhcp excluded-address 192.168.21.255,这样的写法是交换机会不会认为是保留的是整个网段的?

 

配置如下:

ip dhcp excluded-address 192.168.21.0

ip dhcp excluded-address 192.168.21.255

ip dhcp excluded-address 192.168.22.0

ip dhcp excluded-address 192.168.22.255

ip dhcp excluded-address 192.168.23.0

ip dhcp excluded-address 192.168.23.255

 

ip dhcp pool vlan20
network 192.168.20.0 255.255.252.0
default-router 192.168.20.1
dns-server 10.128.0.1 10.20.20.12
lease 0 4

1 条回复1

ilay
VIP
VIP

不会,除非ios有bug

ip dhcp excluded-address  Low-IP-Addr  High-IP-Addr

如果只写一个ip地址那么仅排除这个ip,如果按照范围写就是排除一个范围

例如:

ip dhcp excluded-address 192.168.1.0 192.168.1.20

ip dhcp excluded-address 192.168.3.0 

 

快捷链接