BÀI 6. Creating A Host Table
BÀI 6. Creating A Host Table
Lab Topology
The topology diagram below represents the NetMap in the Simulator.
S0/0/0 S0/0/0
Router1 Router3
Command Summary
Command Description
clock rate clock-rate sets the clock rate for a Data Communications Equipment
(DCE) interface
configure terminal enters global configuration mode from privileged EXEC mode
enable enters privileged EXEC mode
end ends and exits configuration mode
exit exits one level in the menu structure
hostname host-name sets the device name
interface type number changes from global configuration mode to interface
configuration mode
ip address ip-address subnet-mask assigns an IP address to an interface
ip host host-name ip-address configures a static host name-to-address mapping in the host
cache of a device
no shutdown enables an interface
ping ip-address sends an Internet Control Message Protocol (ICMP) echo
request to the specified address
show hosts displays the default domain name, a list of name server hosts,
and a cached list of host names and addresses
show running-config displays the active configuration file
IP Addresses
Device Interface IP Address Subnet Mask
Router1 (Tampa) Serial 0/0/0 195.42.36.10 255.255.255.240
Router2 (California) Serial 0/0/0 195.42.36.12 255.255.255.240
Serial 0/0/1 179.42.36.2 255.255.255.240
Router3 (Washington) Serial 0/0/0 179.42.36.1 255.255.255.240
Lab Tasks
Task 1: Configure the Routers
In this task, you will be configuring the interfaces of Router1 and Router2 and adding a host table entry.
A host table entry is the host name and IP address of another device on a network. The host name is
mapped to its IP address in the host table, which enables you to issue commands by using the host name
instead of an IP address.
1. Configure Router1 with a host name of Tampa.
2. On Router1, configure the appropriate IP address on the Serial 0/0/0 interface; refer to the IP
Addresses table. Enable the interface.
4. On Router2, configure the appropriate IP address on the Serial 0/0/0 interface; refer to the IP
Addresses table. Configure a clock rate of 1000000, and enable the interface.
5. When troubleshooting, it is inconvenient to memorize every IP address that you might need, so
adding host table entries will permit you to use the names of the devices you wish to reach. On
Router1, configure an entry in the host table for Router2, California, and map it to the IP address of
Router2’s Serial 0/0/0 interface.
2. On Router3, configure the appropriate IP address on the Serial 0/0/0 interface; refer to the IP
Addresses table. Enable the interface.
3. On Router2, configure the appropriate IP address on the Serial 0/0/1 interface; refer to the IP
Addresses table. Configure a clock rate of 1000000, and enable the interface.
4. On Router2, configure an entry in the host table for Washington and map it to the IP address of
Router3’s Serial 0/0/0 interface.
5. On Router2, configure a host table entry for Tampa and map it to the IP address of Router1’s Serial
0/0/0 interface.
6. On Router3, configure a host table entry for California and map it to the IP address of Router2’s
Serial 0/0/1 interface.
Router>enable
Router#configure terminal
Router(config)#hostname Tampa
2. On Router1, issue the following commands to configure the appropriate IP address on the Serial
0/0/0 interface and to enable the interface:
3. Issue the following commands to configure Router2 with a host name of California:
Router>enable
Router#configure terminal
Router(config)#hostname California
4. On Router2, issue the following commands to configure the appropriate IP address on the Serial
0/0/0 interface, to configure a clock rate of 1000000, and to enable the interface:
5. When troubleshooting, it is inconvenient to memorize every IP address that you might need,
so adding host table entries will permit you to use the names of the devices you wish to reach.
On Router1, issue the following commands to configure an entry in the host table for Router2,
California, and to map it to the IP address of Router2’s Serial 0/0/0 interface:
Tampa(config-if)#exit
Tampa(config)#ip host California 195.42.36.12
A host table entry is the host name and IP address of another device on a network. The host name
is mapped to its IP address in the host table, which enables you to issue commands by using the
host name instead of an IP address.
Tampa(config)#end
Tampa#ping California
2. Verify the host entry by issuing the show hosts command on Tampa. Sample output is shown below:
Tampa#show hosts
Name lookup view: Global
Default domain is not set
Name/address lookup uses static mappings
Router>enable
Router#configure terminal
Router(config)#hostname Washington
2. You should issue the following commands on Router3 to configure the appropriate IP address on the
Serial 0/0/0 interface and to enable the interface:
3. You should issue the following commands on Router2 to configure the appropriate IP address on the
Serial 0/0/1 interface, to configure a clock rate, and to enable the interface:
California(config-if)#exit
California(config)#ip host Washington 179.42.36.1
5. You should issue the following command on Router2 to configure a host table entry for Tampa and
to map it to the IP address of Router1’s Serial 0/0/0 interface:
6. You should issue the following commands on Router3 to configure a host table entry for California
and to map it to the IP address of Router2’s Serial 0/0/1 interface:
Washington(config-if)#exit
Washington(config)#ip host California 179.42.36.2
California(config)#end
California#ping Tampa
California#ping Washington
2. You should issue the following command on Router2 to verify the host entry:
California#show hosts
Name lookup view: Global
Default domain is not set
Name/address lookup uses static mappings
3. You should issue the ping California command on Router3 to test connectivity to Router2. The ping
should be successful.
Washington(config)#end
Washington#ping California
Washington#show hosts
Name lookup view: Global
Default domain is not set
Name/address lookup uses static mappings
Copyright © 1996–2015 Boson Software, LLC. All rights reserved. NetSim software and documentation are protected by copyright law.