且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CCNA(Stand-ALONE)Lab 11-Creating a Host Table

更新时间:2022-09-22 21:45:01

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)#
CCNA(Stand-ALONE)Lab 11-Creating a Host Table

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
CCNA(Stand-ALONE)Lab 11-Creating a Host Table

3. Connect to Router 2, and set the host name to Tampa.
Router>enable
Router#config t
Router(config)#hostname Tampa
Tampa(config)#
CCNA(Stand-ALONE)Lab 11-Creating a Host Table

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
CCNA(Stand-ALONE)Lab 11-Creating a Host Table

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
CCNA(Stand-ALONE)Lab 11-Creating a Host Table

6. Now you should be able to ping California’s Ethernet 0 IP address from Tampa just by typing ping California.
Tampa#ping California
CCNA(Stand-ALONE)Lab 11-Creating a Host Table

7. Use the show hosts command to verify that the entry is stored in the router’s host table.
Tampa#show hosts
CCNA(Stand-ALONE)Lab 11-Creating a Host Table
*******************************************************
Above:CCNA(Stand-ALONE)Lab 10-ARP
Next:CCNA(Stand-ALONE)Lab 12-Static Routes



本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/71840,如需转载请自行联系原作者