CCNA實驗:配置路由器的主機名與ip地址映射表

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

此條配置本路由的名稱,除了好記沒有什麼特殊用途app


第一步:在Bob上配置主機與IP地址的映射關係
Bob(config)# ip host PEER 1.1.1.2
第二步:查看當前路由器上進行的映射關係配置
R1#sh hosts
Default domain is not set
Name/address lookup uses static mappingsdom

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

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

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路由

相關文章
相關標籤/搜索