首页 IP地址和主机名的映射

IP地址和主机名的映射

举报
开通vip

IP地址和主机名的映射IP地址和主机名的映射 IP地址是192.168.1.0 和192.168.2.0网段 配置: R1: Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R1 R1(config)#int s0/0/0 R1(config-if)#ip add 192.168.1.1 255.255.255.0 R1(config-if)#c...

IP地址和主机名的映射
IP地址和主机名的映射 IP地址是192.168.1.0 和192.168.2.0网段 配置: R1: Router>enable Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R1 R1(config)#int s0/0/0 R1(config-if)#ip add 192.168.1.1 255.255.255.0 R1(config-if)#clock rate 56000 R1(config-if)#no shut %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down R1(config-if)#exit R1(config)#ip host R1 192.168.1.1 R1(config)#router rip R1(config-router)#network 192.168.1.0 R1(config-router)#end %SYS-5-CONFIG_I: Configured from console by console R1# R2: Router> Router>en Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)# Router(config)#host R2 R2(config)# R2(config)# R2(config)#int s0/0/1 R2(config-if)#ip add 192.168.1.2 255.255.255.0 R2(config-if)#no shut %LINK-5-CHANGED: Interface Serial0/0/1, changed state to up R2(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up R2(config-if)# R2(config-if)#int s0/0/0 R2(config-if)#ip add 192.168.2.1 255.255.255.0 R2(config-if)#clock rate 56000 R2(config-if)#no shut %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down R2(config-if)#exit R2(config)#ip host R2 192.168.2.1 R2(config)#router rip R2(config-router)#network 192.168.1.0 R2(config-router)#network 192.168.2.0 R2(config-router)#end %SYS-5-CONFIG_I: Configured from console by console R2# R3: Router>en Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R3 R3(config)#int s0/0/1 R3(config-if)#ip add 192.168.2.2 255.255.255.0 R3(config-if)#no shut %LINK-5-CHANGED: Interface Serial0/0/1, changed state to up R3(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up R3(config-if)#exit R3(config)#ip host R3 192.168.2.2 R3(config)#router rip R3(config-router)#network 192.168.2.0 R3(config-router)#end %SYS-5-CONFIG_I: Configured from console by console R3# 测试: R1#ping R1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 48/59/62 ms R1#ping R2 Translating "R2" % Unrecognized host or address or protocol not running. R1#ping R3 Translating "R3" % Unrecognized host or address or protocol not running. R1# 这说明,这种IP和主机名的绑定,不在RIP学习中,传递 也就是说:地址和主机名的映射,不随网络的学习传递。 只是存在在所配置的路由器上。这里估计是在该路由器上 生成一个条目在测试的时候,自动进行DNS解析。 再次测试: 加上配置: R1#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# R1(config)# R1(config)#ip host R1 192.168.1.1 R1(config)#ip host R2 192.168.2.1 R1(config)#ip host R3 192.168.2.2 R1(config)# R1#ping R1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms R1#ping R2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms R1#ping R3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms 试验完成.
本文档为【IP地址和主机名的映射】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_882336
暂无简介~
格式:doc
大小:23KB
软件:Word
页数:5
分类:生活休闲
上传时间:2017-10-19
浏览量:17