Cisco路由器的dhcp服务的配置的命令

时间:2024-03-06 08:33:50

 

Router(config)#IP DHCP POOL Jason

Router(dhcp-config)#net 172.16.10.0 255.255.255.0

Router(dhcp-config)#default-router 172.16.10.1

Router(dhcp-config)#dns-server 8.8.8.8

Router(dhcp-config)#exit

Router(config)#ip dhcp excluded-address 172.16.10.1 172.16.10.10

Router(config)# 

Router(config)#int vlan 1

Router(config-if)# ip address 172.16.10.1 255.255.255.0

Router(config-if)#no shut
检查DHCP设置

Router#sh ip dhcp binding

IP address Client-ID/ Lease expiration Type

Hardware address

172.16.10.11 00E0.F908.C4CC --