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

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
*******************************************************
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值