不连续网络配置解决方案
时间:2010-1-5来源:互联网 点击:次
方法1 配置ripv2
借助ripv2的特性支持不连续网络,支持可变长子网
R1(config)#router rip
R1(config-router)#version 2
R2(config)#router rip
R2(config-router)#version 2
r1#show 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 version 2
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2
Serial2/1 2 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
12.0.0.0
172.16.0.0
Routing Information Sources:
Gateway Distance Last Update
12.1.1.2 120 00:00:02
Distance: (default is 120)
r2#show ip pro
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 10 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 version 2
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2
Serial2/1 2 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
12.0.0.0
172.16.0.0
Routing Information Sources:
Gateway Distance Last Update
12.1.1.1 120 00:00:00
Distance: (default is 120)
检测网络通断
r1#ping 172.16.20.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.20.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/114/196 ms
r2#ping 172.16.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/108/200 ms
我们发现网络通了。这就是RIPV1与RIPV2的特征不同所决定的