Search This Blog

Nov 2, 2010

Lab 11: Creating a Host table

Objective:  Our goal of this lab is to become familiarized with the Routers Host Table.
We can use a host table to set names for commonly used IP addresses. This will help us
with troubleshooting or make our lives easier if we are testing a lot with pings.  
Lab Equipment: We will be using Router 1.  To select Router 1 click on the button
labeled "Router 1" at the top of the screen. 



1. Connect to Router 1 and enter Privilege mode

Router> 
Router>enable 
Router# 

2. Enter configuration mode and set the hostname to California.

Router#config t 
Router(config)# 
Router(config)#hostname California 
California(config)# 

3.  Set an IP address of 195.42.36.10 255.255.255.240 on Ethernet 0’s interface, make
sure to enable the interface. 

California(config)#interface ethernet 0 
California(config-if)# 
California(config-if)#ip address 195.42.36.10 255.255.255.240 
California(config-if)#no shutdown  

4. Now that we have an IP address, connect to Router 2 and enter privilege mode.
Router>enable 
Router#  

5. Enter Configuration mode and set the hostname to Tampa.         
Router#config t 
Router(config)# 
Router(config)#hostname Tampa 
Tampa(config)#  

6. Set an IP address of 195.42.36.12 255.255.255.240 on Ethernet 0’s interface, make
sure to enable the interface.         
Tampa(config)#interface ethernet 0 
Tampa(config-if)# 
Tampa(config-if)#ip address 195.42.36.12 255.255.255.240 
Tampa(config-if)#no shutdown 

7. Exit out of interface mode and now we are going to make a host table entry.  We do
not want to have to type California’s Ethernet 0 IP address every time we try to ping it so
we are going to set a host table entry for California using the IP address
195.42.36.10.         
Tampa(config-if)#exit 
Tampa(config)# 
Tampa(config)#ip host California 195.42.36.10  

8. After we have done this we should be able to ping California’s Ethernet 0 IP address
just by typing ping California.         
Tampa(config#)exit 
Tampa#ping California  

9. You can now verify that the entry is made in the router by using the command show
hosts.         
Tampa#show hosts