實例講解路由器OSPF配置之測試接口的連通性
路由器OSPF的基本配置—測試接口的連通性
接口的連通性是最重要的一個環(huán)節(jié),如果這個環(huán)節(jié)沒有保證,就根本無法進行下面的操作。
在每臺路由器的特權(quán)模式依次輸入如下命令,用于查看接口狀態(tài):
- R1#sh ip interface brief
- Interface IP-Address OK? Method Status Protocol
- Serial1/0 199.99.1.1 YES manual up up
- Loopback0 1.1.1.1 YES manual up up
- R2# sh ip interface brief
- Interface IP-Address OK? Method Status Protocol
- Serial1/0 199.99.1.2 YES manual up up
- Serial1/1 199.99.2.1 YES manual up up
- Loopback0 2.2.2.2 YES manual up up
- R3#sh ip interface brief
- Interface IP-Address OK? Method Status Protocol
- Serial1/1 199.99.2.2 YES manual up up
- Loopback0 3.3.3.3 YES manual up up
注意:一定要注意灰色部分一定都要雙“UP”。
在中間路由器R2的特權(quán)模式依次輸入如下命令:
R2#ping 199.99.1.1 利用ping命令來測試直連接口的連通性
- Type escape sequence to abort.
- Sending 5, 100-byte ICMP Echos to 199.99.1.1, timeout is 2 seconds:
- !!!!!
- Success rate is 100 percent (5/5), round-trip min/avg/max = 8/28/84 ms
- R2#ping 199.99.2.2
- Type escape sequence to abort.
- Sending 5, 100-byte ICMP Echos to 199.99.2.2, timeout is 2 seconds:
- !!!!!
- Success rate is 100 percent (5/5), round-trip min/avg/max = 12/26/60 ms
也可在中間路由器R2的配置模式依次輸入如下命令:(此為新版IOS12.4命令)
- R2(config)#do ping 199.99.1.1
- Type escape sequence to abort.
- Sending 5, 100-byte ICMP Echos to 199.99.1.1, timeout is 2 seconds:
- !!!!!
- R2(config)#do ping 199.99.2.2
- Sending 5, 100-byte ICMP Echos to 199.99.2.2, timeout is 2 seconds:
- !!!!!
- Success rate is 100 percent (5/5), round-trip min/avg/max = 12/26/60 ms
“!!!!!”表示可達,如果出現(xiàn)“.”或者“U”,代表的是不可達。
路由器OSPF配置中的測試接口的連通性配置過程我們就向大家介紹完了,希望大家已經(jīng)掌握。下一篇我們將會為大家介紹路由器OSPF配置的第三步:OSPF的基本配置及連通性測試
【編輯推薦】