Objective: Become familiar with the router’s host table. Host tables can be used to set names for commonly used IP addresses, which helps with troubleshooting.
Lab Equipment: Router 1 from the eRouters menu
1. Connect to Router 1, and set the host name to California.
Router>enable
Router#config t
Router(config)#hostname California
California(config)#
2. configure an IP address of 195.42.36.10 255.255.255.240 on the Ethernet 0 interface;be sure to enable the interface.
California(config)#interface ethernet 0
California(config-if)#ip address 195.42.36.10 255.255.255.240
California(config-if)#no shutdown
3. Connect to Router 2, and set the host name to Tampa.
Router>enable
Router#config t
Router(config)#hostname Tampa
Tampa(config)#
4. configure an IP address of 195.42.36.12 255.255.255.240 on the Ethernet 0 interface; be sure to enable the interface.
Tampa(config)#interface ethernet 0
Tampa(config-if)#ip address 195.42.36.12 255.255.255.240
Tampa(config-if)#no shutdown
Tampa(config-if)#exit
5. Exit interface mode. You do not want to have to type California’s Ethernet 0 IP address every time you try to ping it from Tampa, so set a host table entry for California using the IP address 195.42.36.10.
Tampa(config)#ip host California 195.42.36.10
Tampa(config#)exit
6. Now you should be able to ping California’s Ethernet 0 IP address from Tampa just by typing ping California.
Tampa#ping California
7. Use the show hosts command to verify that the entry is stored in the router’s host table.
Tampa#show hosts
本文出自 “王乾De技术Blog” 博客,请务必保留此出处http://redking.blog.51cto.com/27212/71840
版权与免责声明
1、本站所发布的文章仅供技术交流参考,本站不主张将其做为决策的依据,浏览者可自愿选择采信与否,本站不对因采信这些信息所产生的任何问题负责。
2、本站部分文章来源于网络,其版权为原权利人所有。由于来源之故,有的文章未能获得作者姓名,署“未知”或“佚名”。对于这些文章,有知悉作者姓名的请告知本站,以便及时署名。如果作者要求删除,我们将予以删除。除此之外本站不再承担其它责任。
3、本站部分文章来源于本站原创,本站拥有所有权利。
4、如对本站发布的信息有异议,请联系我们,经本站确认后,将在三个工作日内做出修改或删除处理。
请参阅权责声明!