我们有一个带有DHCP地址池的Cisco路由器。
#show config <snip> ip cef no ip dhcp use vrf connected ip dhcp excluded-address 192.168.1.1 192.168.1.99 ip dhcp excluded-address 192.168.1.151 192.168.1.254 ! ip dhcp pool bigpool network 192.168.1.0 255.255.255.0 dns-server 210.22.70.3 210.22.84.3 default-router 192.168.1.1 option 150 ip 192.168.1.1 ! </snip>
我如何删除或修改排除的地址。 我试过了:
#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. (config)#no ip dhcp excluded-address 192.168.1.151 192.168.1.254 % Range [192.168.1.151, 192.168.1.254] is not in the database.
你已经使用了正确的命令,但是你正在显示你的保存(启动)configuration,而不是你的运行configuration。 因此,直到你copy run start提交运行configuration到内存(所以这是在启动时使用的), show config将不是当前路由器正在使用的configuration。
如果您使用show run ,它将显示您当前的configuration,您应该看到dhcp排除不再存在。