配置
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
检测
pc0
与
pc2
是否正常通信
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
检测
pc0
与
pc1
是否正常通信
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
Pc2
与
pc1
之间是否正常通信
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
的合理利用。