在cisco 網絡設備中創建主機名解析

咱們在進行網絡設備管理時,須要一些測試(ping、telnet、traceroute ....),咱們會在後面輸入相應的IP地址,若是在一個網絡設備比較多的環境下進行測試,讓咱們記住相應的IP倒是個麻煩的事情,使用cisco自帶的主機名解析能夠解決這一問題,咱們僅須要記住主機名就能夠了,配置環境以下:網絡

084819276.png

1.R1(config)#ip host R2 12.1.1.2 \將名稱R2和IP 12.1.1.2相對應;ide

2.R1#ping R2測試

Type escape sequence to abort.blog

Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:ip

!!!!!ci

Success rate is 100 percent (5/5), round-trip min/avg/max = 24/36/44 msget

3.R1#telnet R2it

Trying R2 (12.1.1.2)... Openio

User Access Verification
class

Username: admin

Password:

R2>en

Password:

R2#

4.R1#traceroute R2

Type escape sequence to abort.

Tracing the route to R2 (12.1.1.2)

1 R2 (12.1.1.2) 36 msec * 60 msec

相關文章
相關標籤/搜索