思科设备DHCP配置命令

时间:2022-12-01 20:56:10


Cisco(config)#ip dhcp pool pool1

Cisco(dhcp-config)#network 192.168.1.0 255.255.255.0

Cisco(dhcp-config)#default-router 192.168.1.254

Cisco(dhcp-config)#dns-server 114.114.114.144 8.8.8.8

Cisco(dhcp-config)#exit

Cisco(config)#ip dhcp excluded-address 192.168.1.254

Cisco(config-if)#ip helper-address 192.168.2.1  //在中继设备上配置DHCP服务器地址

Cisco#show ip dhcp binding  //显示dhcp地址下发绑定情况

Cisco#show ip dhcp pool

Cisco#debug ip dhcp server events