RIP路由汇总
1、 正常配置下没有任何汇总情况下:
R1关键配置:
R1关键配置:
interface loopback1
ip address 199.1.0.1 255.255.255.0
exit
interface loopback2
ip address 199.1.1.1 255.255.255.0
exit
interface loopback3
ip address 199.1.2.1 255.255.255.0
exit
interface loopback4
ip address 199.1.3.1 255.255.255.0
exit
interface loopback10
ip address 130.0.1.1 255.255.255.0
exit
interface loopback20
ip address 130.0.0.1 255.255.255.0
exit
interface loopback30
ip address 130.0.2.1 255.255.255.0
exit
interface loopback40
ip address 130.0.3.1 255.255.255.0
exit
interface gigaethernet0
ip address 192.168.1.130 255.255.252.0
exit
router rip
version 1
network gigaethernet0
network loopback1
network loopback2
network loopback3
network loopback4
network loopback10
network loopback20
network loopback30
network loopback40
no auto-summary
exit
R2配置:
interface loopback1
interface loopback1
ip address 200.1.0.1 255.255.255.0
exit
interface loopback2
ip address 200.1.3.1 255.255.255.0
exit
interface loopback10
ip address 200.1.1.1 255.255.255.0
exit
interface loopback20
ip address 200.1.2.1 255.255.255.0
exit
interface vlan1
ip address 192.168.1.123 255.255.252.0
vrrp 1 ip 192.168.1.124
exit
router rip
version 1
network vlan1
network loopback10
network loopback20
network loopback1
network loopback2
no auto-summary
exit
路由表:
S4100-28TC#show ip route
S4100-28TC#show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management
D - Redirect, E - IRMP, Ex - IRMP external, o - SNSP, B - BGP, i-ISIS
Gateway of last resort is not set
C
127.0.0.0/8 is directly connected, 02:55:00, lo0
R
130.0.0.0/16 [120/1] via 192.168.1.130, 00:00:06, vlan1
C
192.168.0.0/22 is directly connected, 02:55:00, vlan1
R
199.1.0.0/24 [120/1] via 192.168.1.130, 00:00:06, vlan1
R
199.1.1.0/24 [120/1] via 192.168.1.130, 00:00:06, vlan1
R
199.1.2.0/24 [120/1] via 192.168.1.130, 00:00:06, vlan1
R
199.1.3.0/24 [120/1] via 192.168.1.130, 00:00:06, vlan1
C
200.1.0.0/24 is directly connected, 00:33:22, loopback1
C
200.1.1.0/24 is directly connected, 00:33:43, loopback10
C
200.1.2.0/24 is directly connected, 00:33:32, loopback20
C
200.1.3.0/24 is directly connected, 00:33:12, loopback2
S4100-28TC#show ip rip database
Types: N - Network, L - Learn, R - Redistribute, D - Default config, S - Static config
Proto: C - connected, S - static, R - RIP, O - OSPF, E - IRMP,
o - SNSP, B - BGP, i-ISIS
RIP routing database in VRF kernel (Counter 10):
T/P Network
ProID Metric Next-Hop From Time Tag Interface
L/R 130.0.0.0/16
none 1 192.168.1.130 192.168.1.130 02:34 0 vlan1
N/C 192.168.0.0/22
none 1 -- -- -- 0 vlan1
L/R 199.1.0.0/24
none 1 192.168.1.130 192.168.1.130 02:34 0 vlan1
L/R 199.1.1.0/24
none 1 192.168.1.130 192.168.1.130 02:34 0 vlan1
L/R 199.1.2.0/24
none 1 192.168.1.130 192.168.1.130 02:34 0 vlan1
L/R 199.1.3.0/24
none 1 192.168.1.130 192.168.1.130 02:34 0 vlan1
N/C 200.1.0.0/24
none 1 -- -- -- 0 loopback1
N/C 200.1.1.0/24
none 1 -- -- -- 0 loopback10
N/C 200.1.2.0/24
none 1 -- -- -- 0 loopback20
N/C 200.1.3.0/24
none 1 -- -- -- 0 loopback2
S4100-28TC#路由debug消息:
4d:11:52:49: RIP: RECV[vlan1]: Receive RESPONSE version 1 size 184 from 192.168.1.130 to 255.255.255.255:520
4d:11:52:49: RIP:
130.0.0.0 family 2, tag 0, metric 1
4d:11:52:49: RIP:
199.1.0.0 family 2, tag 0, metric 1
4d:11:52:49: RIP:
199.1.1.0 family 2, tag 0, metric 1
4d:11:52:49: RIP:
199.1.2.0 family 2, tag 0, metric 1
4d:11:52:49: RIP:
199.1.3.0 family 2, tag 0, metric 1
4d:11:52:49: RIP:
200.1.0.0 family 2, tag 0, metric 16
4d:11:52:49: RIP:
200.1.1.0 family 2, tag 0, metric 16
4d:11:52:49: RIP:
200.1.2.0 family 2, tag 0, metric 16
4d:11:52:49: RIP:
200.1.3.0 family 2, tag 0, metric 16
4d:11:52:57: RIP: SEND[vlan1]: Update RIPv1 all routes by RESPONSE to 255.255.255.255:520
4d:11:52:57: RIP: SEND[vlan1]: 192.168.0.0/22 is supper net, ignore in RIPv1
4d:11:52:57: RIP: SEND[vlan1]: Send RESPONSE version 1 size 184 from 192.168.1.123 to 255.255.255.255:520
4d:11:52:57: RIP:
130.0.0.0 family 2, tag 0, metric 16
4d:11:52:57: RIP:
199.1.0.0 family 2, tag 0, metric 16
4d:11:52:57: RIP:
199.1.1.0 family 2, tag 0, metric 16
4d:11:52:57: RIP:
199.1.2.0 family 2, tag 0, metric 16
4d:11:52:57: RIP:
199.1.3.0 family 2, tag 0, metric 16
4d:11:52:57: RIP:
200.1.0.0 family 2, tag 0, metric 1
4d:11:52:57: RIP:
200.1.1.0 family 2, tag 0, metric 1
4d:11:52:57: RIP:
200.1.2.0 family 2, tag 0, metric 1
4d:11:52:57: RIP:
200.1.3.0 family 2, tag 0, metric 1
Router上面的debug消息:
06:55:04: RIP: RECV[gigaethernet0]: Receive RESPONSE version 1 size 184 from 192.168.1.123 to 255.255.255.255:520
06:55:04: RIP:
130.0.0.0 family 2, tag 0, metric 16
06:55:04: RIP:
199.1.0.0 family 2, tag 0, metric 16
06:55:04: RIP:
199.1.1.0 family 2, tag 0, metric 16
06:55:04: RIP:
199.1.2.0 family 2, tag 0, metric 16
06:55:04: RIP:
199.1.3.0 family 2, tag 0, metric 16
06:55:04: RIP:
200.1.0.0 family 2, tag 0, metric 1
06:55:04: RIP:
200.1.1.0 family 2, tag 0, metric 1
06:55:04: RIP:
200.1.2.0 family 2, tag 0, metric 1
06:55:04: RIP:
200.1.3.0 family 2, tag 0, metric 1
06:55:05: RIP: TIMER[half-timeout]: Half timeout timer processing
06:55:05: RIP: TIMER[half-timeout]: Next half timeout timer interval 89
06:55:09: RIP: SEND[gigaethernet0]: Update RIPv1 all routes by RESPONSE to 255.255.255.255:520
06:55:09: RIP: SEND[gigaethernet0]: 130.0.0.0/24 is changed to 130.0.0.0/16 (Classful mask applied)
06:55:09: RIP: SEND[gigaethernet0]: 130.0.1.0/24 is changed to 130.0.0.0/16 (Classful mask applied)
06:55:09: RIP: SEND[gigaethernet0]: 130.0.2.0/24 is changed to 130.0.0.0/16 (Classful mask applied)
06:55:09: RIP: SEND[gigaethernet0]: 130.0.3.0/24 is changed to 130.0.0.0/16 (Classful mask applied)
06:55:09: RIP: SEND[gigaethernet0]: 192.168.0.0/22 is supper net, ignore in RIPv1
06:55:09: RIP: SEND[gigaethernet0]: Send RESPONSE version 1 size 184 from 192.168.1.130 to 255.255.255.255:520
从上面S4100交换机的RIP路由表和数据库以及R1和S4100的debug消息可以看出:在RIP V1版本上配置了no auto-summary,但是R1路由器在做路由通告,对网段进行了自动汇总。在S4100交换机上面看到的路由表对于130.0.0.0/16位的网段,而非明细网段。
因此: 在RIP V1版本上面,RIP是进行了自动汇总。No auto-summary命令不生效!
因此: 在RIP V1版本上面,RIP是进行了自动汇总。No auto-summary命令不生效!
使用RIPV2自动汇总功能。
将RIP路由协议,改成V2版。
S4100交换机上面路由表:
S4100-28TC#show ip route
S4100-28TC#show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management
D - Redirect, E - IRMP, Ex - IRMP external, o - SNSP, B - BGP, i-ISIS
Gateway of last resort is not set
C
127.0.0.0/8 is directly connected, 12:07:34, lo0
R
130.0.0.0/24 [120/1] via 192.168.1.130, 00:03:00, vlan1
R
130.0.1.0/24 [120/1] via 192.168.1.130, 00:03:00, vlan1
R
130.0.2.0/24 [120/1] via 192.168.1.130, 00:03:00, vlan1
R
130.0.3.0/24 [120/1] via 192.168.1.130, 00:03:00, vlan1
C
192.168.0.0/22 is directly connected, 12:07:34, vlan1
R
199.1.0.0/24 [120/1] via 192.168.1.130, 00:02:53, vlan1
R
199.1.0.0/21 [120/16] via 192.168.1.130, 00:00:00, vlan1
R
199.1.1.0/24 [120/1] via 192.168.1.130, 00:02:53, vlan1
R
199.1.2.0/24 [120/1] via 192.168.1.130, 00:02:53, vlan1
R
199.1.3.0/24 [120/1] via 192.168.1.130, 00:02:53, vlan1
C
200.1.0.0/24 is directly connected, 09:45:56, loopback1
C
200.1.1.0/24 is directly connected, 09:46:17, loopback10
C
200.1.2.0/24 is directly connected, 09:46:06, loopback20
C
200.1.3.0/24 is directly connected, 09:45:45, loopback2
在R1路由器上面改成自动汇总,配置上auto-summary命令后:
S4100-28TC#show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management
D - Redirect, E - IRMP, Ex - IRMP external, o - SNSP, B - BGP, i-ISIS
Gateway of last resort is not set
C
127.0.0.0/8 is directly connected, 03:04:47, lo0
R
130.0.0.0/24 [120/1] via 192.168.1.130, 00:00:04, vlan1
R
130.0.0.0/16 [120/1] via 192.168.1.130, 00:09:54, vlan1
R
130.0.1.0/24 [120/1] via 192.168.1.130, 00:00:04, vlan1
R
130.0.2.0/24 [120/1] via 192.168.1.130, 00:00:04, vlan1
R
130.0.3.0/24 [120/1] via 192.168.1.130, 00:00:04, vlan1
C
192.168.0.0/22 is directly connected, 03:04:47, vlan1
R
199.1.0.0/24 [120/1] via 192.168.1.130, 00:09:54, vlan1
R
199.1.1.0/24 [120/1] via 192.168.1.130, 00:09:54, vlan1
R
199.1.2.0/24 [120/1] via 192.168.1.130, 00:09:54, vlan1
R
199.1.3.0/24 [120/1] via 192.168.1.130, 00:09:54, vlan1
C
200.1.0.0/24 is directly connected, 00:43:09, loopback1
C
200.1.1.0/24 is directly connected, 00:43:31, loopback10
C
200.1.2.0/24 is directly connected, 00:43:20, loopback20
C
200.1.3.0/24 is directly connected, 00:42:59, loopback2
S4100交换机收到的debug ip rip消息:
4d:21:11:18: RIP: SEND[vlan1]: Update RIPv2 all routes by RESPONSE to 224.0.0.9:520
4d:21:11:18: RIP: SEND[vlan1]: Send RESPONSE version 2 size 284 from 192.168.1.123 to 224.0.0.9:520
4d:21:11:18: RIP:
130.0.0.0/16 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
130.0.0.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
130.0.1.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
130.0.2.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
130.0.3.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
192.168.0.0/22 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
199.1.0.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
199.1.1.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
199.1.2.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
199.1.3.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:18: RIP:
200.1.0.0/24 -> 0.0.0.0 family 2, tag 0, metric 1
4d:21:11:18: RIP:
200.1.1.0/24 -> 0.0.0.0 family 2, tag 0, metric 1
4d:21:11:18: RIP:
200.1.2.0/24 -> 0.0.0.0 family 2, tag 0, metric 1
4d:21:11:18: RIP:
200.1.3.0/24 -> 0.0.0.0 family 2, tag 0, metric 1
4d:21:11:28: RIP: RECV[vlan1]: Receive RESPONSE version 2 size 204 from 192.168.1.130 to 224.0.0.9:520
4d:21:11:28: RIP:
192.168.0.0/22 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:28: RIP:
130.0.0.0/16 -> 0.0.0.0 family 2, tag 0, metric 1
4d:21:11:28: RIP:
199.1.0.0/24 -> 0.0.0.0 family 2, tag 0, metric 1
4d:21:11:28: RIP:
199.1.1.0/24 -> 0.0.0.0 family 2, tag 0, metric 1
4d:21:11:28: RIP:
199.1.2.0/24 -> 0.0.0.0 family 2, tag 0, metric 1
4d:21:11:28: RIP:
199.1.3.0/24 -> 0.0.0.0 family 2, tag 0, metric 1
4d:21:11:28: RIP:
200.1.0.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:28: RIP:
200.1.1.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:28: RIP:
200.1.2.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
4d:21:11:28: RIP:
200.1.3.0/24 -> 0.0.0.0 family 2, tag 0, metric 16
S4100-28TC#show ip rip database
Types: N - Network, L - Learn, R - Redistribute, D - Default config, S - Static config
Proto: C - connected, S - static, R - RIP, O - OSPF, E - IRMP,
o - SNSP, B - BGP, i-ISIS
RIP routing database in VRF kernel (Counter 14):
T/P Network
ProID Metric Next-Hop From Time Tag Interface
L/R 130.0.0.0/16
none 1 192.168.1.130 192.168.1.130 02:50 0 vlan1
-/- 130.0.0.0/24
none 16 Garbage 03:27 Holdown 02:27 Possible down
-/- 130.0.1.0/24
none 16 Garbage 03:27 Holdown 02:27 Possible down
-/- 130.0.2.0/24
none 16 Garbage 03:27 Holdown 02:27 Possible down
-/- 130.0.3.0/24
none 16 Garbage 03:27 Holdown 02:27 Possible down
N/C 192.168.0.0/22
none 1 -- -- -- 0 vlan1
L/R 199.1.0.0/24
none 1 192.168.1.130 192.168.1.130 02:50 0 vlan1
L/R 199.1.1.0/24
none 1 192.168.1.130 192.168.1.130 02:50 0 vlan1
L/R 199.1.2.0/24
none 1 192.168.1.130 192.168.1.130 02:50 0 vlan1
L/R 199.1.3.0/24
none 1 192.168.1.130 192.168.1.130 02:50 0 vlan1
N/C 200.1.0.0/24
none 1 -- -- -- 0 loopback1
N/C 200.1.1.0/24
none 1 -- -- -- 0 loopback10
N/C 200.1.2.0/24
none 1 -- -- -- 0 loopback20
N/C 200.1.3.0/24
none 1 -- -- -- 0 loopback2
从上面信息看到从R1上面做了auto-summary之后,原来学到的明细路由在经过180秒之后变成了16跳不可达了!
S4100-28TC#show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management
D - Redirect, E - IRMP, Ex - IRMP external, o - SNSP, B - BGP, i-ISIS
Gateway of last resort is not set
C
127.0.0.0/8 is directly connected, 12:16:32, lo0
R
130.0.0.0/24 [120/16] via 192.168.1.130, 00:01:28, vlan1
R
130.0.0.0/16 [120/1] via 192.168.1.130, 00:03:50, vlan1
R
130.0.1.0/24 [120/16] via 192.168.1.130, 00:01:28, vlan1
R
130.0.2.0/24 [120/16] via 192.168.1.130, 00:01:28, vlan1
R
130.0.3.0/24 [120/16] via 192.168.1.130, 00:01:28, vlan1
C
192.168.0.0/22 is directly connected, 12:16:32, vlan1
R
199.1.0.0/24 [120/1] via 192.168.1.130, 00:11:51, vlan1
R
199.1.1.0/24 [120/1] via 192.168.1.130, 00:11:51, vlan1
R
199.1.2.0/24 [120/1] via 192.168.1.130, 00:11:51, vlan1
R
199.1.3.0/24 [120/1] via 192.168.1.130, 00:11:51, vlan1
C
200.1.0.0/24 is directly connected, 09:54:54, loopback1
C
200.1.1.0/24 is directly connected, 09:55:15, loopback10
C
200.1.2.0/24 is directly connected, 09:55:04, loopback20
C
200.1.3.0/24 is directly connected, 09:54:43, loopback2
经过第四个定时器之后,路由表和数据库里面的路由清空。
最终变为:
S4100-28TC#show ip route
S4100-28TC#show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management
D - Redirect, E - IRMP, Ex - IRMP external, o - SNSP, B - BGP, i-ISIS
Gateway of last resort is not set
C
127.0.0.0/8 is directly connected, 12:23:43, lo0
R
130.0.0.0/16 [120/1] via 192.168.1.130, 00:11:01, vlan1
C
192.168.0.0/22 is directly connected, 12:23:43, vlan1
R
199.1.0.0/24 [120/1] via 192.168.1.130, 00:19:02, vlan1
R
199.1.1.0/24 [120/1] via 192.168.1.130, 00:19:02, vlan1
R
199.1.2.0/24 [120/1] via 192.168.1.130, 00:19:02, vlan1
R
199.1.3.0/24 [120/1] via 192.168.1.130, 00:19:02, vlan1
C
200.1.0.0/24 is directly connected, 10:02:05, loopback1
C
200.1.1.0/24 is directly connected, 10:02:26, loopback10
C
200.1.2.0/24 is directly connected, 10:02:15, loopback20
C
200.1.3.0/24 is directly connected, 10:01:54, loopback2
在自动汇总命令基础上添加手动汇总命令,关键配置如下:
R1上面使用手动汇总路由表:
interface gigaethernet0
interface gigaethernet0
ip address 192.168.1.130 255.255.252.0
ip nat inside
ip summary-address rip 130.0.0.0/18
ip summary-address rip 199.1.0.0/21
exit
router rip
version 2
network gigaethernet0
network loopback1
network loopback2
network loopback3
network loopback4
network loopback10
network loopback20
network loopback30
network loopback40
auto-summary
exit
继续查看S4100上面的路由表和数据库:
S4100-28TC#show ip route
S4100-28TC#show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management
D - Redirect, E - IRMP, Ex - IRMP external, o - SNSP, B - BGP, i-ISIS
Gateway of last resort is not set
C
127.0.0.0/8 is directly connected, 12:35:52, lo0
R
130.0.0.0/16 [120/1] via 192.168.1.130, 00:23:09, vlan1
C
192.168.0.0/22 is directly connected, 12:35:52, vlan1
R
199.1.0.0/24 [120/1] via 192.168.1.130, 00:31:11, vlan1
R
199.1.1.0/24 [120/1] via 192.168.1.130, 00:31:11, vlan1
R
199.1.2.0/24 [120/1] via 192.168.1.130, 00:31:11, vlan1
R
199.1.3.0/24 [120/1] via 192.168.1.130, 00:31:11, vlan1
C
200.1.0.0/24 is directly connected, 10:14:13, loopback1
C
200.1.1.0/24 is directly connected, 10:14:35, loopback10
C
200.1.2.0/24 is directly connected, 10:14:24, loopback20
C
200.1.3.0/24 is directly connected, 10:14:03, loopback2
S4100-28TC#show ip rip database
Types: N - Network, L - Learn, R - Redistribute, D - Default config, S - Static config
Proto: C - connected, S - static, R - RIP, O - OSPF, E - IRMP,
o - SNSP, B - BGP, i-ISIS
RIP routing database in VRF kernel (Counter 10):
T/P Network
ProID Metric Next-Hop From Time Tag Interface
L/R 130.0.0.0/16
none 1 192.168.1.130 192.168.1.130 02:42 0 vlan1
N/C 192.168.0.0/22
none 1 -- -- -- 0 vlan1
L/R 199.1.0.0/24
none 1 192.168.1.130 192.168.1.130 02:42 0 vlan1
L/R 199.1.1.0/24
none 1 192.168.1.130 192.168.1.130 02:42 0 vlan1
L/R 199.1.2.0/24
none 1 192.168.1.130 192.168.1.130 02:42 0 vlan1
L/R 199.1.3.0/24
none 1 192.168.1.130 192.168.1.130 02:42 0 vlan1
N/C 200.1.0.0/24
none 1 -- -- -- 0 loopback1
N/C 200.1.1.0/24
none 1 -- -- -- 0 loopback10
N/C 200.1.2.0/24
none 1 -- -- -- 0 loopback20
N/C 200.1.3.0/24
none 1 -- -- -- 0 loopback2
从上面信息,我们可以看到在配置了auto-summary语句的前提下,在接口下面做ip summary进行手动汇总,发现手动汇总没有生效。
原因如下:
对于RIP版本2, 当路由自动聚合(auto-summary)和接口上的地址汇总同时存在的时候,先进行路由自动聚合。在不能进行路由自动聚合(超网)的情况下才进行接口上的地址汇总。
对于RIP版本2, 当路由自动聚合(auto-summary)和接口上的地址汇总同时存在的时候,先进行路由自动聚合。在不能进行路由自动聚合(超网)的情况下才进行接口上的地址汇总。
由于auto-summary自动聚合优先级高于手动汇总优先级,因此上述没有进行手动汇总。那么接下来将在原R1上面将auto-summary语句给删掉,接下来继续观察S4100上面路由表:
S4100交换机路由表:
S4100-28TC#show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management
D - Redirect, E - IRMP, Ex - IRMP external, o - SNSP, B - BGP, i-ISIS
Gateway of last resort is not set
C
127.0.0.0/8 is directly connected, 12:43:11, lo0
R
130.0.0.0/18 [120/1] via 192.168.1.130, 00:01:50, vlan1
R
130.0.0.0/16 [120/1] via 192.168.1.130, 00:30:28, vlan1
C
192.168.0.0/22 is directly connected, 12:43:11, vlan1
R
199.1.0.0/24 [120/1] via 192.168.1.130, 00:38:30, vlan1
R
199.1.0.0/21 [120/1] via 192.168.1.130, 00:01:50, vlan1
R
199.1.1.0/24 [120/1] via 192.168.1.130, 00:38:30, vlan1
R
199.1.2.0/24 [120/1] via 192.168.1.130, 00:38:30, vlan1
R
199.1.3.0/24 [120/1] via 192.168.1.130, 00:38:30, vlan1
C
200.1.0.0/24 is directly connected, 10:21:32, loopback1
C
200.1.1.0/24 is directly connected, 10:21:54, loopback10
C
200.1.2.0/24 is directly connected, 10:21:43, loopback20
C
200.1.3.0/24 is directly connected, 10:21:22, loopback2
R
30.1.1.1/32 [120/1] via 192.168.1.133, 00:01:04, vlan1
R
40.1.1.1/32 [120/1] via 192.168.1.133, 00:00:59, vlan1
数据库:
S4100-28TC#show ip rip database
S4100-28TC#show ip rip database
Types: N - Network, L - Learn, R - Redistribute, D - Default config, S - Static config
Proto: C - connected, S - static, R - RIP, O - OSPF, E - IRMP,
o - SNSP, B - BGP, i-ISIS
RIP routing database in VRF kernel (Counter 14):
T/P Network
ProID Metric Next-Hop From Time Tag Interface
L/R 30.1.1.1/32
none 1 192.168.1.133 192.168.1.133 02:23 0 vlan1
L/R 40.1.1.1/32
none 1 192.168.1.133 192.168.1.133 02:23 0 vlan1
L/R 130.0.0.0/16
none 1 192.168.1.130 192.168.1.130 00:07 0 vlan1
L/R 130.0.0.0/18
none 1 192.168.1.130 192.168.1.130 02:46 0 vlan1
N/C 192.168.0.0/22
none 1 -- -- -- 0 vlan1
L/R 199.1.0.0/21
none 1 192.168.1.130 192.168.1.130 02:46 0 vlan1
L/R 199.1.0.0/24
none 1 192.168.1.130 192.168.1.130 00:07 0 vlan1
L/R 199.1.1.0/24
none 1 192.168.1.130 192.168.1.130 00:07 0 vlan1
L/R 199.1.2.0/24
none 1 192.168.1.130 192.168.1.130 00:07 0 vlan1
L/R 199.1.3.0/24
none 1 192.168.1.130 192.168.1.130 00:07 0 vlan1
N/C 200.1.0.0/24
none 1 -- -- -- 0 loopback1
N/C 200.1.1.0/24
none 1 -- -- -- 0 loopback10
N/C 200.1.2.0/24
none 1 -- -- -- 0 loopback20
N/C 200.1.3.0/24
none 1 -- -- -- 0 loopback2
上面数据库显示之前的路由表正在老化。
完全老化之后,在数据库上面更新完之后路由表为:
S4100-28TC#show ip route
S4100-28TC#show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management
D - Redirect, E - IRMP, Ex - IRMP external, o - SNSP, B - BGP, i-ISIS
Gateway of last resort is not set
C
127.0.0.0/8 is directly connected, 03:41:26, lo0
R
130.0.0.0/18 [120/1] via 192.168.1.130, 00:01:24, vlan1
C
192.168.0.0/22 is directly connected, 03:41:26, vlan1
R
199.1.0.0/21 [120/1] via 192.168.1.130, 00:01:24, vlan1
C
200.1.0.0/24 is directly connected, 01:19:47, loopback1
C
200.1.1.0/24 is directly connected, 01:20:09, loopback10
C
200.1.2.0/24 is directly connected, 01:19:58, loopback20
C
200.1.3.0/24 is directly connected, 01:19:37, loopback2
S4100-28TC#show ip rip database
Types: N - Network, L - Learn, R - Redistribute, D - Default config, S - Static config
Proto: C - connected, S - static, R - RIP, O - OSPF, E - IRMP,
o - SNSP, B - BGP, i-ISIS
RIP routing database in VRF kernel (Counter 11):
T/P Network
ProID Metric Next-Hop From Time Tag Interface
L/R 10.1.1.1/32
none 1 192.168.1.135 192.168.1.135 02:50 0 vlan1
L/R 20.1.1.1/32
none 1 192.168.1.135 192.168.1.135 02:50 0 vlan1
L/R 30.1.1.1/32
none 1 192.168.1.133 192.168.1.133 02:49 0 vlan1
L/R 40.1.1.1/32
none 1 192.168.1.133 192.168.1.133 02:49 0 vlan1
L/R 130.0.0.0/18
none 1 192.168.1.130 192.168.1.130 02:53 0 vlan1
N/C 192.168.0.0/22
none 1 -- -- -- 0 vlan1
L/R 199.1.0.0/21
none 1 192.168.1.130 192.168.1.130 02:53 0 vlan1
N/C 200.1.0.0/24
none 1 -- -- -- 0 loopback1
N/C 200.1.1.0/24
none 1 -- -- -- 0 loopback10
N/C 200.1.2.0/24
none 1 -- -- -- 0 loopback20
N/C 200.1.3.0/24
none 1 -- -- -- 0 loopback2