redistribute maximum-prefix


0. config

  • iosv-0 redistributes OSPF and EIGRP each other.

1. before: OSPF

iosv-1#sh ip ro | i O E
O E2     4.4.4.4 [110/20] via 192.168.10.10, 03:32:20, GigabitEthernet0/0
O E2     5.5.5.5 [110/20] via 192.168.10.10, 03:32:20, GigabitEthernet0/0
O E2     10.10.10.10 [110/20] via 192.168.10.10, 00:46:17, GigabitEthernet0/0
O E2  192.168.45.0/24 [110/20] via 192.168.10.10, 03:32:20, GigabitEthernet0/0
O E2  192.168.58.0/24 [110/20] via 192.168.10.10, 03:32:20, GigabitEthernet0/0

1-1. after(maximum-prefix)

1-1-1. config on iosv-0

iosv-0(config)#router ospf 1
iosv-0(config-router)#redist maxi
iosv-0(config-router)#redist maximum-prefix 2
iosv-0(config-router)#end
iosv-0#
*Aug 14 12:14:21.787: %SYS-5-CONFIG_I: Configured from console by console
iosv-0#
*Aug 14 12:14:49.316: %IPRT-4-REDIST_THR_PFX: Redistribution prefix threshold has been reached "ospf 1" - 1 prefixes
*Aug 14 12:14:49.319: %IPRT-4-REDIST_MAX_PFX: Redistribution prefix limit has been reached "ospf 1" - 2 prefixes

1-1-2. show ip route on iosv-1

iosv-1#sh ip ro | i O E
O E2     4.4.4.4 [110/20] via 192.168.10.10, 00:00:08, GigabitEthernet0/0
O E2     5.5.5.5 [110/20] via 192.168.10.10, 00:00:08, GigabitEthernet0/0

1-2. after(warning-only)

1-2-1. config on iosv-0

iosv-0(config)#router ospf 1
iosv-0(config-router)#redist maximum-prefix 2 warning-only
iosv-0(config-router)#end
iosv-0#
*Aug 14 12:17:33.673: %SYS-5-CONFIG_I: Configured from console by console
iosv-0#
*Aug 14 12:18:01.650: %IPRT-4-REDIST_THR_PFX: Redistribution prefix threshold has been reached "ospf 1" - 1 prefixes
*Aug 14 12:18:01.650: %IPRT-4-REDIST_MAX_PFX: Redistribution prefix limit has been reached "ospf 1" - 2 prefixes

1-2-2. show ip route on iosv-1

iosv-1#sh ip ro | i O E
O E2     4.4.4.4 [110/20] via 192.168.10.10, 00:01:01, GigabitEthernet0/0
O E2     5.5.5.5 [110/20] via 192.168.10.10, 00:01:01, GigabitEthernet0/0
O E2     10.10.10.10 [110/20] via 192.168.10.10, 00:01:01, GigabitEthernet0/0
O E2  192.168.45.0/24 [110/20] via 192.168.10.10, 00:01:01, GigabitEthernet0/0
O E2  192.168.58.0/24 [110/20] via 192.168.10.10, 00:01:01, GigabitEthernet0/0

2. before: EIGRP

iosv-4#sh ip ro | i D EX
D EX     1.1.1.1 [170/15360] via 192.168.40.10, 00:41:04, GigabitEthernet0/0
D EX     2.2.2.2 [170/15360] via 192.168.40.10, 03:41:12, GigabitEthernet0/0
D EX     3.3.3.3 [170/15360] via 192.168.40.10, 03:41:12, GigabitEthernet0/0
D EX     6.6.6.6 [170/15360] via 192.168.40.10, 03:41:12, GigabitEthernet0/0
D EX     7.7.7.7 [170/15360] via 192.168.40.10, 01:08:03, GigabitEthernet0/0
D EX     10.10.10.10 
D EX  192.168.10.0/24 
D EX  192.168.12.0/24 
D EX  192.168.23.0/24 
D EX  192.168.36.0/24 
D EX  192.168.67.0/24

2-1. after(maximum-prefix)

2-1-1. config on iosv-0

iosv-0(config)#router eigrp cisco
iosv-0(config-router)#add ipv4 auto 1
iosv-0(config-router-af)#topo base
iosv-0(config-router-af-topology)#redist maximum-prefix 2
iosv-0(config-router-af-topology)#
*Aug 14 12:24:10.394: %DUAL-3-PFXLIMIT: EIGRP-IPv4 1: Redistributed prefix limit reached(2).

2-1-2. show ip route on iosv-1

iosv-4#sh ip ro | i D EX
iosv-4#

2-2. after2(warning-only)

2-2-1. config on iosv-0

iosv-0(config)#router eigrp cisco
iosv-0(config-router)#add ipv4 auto 1
iosv-0(config-router-af)#topo base 
iosv-0(config-router-af-topology)#redis maxim 2 warning-only
iosv-0(config-router-af-topology)#end

2-2-2. show ip route on iosv-1

iosv-4#sh ip ro | i D EX
D EX     1.1.1.1 [170/15360] via 192.168.40.10, 00:00:13, GigabitEthernet0/0
D EX     2.2.2.2 [170/15360] via 192.168.40.10, 00:00:13, GigabitEthernet0/0
D EX     3.3.3.3 [170/15360] via 192.168.40.10, 00:00:13, GigabitEthernet0/0
D EX     6.6.6.6 [170/15360] via 192.168.40.10, 00:00:13, GigabitEthernet0/0
D EX     7.7.7.7 [170/15360] via 192.168.40.10, 00:00:13, GigabitEthernet0/0
D EX  192.168.12.0/24 
D EX  192.168.23.0/24 
D EX  192.168.36.0/24 
D EX  192.168.67.0/24

3. Reference

Chapter: OSPF Limit on Number of Redistributed Routes


この記事が気に入ったらサポートをしてみませんか?