这篇文章是关于CISCO路由器作为您的网络中的DHCP服务器来配置。
任务1:配置R1作为一个DHCP服务器,局域网内的主机动态提供所有的网络信息。(R1和R2通过以太网直连)
服务器配置(R1)
!– enable dhcp server (default)
service dhcp ! — defining DHCP pool with all network information ip dhcp pool OFFICE !– defining static binding to R2 using its client-id ip dhcp pool STATIC !– exclude server and static addresses from the dynamic pool ip dhcp excluded-address 192.168.12.1 |
客户端配置:
interface FastEthernet0/0 ip address dhcp client-id FastEthernet0/0 |
从R1 R2得到它的域名动态
!– R2 f0/0 address is assigned via DHCP
R2(config-if)#do sh ip int b !– R1 bindings has R2 as a static entry R1#sh ip dhcp binding |
R2#sh ip route Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static routeGateway of last resort is 192.168.12.1 to network 0.0.0.0
C 192.168.12.0/24 is directly connected, FastEthernet0/0 |
R2使用浮动静态路由的默认网关设置R1
从R1,R2学习的DNS服务器
|
本文地址:http://www.45fan.com/cisco/753.html