标签:dhcp
R1配置DHCP服务,另PC0和PC1能通过DHCP获取IP
R1配置:
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip dhcp excluded-address 192.168.1.1 --------排除IP不被DHCP分配
Router(config)#ip dhcp pool LAN-POOL-1 --------新建DHCP地址池
Router(dhcp-config)#network 192.168.1.0 255.255.255.0 --------设置DHCP地址池
Router(dhcp-config)#default-router 192.168.1.1 ---------设置网关
Router(dhcp-config)#dns-server 192.168.1.1 ----------设置DNS服务器
DHCP验证:
PC1
PC2
R1
本文出自 “小li同学” 博客,请务必保留此出处http://ljclee.blog.51cto.com/9538192/1607167
标签:dhcp
原文地址:http://ljclee.blog.51cto.com/9538192/1607167