RIPV2的實現(二)

配置RIPV2:

 Routera RIPV2的配置

routera#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

routera(config)#router rip

routera(config-router)#versi

routera(config-router)#version  2

routera(config-router)#network 192.168.1.0

routera(config-router)#no auto-summary

routerb RIPV2的配置

routerb#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

routerb(config)#router rip

routerb(config-router)#version

routerb(config-router)#version  2

routerb(config-router)#network 192.168.1.0

routerb(config-router)#no auto-summary

routerb(config-router)#end

routerc  RIPV2的配置

routerb#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

routerb(config)#router rip

routerb(config-router)#version

routerb(config-router)#version  2

routerb(config-router)#network 192.168.1.0

routerb(config-router)#no auto-summary

routerb(config-router)#end

檢測pc0pc2是否正常通信

PC>ping 192.168.1.101

 

Pinging 192.168.1.101 with 32 bytes of data:

 

Reply from 192.168.1.101: bytes=32 time=124ms TTL=126

Reply from 192.168.1.101: bytes=32 time=141ms TTL=126

Reply from 192.168.1.101: bytes=32 time=156ms TTL=126

Reply from 192.168.1.101: bytes=32 time=156ms TTL=126

 

Ping statistics for 192.168.1.101:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 124ms, Maximum = 156ms, Average = 144ms

檢測pc0pc1是否正常通信

PC>ping 192.168.1.2

 

Pinging 192.168.1.2 with 32 bytes of data:

 

Reply from 192.168.1.2: bytes=32 time=143ms TTL=126

Reply from 192.168.1.2: bytes=32 time=125ms TTL=126

Reply from 192.168.1.2: bytes=32 time=140ms TTL=126

Reply from 192.168.1.2: bytes=32 time=138ms TTL=126

 

Ping statistics for 192.168.1.2:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 125ms, Maximum = 143ms, Average = 136ms

Pc2pc1之間是否正常通信

PC>ping 192.168.1.69

 

Pinging 192.168.1.69 with 32 bytes of data:

 

Reply from 192.168.1.69: bytes=32 time=156ms TTL=126

Reply from 192.168.1.69: bytes=32 time=140ms TTL=126

Reply from 192.168.1.69: bytes=32 time=156ms TTL=126

Reply from 192.168.1.69: bytes=32 time=110ms TTL=126

 

Ping statistics for 192.168.1.69:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 110ms, Maximum = 156ms, Average = 140ms

查看routera 的路由表

routera#sh ip route

Codes: C - connected, S - static, I - IGRP, 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, E - EGP

       i - IS-IS, 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

 

     192.168.1.0/24 is variably subnetted, 4 subnets, 4 masks

C       192.168.1.0/26 is directly connected, FastEthernet0/0

R       192.168.1.64/27 [120/1] via 192.168.1.118, 00:00:21, Serial1/0

C       192.168.1.112/29 is directly connected, Serial1/0

R       192.168.1.124/30 [120/1] via 192.168.1.118, 00:00:21, Serial1/0

查看routerb 的路由表

routerb#sh ip route

Codes: C - connected, S - static, I - IGRP, 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, E - EGP

       i - IS-IS, 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

 

     192.168.1.0/24 is variably subnetted, 4 subnets, 4 masks

R       192.168.1.0/26 [120/1] via 192.168.1.117, 00:00:06, Serial1/1

C       192.168.1.64/27 is directly connected, FastEthernet0/0

C       192.168.1.112/29 is directly connected, Serial1/1

C       192.168.1.124/30 is directly connected, Serial1/2

查看routerc 的路由表

routerc#sh ip route

Codes: C - connected, S - static, I - IGRP, 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, E - EGP

       i - IS-IS, 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

 

     192.168.1.0/24 is variably subnetted, 5 subnets, 5 masks

R       192.168.1.0/26 [120/2] via 192.168.1.126, 00:00:29, Serial1/0

R       192.168.1.64/27 [120/1] via 192.168.1.126, 00:00:29, Serial1/0

C       192.168.1.96/28 is directly connected, FastEthernet0/0

R       192.168.1.112/29 [120/1] via 192.168.1.126, 00:00:29, Serial1/0

C       192.168.1.124/30 is directly connected, Serial1/0

查看routera的配置協議

routera#sh ip pro

Routing Protocol is "rip"

Sending updates every 30 seconds, next due in 17 seconds

Invalid after 180 seconds, hold down 180, flushed after 240

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Redistributing: rip

Default version control: send version 2, receive 2

  Interface             Send  Recv  Triggered RIP  Key-chain

  FastEthernet0/0       2     2    

  Serial1/0             2     2    

Automatic network summarization is not in effect

Maximum path: 4

Routing for Networks:

       192.168.1.0

Passive Interface(s):

Routing Information Sources:

       Gateway         Distance      Last Update

       192.168.1.118        120      00:00:26

Distance: (default is 120

查看routerb的配置協議

routerb#sh ip pro

Routing Protocol is "rip"

Sending updates every 30 seconds, next due in 15 seconds

Invalid after 180 seconds, hold down 180, flushed after 240

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Redistributing: rip

Default version control: send version 2, receive 2

  Interface             Send  Recv  Triggered RIP  Key-chain

  FastEthernet0/0       2     2    

  Serial1/1             2     2    

  Serial1/2             2     2    

Automatic network summarization is not in effect

Maximum path: 4

Routing for Networks:

       192.168.1.0

Passive Interface(s):

Routing Information Sources:

       Gateway         Distance      Last Update

       192.168.1.117        120      00:00:25

       192.168.1.125        120      00:00:03

Distance: (default is 120)

查看routerc的配置協議

routerc#sh ip pro

Routing Protocol is "rip"

Sending updates every 30 seconds, next due in 18 seconds

Invalid after 180 seconds, hold down 180, flushed after 240

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Redistributing: rip

Default version control: send version 2, receive 2

  Interface             Send  Recv  Triggered RIP  Key-chain

  FastEthernet0/0       2     2    

  Serial1/0             2     2    

Automatic network summarization is not in effect

Maximum path: 4

Routing for Networks:

       192.168.1.0

Passive Interface(s):

Routing Information Sources:

       Gateway         Distance      Last Update

       192.168.1.126        120      00:00:18

Distance: (default is 120)

 

:總結

1.    ripV2可以實現不等長的子網掩碼的網絡通信。

2.    不會受的地址的限制,可按實際的情況進行劃分,節約了ip的合理利用。

 

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