侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

CCNA实验:配置路由器的主机名与ip地址映射表

2023-04-03 星期一 / 0 评论 / 0 点赞 / 74 阅读 / 1049 字

R3#R3#conf tEnter configuration commands, one per line. End with CNTL/Z.R3(config)#hostname Bob此条配置

.

R3#
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#hostname Bob

此条配置本路由的名称,除了好记没有什么特殊用途


第一步:在Bob上配置主机与IP地址的映射关系
Bob(config)# ip host PEER 1.1.1.2
第二步:查看当前路由器上进行的映射关系配置
R1#sh hosts
Default domain is not set
Name/address lookup uses static mappings

Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate
temp - temporary, perm - permanent
NA - Not Applicable None - Not defined

Host Port Flags Age Type Address(es)
PEER None (perm, OK) 0 IP 1.1.1.2
第三步:验证
Bob#ping PEER

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/69/84 ms

.

广告 广告

评论区