DHCP
版权声明:原创作品,谢绝转载!否则将追究法律责任。 |
在ROUTER1上配置DHCP服务器,分配10.1.1.0/24网段到R2.域名为CCIE.COM,DNS服务器地址:10.1.1.1/24 10.1.1.2/24.默认网关为10.1.2.1,如果此网关FAIL,则选择10.1.2.2为默认网关。并永不释放这些地址
配置命令:
r1:
conf t
no ip dhcp conflict logging 检测DHCP地址冲突
ip dhcp excluded-address 10.1.1.1 10.1.1.2 配置不分配的IP地址
ip dhcp pool 1
domain-name ccie.com 配置CCIE.COM域名
dns-server 10.1.1.1 10.1.1.2 配置DNS服务器
default-router 10.1.2.1 10.1.2.2 配置默认网关
network 10.1.1.0 /24 把10.1.1.0/24网段加入地址池
lease infinite 设定释放地址的时间间隔为infinite
exit
int f 0/0
ip ad 10.1.1.1 255.255.255.0
no shut
end
R2
conf t
int f 0/0
ip address dhcp
no shut
end
校验
R1#sh ip dhcp bind Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 10.1.1.4 0063.6973.636f.2d63. Infinite Automatic 6130.302e.3066.3130. 2e30.3030.302d.4661. 302f.30 R2#sh ip int b Interface IP-Address OK? Method Status Protocol FastEthernet0/0 10.1.1.4 YES DHCP up up 本文出自 “穿过地狱去看海” 博客,谢绝转载! 本文出自 51CTO.COM技术博客 |



cj231210
博客统计信息
热门文章
最新评论
友情链接

