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>enableRouter#
2. Enter configuration mode and set the hostname to California.
Router#config tRouter(config)#Router(config)#hostname CaliforniaCalifornia(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 0California(config-if)#California(config-if)#ip address 195.42.36.10 255.255.255.240California(config-if)#no shutdown
4. Now that we have an IP address, connect to Router 2 and enter privilege mode.
Router>enableRouter#
5. Enter Configuration mode and set the hostname to Tampa.
Router#config tRouter(config)#Router(config)#hostname TampaTampa(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 0Tampa(config-if)#Tampa(config-if)#ip address 195.42.36.12 255.255.255.240Tampa(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)#exitTampa(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#)exitTampa#ping California
9. You can now verify that the entry is made in the router by using the command show
hosts.
Tampa#show hosts