CCNA RIP 實驗

wKioL1askVeDdoqZAAAthMCmo4w465.png1.沒配RIP之前

PC1只能ping通  R1 f0.0 192.168.0.1

PC2不能ping通  R2 f0.0 192.168.0.2

有同學要問,不是192.168.0.1與192.168.0.2 都是192.168.0.0網絡麼?


R1#show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route


Gateway of last resort is not set


C    192.168.0.0/24 is directly connected, FastEthernet0/0

C    192.168.2.0/24 is directly connected, FastEthernet0/1



R1#show ip interface brief 

Interface                  IP-Address      OK? Method Status                Protocol

FastEthernet0/0            192.168.0.1     YES manual up                    up      

FastEthernet0/1            192.168.2.1     YES manual up                    up      

R1#






R2#show ip route            

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route


Gateway of last resort is not set


C    192.168.0.0/24 is directly connected, FastEthernet0/0

C    192.168.1.0/24 is directly connected, FastEthernet0/1



R2#show  ip interface brief 

Interface                  IP-Address      OK? Method Status                Protocol

FastEthernet0/0            192.168.0.2     YES manual up                    up      

FastEthernet0/1            192.168.1.1     YES manual up                    up      

R2#







PC1#traceroute 192.168.1.2


Type escape sequence to abort.

Tracing the route to 192.168.1.2


  1 192.168.2.1 36 msec 32 msec 28 msec

  2 192.168.2.1 !H  !H  !H 




PC1#ping 192.168.0.1      


Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 16/20/24 ms




PC1#ping 192.168.0.2


Type escape sequence to abort.

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

.....

Success rate is 0 percent (0/5)

PC1#


PC2#traceroute 192.168.2.2


Type escape sequence to abort.

Tracing the route to 192.168.2.2


  1 192.168.1.1 1072 msec 72 msec 112 msec

  2 192.168.1.1 !H  !H  !H 



PC2#ping 192.168.0.2        


Type escape sequence to abort.

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

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/36/60 ms




PC2#ping 192.168.0.1


Type escape sequence to abort.

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

.....

Success rate is 0 percent (0/5)

PC2#



ping不通,因爲,R1中路由表中沒有路徑.



2.如果R1中配了RIP  ,R2中沒配RIP,那也ping不通,電路是雙向的.





3. R1與R2,RIP配好,雙方都能ping通.


R1#show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route


Gateway of last resort is not set


C    192.168.0.0/24 is directly connected, FastEthernet0/0

S    192.168.1.0/24 [1/0] via 192.168.0.2

C    192.168.2.0/24 is directly connected, FastEthernet0/1

R1#



R2#show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route


Gateway of last resort is not set


C    192.168.0.0/24 is directly connected, FastEthernet0/0

C    192.168.1.0/24 is directly connected, FastEthernet0/1

S    192.168.2.0/24 [1/0] via 192.168.0.1

R2#




PC1#traceroute 192.168.1.2


Type escape sequence to abort.

Tracing the route to 192.168.1.2


  1 192.168.2.1 36 msec 20 msec 12 msec

  2 192.168.0.2 28 msec 52 msec 40 msec

  3 192.168.1.2 40 msec 40 msec 32 msec

PC1#




PC2#traceroute 192.168.2.2


Type escape sequence to abort.

Tracing the route to 192.168.2.2


  1 192.168.1.1 8 msec 20 msec 52 msec

  2 192.168.0.1 40 msec 60 msec 36 msec

  3 192.168.2.2 116 msec 108 msec 88 msec

PC2#











發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章