CCNA学习笔记25--RIPv2实验(实验)
实验目的:学习RIPv2的实验配置
实验拓扑:

实验步骤
1.基本配置
2.配置端口ip
3.配置RIPv2
R1(config)#router rip
R1(config-router)#version 2 //运行RIPv2
R1(config-router)#no auto-summary //关闭RIP的自动汇总,RIP协议是默认自动汇总的,如果不关闭的话,RIP会在主类边界自动汇总到主类
R1(config-router)#network 11.0.0.0
R1(config-router)#network 12.0.0.0
1.基本配置
2.配置端口ip
3.配置RIPv2
R1(config)#router rip
R1(config-router)#version 2 //运行RIPv2
R1(config-router)#no auto-summary //关闭RIP的自动汇总,RIP协议是默认自动汇总的,如果不关闭的话,RIP会在主类边界自动汇总到主类
R1(config-router)#network 11.0.0.0
R1(config-router)#network 12.0.0.0
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 22.0.0.0
R2(config-router)#network 12.0.0.0
R2(config-router)#network 23.0.0.0
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 22.0.0.0
R2(config-router)#network 12.0.0.0
R2(config-router)#network 23.0.0.0
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 33.0.0.0
R3(config-router)#network 23.0.0.0
4.验证
R1#show ip route
C 11.1.1.0/24 is directly connected, Loopback0
L 11.1.1.1/32 is directly connected, Loopback0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Ethernet0/0
L 12.1.1.1/32 is directly connected, Ethernet0/0
22.0.0.0/24 is subnetted, 1 subnets
R 22.1.1.0 [120/1] via 12.1.1.2, 00:00:06, Ethernet0/0
23.0.0.0/24 is subnetted, 1 subnets
R 23.1.1.0 [120/1] via 12.1.1.2, 00:00:06, Ethernet0/0
33.0.0.0/24 is subnetted, 1 subnets
R 33.1.1.0 [120/2] via 12.1.1.2, 00:00:06, Ethernet0/0
R1#ping 33.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping 22.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 22.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
拓展:
R1#show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is "application"
Sending updates every 0 seconds
Invalid after 0 seconds, hold down 0, flushed after 0 //正常来说应该有时间显示,为什么没有呢
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Maximum path: 32
Routing for Networks:
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 4)
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 17 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
Ethernet0/0 2 2
Loopback0 2 2
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
11.0.0.0
12.0.0.0
Routing Information Sources:
Gateway Distance Last Update
12.1.1.2 120 00:00:08
Distance: (default is 120)
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 33.0.0.0
R3(config-router)#network 23.0.0.0
4.验证
R1#show ip route
C 11.1.1.0/24 is directly connected, Loopback0
L 11.1.1.1/32 is directly connected, Loopback0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Ethernet0/0
L 12.1.1.1/32 is directly connected, Ethernet0/0
22.0.0.0/24 is subnetted, 1 subnets
R 22.1.1.0 [120/1] via 12.1.1.2, 00:00:06, Ethernet0/0
23.0.0.0/24 is subnetted, 1 subnets
R 23.1.1.0 [120/1] via 12.1.1.2, 00:00:06, Ethernet0/0
33.0.0.0/24 is subnetted, 1 subnets
R 33.1.1.0 [120/2] via 12.1.1.2, 00:00:06, Ethernet0/0
R1#ping 33.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping 22.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 22.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
拓展:
R1#show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is "application"
Sending updates every 0 seconds
Invalid after 0 seconds, hold down 0, flushed after 0 //正常来说应该有时间显示,为什么没有呢
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Maximum path: 32
Routing for Networks:
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 4)
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 17 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
Ethernet0/0 2 2
Loopback0 2 2
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
11.0.0.0
12.0.0.0
Routing Information Sources:
Gateway Distance Last Update
12.1.1.2 120 00:00:08
Distance: (default is 120)
浙公网安备 33010602011771号