CCNA RIP 实验

CCNA RIP 实验_第1张图片1.没配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#











本文出自 “AB_linuxer学习菜地” 博客,转载请与作者联系!

你可能感兴趣的:(rip,CCNA,实验A)