注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 网工人才缺口大 传统网管..
 帮助

DHCP


2007-01-15 04:45:12
 标签: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     

本文出自 “穿过地狱去看海” 博客,谢绝转载!



上一篇 配置802.1X验证  下一篇 配置Voice vlan



    文章评论
 
2007-01-18 16:09:15
原来如彼。。。

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: