-
建立物理连接
-
RTA,RTB,RTC使能全部接口,转为ripv2,取消自动聚合。
[RTA-rip-1]display this
rip 1
undo summary
version 2
network 10.0.0.0
network 192.168.1.0
return
[RTB-rip-1]display this
rip 1
undo summary
version 2
network 192.168.1.0
network 192.168.2.0
[RTC-rip-1]display this
rip 1
undo summary
version 2
network 192.168.2.0
network 192.168.3.0
return
[RTA-Serial1/0]rip summary-address 10.0.0.0 23
3. 配置路由过滤
[RTB]ip prefix-list abc index 10 deny 10.0.0.0 23
[RTB]ip prefix-list abc index 20 permit 10.0.0.0 0 less-equal 32
[RTB-rip-1]display ip routing-table
Destinations : 19 Routes : 19
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.0/30 Direct 0 0 192.168.1.2 Ser1/0
192.168.1.0/32 Direct 0 0 192.168.1.2 Ser1/0
192.168.1.1/32 Direct 0 0 192.168.1.1 Ser1/0
192.168.1.2/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.3/32 Direct 0 0 192.168.1.2 Ser1/0
192.168.2.0/30 Direct 0 0 192.168.2.1 Ser2/0
192.168.2.0/32 Direct 0 0 192.168.2.1 Ser2/0
192.168.2.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.2.2/32 Direct 0 0 192.168.2.2 Ser2/0
192.168.2.3/32 Direct 0 0 192.168.2.1 Ser2/0
192.168.3.0/24 RIP 100 1 192.168.2.2 Ser2/0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
//过滤后,RTB和RTC没有RTA的聚合后的路由
[RTB]display ip prefix-list name abc
Prefix-list: abc
Permitted 7
Denied 7
index: 10 Deny 10.0.0.0/23
index: 20 Permit 0.0.0.0/0 le 32