路由器dhcp配置自动获取ip

上传人:ji****n 文档编号:45282197 上传时间:2018-06-15 格式:DOC 页数:3 大小:61KB
返回 下载 相关 举报
路由器dhcp配置自动获取ip_第1页
第1页 / 共3页
路由器dhcp配置自动获取ip_第2页
第2页 / 共3页
路由器dhcp配置自动获取ip_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《路由器dhcp配置自动获取ip》由会员分享,可在线阅读,更多相关《路由器dhcp配置自动获取ip(3页珍藏版)》请在金锄头文库上搜索。

1、R1en R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int f0/0 R1(config-if)#ip add 12.1.1.1 255.255.255.0 R1(config-if)#no sh R1(config-if)# *Mar 1 00:01:10.847: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up *Mar 1 00:01:11.847: %LINEPROTO-5-UPDOWN:

2、 Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#exit R1(config)#service dhcp R1(config)#ip dhcp excluded-address 23.1.1.1 23.1.1.100 R1(config)#ip dhcp pool 205 R1(dhcp-config)#network 23.1.1.0 255.255.255.0 R1(dhcp-config)#default-router 23.1.1.1 R1(dhcp-config)#dns-s

3、erver 8.8.8.8 R1(dhcp-config)#dns-server 202.102.224.68R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ip dhcp excluded-address 24.1.1.1 24.1.1.100 R1(config)#ip dhcp pool 207 R1(dhcp-config)#network 24.1.1.0 255.255.255.0 R1(dhcp-config)#default-router 24.1.1.1 R1(

4、dhcp-config)#dns-server 8.8.8.8 R1(dhcp-config)#dns-server 202.102.224.68 R1(dhcp-config)#R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ip route R1(config)#ip route 23.1.1.0 255.255.255.0 12.1.1.2 R1(config)#ip route 24.1.1.0 255.255.255.0 12.1.1.2 R1(config)#Z R1

5、# *Mar 1 00:10:05.699: %SYS-5-CONFIG_I: Configured from console by consoleR2en R2#conf t Enter configuration commands, one per line. End with CNTL/Z. R2(config)#int f0/0 R2(config-if)#ip add 12.1.1.2 255.255.255.0 R2(config-if)#no sh R2(config-if)# *Mar 1 00:12:40.483: %LINK-3-UPDOWN: Interface Fast

6、Ethernet0/0, changed state to up *Mar 1 00:12:41.483: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#int f1/0 R2(config-if)#ip add 23.1.1.1 255.255.255.0 R2(config-if)#no sh R2(config-if)#int f *Mar 1 00:13:04.163: %LINK-3-UPDOWN: Interface FastEth

7、ernet1/0, changed state to up *Mar 1 00:13:05.163: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up R2(config-if)#int f2/0 R2(config-if)#ip add 24.1.1.1 255.255.255.0 R2(config-if)#no sh R2(config-if)# *Mar 1 00:13:26.587: %LINK-3-UPDOWN: Interface FastEthernet2/0

8、, changed state to up *Mar 1 00:13:27.587: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2/0, changed state to up R2(config-if)#int f1/0 R2(config-if)#ip helper-address 12.1.1.1 R2(config-if)#int f2/0 R2(config-if)#ip helper-address 12.1.1.1 R2(config-if)#Z R2#*Mar 1 00:14:15.723: %SYS

9、-5-CONFIG_I: Configured from console by console R2#R3en R3#conf t Enter configuration commands, one per line. End with CNTL/Z. R3(config)#int f0/0 R3(config-if)#no sh R3(config-if)#ip add *Mar 1 00:16:51.827: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up *Mar 1 00:16:52.827: %LINEPR

10、OTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R3(config-if)#ip address dhcp R3(config-if)# *Mar 1 00:17:18.483: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 23.1.1.101, mask 255.255.255.0, hostname R3R3(config-if)#R4en R4#conf t Enter configuration commands, one per line. End with CNTL/Z. R4(config)#int f0/0 R4(config-if)#no sh R4(config-if)#ip address dhcp R4(config-if)# *Mar 1 00:25:59.555: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 24.1.1.101, mask 255.255.255.0, hostname R2

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号