Understand the Redistribution of OSPF Routes into BGP (2024)

    Introduction

    This document describes the behavior of Open Shortest Path First (OSPF) to Border Gateway Protocol (BGP) redistribution on Cisco routers.

    Prerequisites

    Requirements

    Cisco recommends that you have knowledge of theOSPF route types before you use this document.

    Components Used

    This document is not restricted to specific software and hardware versions.

    The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.

    Conventions

    For more information on document conventions, see theCisco Technical Tips Conventions.

    Background Information

    This Tech Note explains the behavior of the OSPF to BGP redistribution on Cisco routers. The behavior of OSPF to BGP redistribution is outlined inRFC 1403. There are several types of OSPF routes:

    • Intra-Area — In a multiarea OSPF network, routes that originate within an area are known by the routers in the same area as Intra-Area routes. These routes are flagged as O in theshow ip routecommand output.

    • Inter-Area — When a route crosses an OSPF Area Border Router (ABR), the route is known as an OSPF Inter-Area route. These routes are flagged as O IA in theshow ip routecommand output.

      Both Intra and Inter-Area routes are also called OSPF Internal routes, as they are generated by OSPF itself when an interface is covered with the OSPFnetworkcommand.

    • External Type-2 or External Type-1 — Routes that were redistributed into OSPF, such as Connected, Static, or other Routing Protocol, are known as External Type-2 or External Type-1. These routes are flagged as O E2 or O E1 in theshow ip routecommand output.

    • NSSA External Type-2 or NSSA External Type 1 — When an area is configured as a Not-So-Stub Area (NSSA), and routes are redistributed into OSPF, the routes are known as NSSA External Type-2 or NSSA External Type-1. These routes are flagged as O N2 or O N1 in theshow ip routecommand output.

    The explanation of the differences between External and NSSA Type 2 or 1 is beyond the scope of this document — refer to theOSPF Design Guidefor more information.

    The default behavior is not to redistribute any routes from OSPF into BGP. Redistribution must be configured. You can use theroute-mapcommand to filter routes during OSPF to BGP redistribution. To complete the redistribution, specific keywords likeinternal,external, and nssa-externalare required to redistribute respective routes.

    Network Setup

    There are four redistribution cases of OSPF routes into BGP discussed below. The network diagram applies to the first three cases. The diagram and set up for the fourth case can be found in theRedistribution of OSPF NSSA-External Routes into BGPsection.

    Understand the Redistribution of OSPF Routes into BGP (1)Redistribution OSPF to BGP Topology A

    Redistribution of Only OSPF Internal (Intra and Inter-Area) Routes into BGP

    If you configure the redistribution of OSPF into BGP without keywords, only OSPF intra-area and inter-area routes are redistributed into BGP, by default. You can use theinternal keyword along with theredistribute command underrouterbgpto redistribute OSPF Intra and Inter-area routes.

    This configuration is a new configuration of Router B that redistributes only the Intra-area route (10.108.2.0/24) and Inter-area route (10.108.1.0/24) into BGP and only OSPF Internal (Intra-area and Inter-area) routes are redistributed into BGP:

    RTB
    hostname RTB!interface GigabitEthernet0/0 ip address 10.3.3.1 255.255.255.0 duplex auto speed auto media-type rj45!interface GigabitEthernet0/1 ip address 10.2.2.3 255.255.255.0 duplex auto speed auto media-type rj45 
    !
    router ospf 1 network 10.2.2.0 0.0.0.255 area 1
    !
    router bgp 100
    redistribute ospf 1

    !-- This redistributes only OSPF intra-area and inter-area routes into BGP.

    neighbor 10.3.3.2 remote-as 200
    !
    end

    RTB#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masksC 10.2.2.0/24 is directly connected, GigabitEthernet0/1L 10.2.2.3/32 is directly connected, GigabitEthernet0/1C 10.3.3.0/24 is directly connected, GigabitEthernet0/0L 10.3.3.1/32 is directly connected, GigabitEthernet0/0O IA 10.108.1.0/24 [110/3] via 10.2.2.2, 00:08:38, GigabitEthernet0/1O 10.108.2.0/24 [110/2] via 10.2.2.2, 00:39:13, GigabitEthernet0/1O E2 192.168.1.0/24 [110/20] via 10.2.2.2, 00:07:39, GigabitEthernet0/1O E1 192.168.2.0/24 [110/23] via 10.2.2.2, 00:07:38, GigabitEthernet0/1RTB#

    Router B redistributes only OSPF Internal routes:

    RTB#show ip bgpBGP table version is 12, local router ID is 10.3.3.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 10.2.2.0/24 0.0.0.0 0 32768 ? *> 10.108.1.0/24 10.2.2.2 3 32768 ? *> 10.108.2.0/24 10.2.2.2 2 32768 ?RTB#

    Router C learns these routes from BGP:

    RTC#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 5 subnets, 2 masksB 10.2.2.0/24 [20/0] via 10.3.3.1, 00:07:07C 10.3.3.0/24 is directly connected, GigabitEthernet0/0L 10.3.3.2/32 is directly connected, GigabitEthernet0/0B 10.108.1.0/24 [20/3] via 10.3.3.1, 00:07:07B 10.108.2.0/24 [20/2] via 10.3.3.1, 00:07:07RTC#RTC#show ip bgpBGP table version is 8, local router ID is 10.3.3.2Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 10.2.2.0/24 10.3.3.1 0 0 100 ? *> 10.108.1.0/24 10.3.3.1 3 0 100 ? *> 10.108.2.0/24 10.3.3.1 2 0 100 ?RTC#

    Redistribution of Only OSPF External (Type 1 and 2) Routes into BGP

    Use theexternalkeyword along with theredistributecommand underrouterbgpto redistribute OSPF external routes into BGP. With theexternalkeyword, you have three choices:

    • Redistribute both External Type-1 and Type-2 (Default)

    • Redistribute Type-1

    • Redistribute Type-2

    Enter the commands in the configuration mode as described here:

    RTB(config-router)#router bgp 100RTB(config-router)#redistribute ospf 1 match external

    In this configuration of Router B, redistribute only OSPF External routes, but both Type-1 and Type-2:

    RTB
    hostname RTB!interface GigabitEthernet0/0 ip address 10.3.3.1 255.255.255.0 duplex auto speed auto media-type rj45!interface GigabitEthernet0/1 ip address 10.2.2.3 255.255.255.0 duplex auto speed auto media-type rj45 ! router ospf 1 network 10.2.2.0 0.0.0.255 area 1 ! router bgp 100  
    redistribute ospf 1 match external 1 external 2

    !--- This redistributes ONLY OSPF External routes, but both type-1 and type-2.

    neighbor 10.3.3.2 remote-as 200
    !
    end

    Note: The configuration showsmatch external1external2and the command entered wasredistributeospf1matchexternal.This is normal because OSPF automatically appends external 1 external 2in the configuration. It matches both OSPF external 1 and external 2 routes and it redistributes both routes into BGP.

    Router B redistributes only the OSPF external routes:

    RTB#show ip bgpBGP table version is 25, local router ID is 10.3.3.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 192.168.1.0 10.2.2.2 20 32768 ? *> 192.168.2.0 10.2.2.2 23 32768 ?RTB#

    Router C learns about these two OSPF external routes from BGP:

    RTC#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 10.3.3.0/24 is directly connected, GigabitEthernet0/0L 10.3.3.2/32 is directly connected, GigabitEthernet0/0B 192.168.1.0/24 [20/20] via 10.3.3.1, 00:02:16B 192.168.2.0/24 [20/23] via 10.3.3.1, 00:02:16
    RTC#show ip bgpBGP table version is 21, local router ID is 10.3.3.2Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 192.168.1.0 10.3.3.1 20 0 100 ? *> 192.168.2.0 10.3.3.1 23 0 100 ?RTC#

    Redistribution of Only OSPF External Type 1 or Type 2 Routes into BGP

    Enter this command under therouterbgp100command on Router B to redistribute only OSPF External 1 routes:

    RTB(config)#router bgp 100 
    RTB(config-router)#redistribute ospf 1 match external 1

    With the previous configuration Router B (RTB) BGP table shows that it is only able to redistribute external 1 routes into BGP and all other OSPF routes are not redistributed into BGP:

    RTB#show ip bgpBGP table version is 28, local router ID is 10.3.3.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 192.168.2.0 10.2.2.2 23 32768 ?RTB#

    In the same way, enter this command underrouterbgp100on Router B to redistribute only OSPF external 2 routes:

    RTB(config)#router bgp 100 
    RTB(config-router)#redistribute ospf 1 match external 2

    Redistribution of OSPF Internal and External Routes into BGP

    In this case, all OSPF routes are redistributed into BGP with the use of both theinternalandexternalkeywords within the command redistribute ospf <process> match internal external, as shown in this Router B configuration:

    RTB
    hostname RTB!interface GigabitEthernet0/0 ip address 10.3.3.1 255.255.255.0 duplex auto speed auto media-type rj45!interface GigabitEthernet0/1 ip address 10.2.2.3 255.255.255.0 duplex auto speed auto media-type rj45 ! router ospf 1 network 10.2.2.0 0.0.0.255 area 1 ! router bgp 100
    redistribute ospf 1 match internal external 1 external 2

    !--- This redistributes all OSPF routes into BGP.

    neighbor 10.3.3.2 remote-as 200
    !
    end

    Again,externalis replaced withexternal 1external2in the configuration. This is normal unless you specify which specific external routes you want to redistribute into BGP. Afterthe configuration change is completed, Router B redistributes all OSPF routes and Router C starts to learn all routes from BGP:

    RTB#show ip bgpBGP table version is 6, local router ID is 10.3.3.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 10.2.2.0/24 0.0.0.0 0 32768 ? *> 10.108.1.0/24 10.2.2.2 3 32768 ? *> 10.108.2.0/24 10.2.2.2 2 32768 ? *> 192.168.1.0 10.2.2.2 20 32768 ? *> 192.168.2.0 10.2.2.2 23 32768 ?RTB# RTC#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 5 subnets, 2 masksB 10.2.2.0/24 [20/0] via 10.3.3.1, 00:03:27C 10.3.3.0/24 is directly connected, GigabitEthernet0/0L 10.3.3.2/32 is directly connected, GigabitEthernet0/0B 10.108.1.0/24 [20/3] via 10.3.3.1, 00:03:27B 10.108.2.0/24 [20/2] via 10.3.3.1, 00:03:27B 192.168.1.0/24 [20/20] via 10.3.3.1, 00:03:27B 192.168.2.0/24 [20/23] via 10.3.3.1, 00:03:27RTC#

    Redistribution of OSPF NSSA-External Routes into BGP

    This is a special case in which only NSSA routes are redistributed into BGP. This case is very similar to the case described in theRedistribution of only OSPF External (Type 1 and 2) Routes into BGPsection. The only difference is that OSPF now matches NSSA-external routes instead of just external routes. The routing table of Router B shows these OSPF NSSA-external routes:

    RTB#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masksC 10.2.2.0/24 is directly connected, GigabitEthernet0/1L 10.2.2.3/32 is directly connected, GigabitEthernet0/1C 10.3.3.0/24 is directly connected, GigabitEthernet0/0L 10.3.3.1/32 is directly connected, GigabitEthernet0/0O IA 10.108.1.0/24 [110/3] via 10.2.2.2, 00:05:00, GigabitEthernet0/1O 10.108.2.0/24 [110/2] via 10.2.2.2, 00:05:00, GigabitEthernet0/1O N2 192.168.1.0/24 [110/20] via 10.2.2.1, 00:10:14, GigabitEthernet0/1O N1 192.168.2.0/24 [110/22] via 10.2.2.2, 00:03:43, GigabitEthernet0/1RTB#

    This network diagram is used for this case:

    Understand the Redistribution of OSPF Routes into BGP (2)Redistribution OSPF to BGP Topology B

    The network diagram shows that Router B receives both OSPF N1 and N2 routes. The default behavior is to redistribute both N1 and N2 routes if only thenssa-external keyword is used. This configuration of Router B allows us to redistribute OSPF N2 (192.168.1.0/24) and OSPF N1 (192.168.2.0/24) routes into BGP:

    RTB
    hostname RTB!interface GigabitEthernet0/0 ip address 10.3.3.1 255.255.255.0 duplex auto speed auto media-type rj45!interface GigabitEthernet0/1 ip address 10.2.2.3 255.255.255.0 duplex auto speed auto media-type rj45 ! router ospf 1
    area 1 nssa network 10.2.2.0 0.0.0.255 area 1
    !
    router bgp 100

    redistribute ospf 1 match nssa-external 1 nssa-external 2!--- This redistributes only OSPF NSSA-external routes Type-1 and Type-2 into BGP. neighbor 10.3.3.2 remote-as 200!end

    Note: Like the OSPF external configuration, the previous configuration displaysmatch nssa-external1nssa-external2and the command entered wasredistributeospf1matchnssa-external.This is normal because OSPF automatically appendsnssa-external 1 nssa-external 2in the configuration. It matches both OSPF N1 and OSPF N2 routes and redistributes both routes into BGP.

    After the configuration change on Router B, it redistributes OSPF NSSA-external routes, and Router C learnsOSPF NSSA-external routes from BGP:

    RTB#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 2 masksC 10.2.2.0/24 is directly connected, GigabitEthernet0/1L 10.2.2.3/32 is directly connected, GigabitEthernet0/1C 10.3.3.0/24 is directly connected, GigabitEthernet0/0L 10.3.3.1/32 is directly connected, GigabitEthernet0/0O IA 10.108.1.0/24 [110/3] via 10.2.2.2, 00:09:40, GigabitEthernet0/1O 10.108.2.0/24 [110/2] via 10.2.2.2, 00:09:40, GigabitEthernet0/1O N2 192.168.1.0/24 [110/20] via 10.2.2.1, 00:14:54, GigabitEthernet0/1O N1 192.168.2.0/24 [110/22] via 10.2.2.2, 00:08:23, GigabitEthernet0/1RTB#RTB#show ip bgpBGP table version is 17, local router ID is 10.3.3.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 192.168.1.0 10.2.2.1 20 32768 ? *> 192.168.2.0 10.2.2.2 22 32768 ?RTB# RTC#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 10.3.3.0/24 is directly connected, GigabitEthernet0/0L 10.3.3.2/32 is directly connected, GigabitEthernet0/0B 192.168.1.0/24 [20/20] via 10.3.3.1, 00:01:29B 192.168.2.0/24 [20/22] via 10.3.3.1, 00:01:29RTC# RTC#show ip bgpBGP table version is 41, local router ID is 10.3.3.2Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 192.168.1.0 10.3.3.1 20 0 100 ? *> 192.168.2.0 10.3.3.1 22 0 100 ?RTC#

    In the same way as with OSPF External routes, to redistribute only OSPF N1 routes, enter this command under router BGP 100 on Router B:

    RTB(config)#router bgp 100 
    RTB(config-router)#redistribute ospf 1 match nssa-external 1

    !--- This redistributes only OSPF NSSA-external Type-1 routes into BGP.

    To redistribute only OSPF N2 routes, enter this command under router BGP 100 on Router B:

    RTB(config)#router bgp 100  
    RTB(config-router)#
    redistribute ospf 1 match nssa-external 2

    !--- This redistributes only OSPF NSSA-external Type-2 routes into BGP.

    Note: Route-Maps can also be used to redistribute OSPF Type 1/2 into BGP. Refer toRedistribute OSPF E2 Routes in BGPfor more information.

    Modify the Redistribution Option in OSPF

    It is important to understand how successive configuration change alters your configuration. A new command with the match option does not overwrite the previous one but is added to it. The next example explains how the configuration command sequence can have an impact on redistribution:

    R4#configure terminalR4(config)#router bgp 100R4(config-router)#redistribute ospf 1 match internalR4(config-router)#^Z!--- Initially, you redistribute internal OSPF routes into BGP 100.R4#show run | include redistribute ospf redistribute ospf 1 match internalR4#configure terminalR4(config)#router bgp 100R4(config-router)#redistribute ospf 1 match externalR4(config-router)#^Z!--- With this second command, you tell BGP to also redistribute external OSPF routes.R4#show run | include redistribute ospf redistribute ospf 1 match internal external 1 external 2R4#R4#configure terminalR4(config)#router bgp 100R4(config-router)#no redistribute ospf 1 match external 2R4(config-router)#^Z!--- With this no command, you only disable the redistribution of external type 2 into BGP. 
    !--- All other types of routes previously configured remain.
    R4#show run | include redistribute ospf redistribute ospf 1 match internal external 1 !--- As you can see, internal and external type 1 remain.R4#configure terminalR4(config)#router bgp 100R4(config-router)#no redistribute ospf 1 match internal external 1R4(config-router)#^Z !--- Now, with this no command, which includes all configured keywords, it is important to note that you
    !--- still do not disable the redistribution fully. you only removed the keyword. After this,
    !--- the IOS still acts as default—redistributing internal routes only.
    R4#show run | include redistribute ospf redistribute ospf 1R4#configure terminalR4(config)#router bgp 100R4(config-router)#no redistribute ospf 1 !--- Always use the previous command in order to completely disable redistribution.R4(config-router)# ^ZR4#show run | include redistribute ospfR4#


    Unable to Redistribute iBGP Learnt Routes into an IGP such as EIGRP and OSPF

    Route Redistribution is used to propagate routes learned with the use of one protocol, into another routing protocol. When BGP is redistributed into an IGP, only eBGP learned routes get redistributed. Theinternal Border Gateway Protocol (iBGP) learned routes known on the router are not introduced into the IGP in order to prevent the creation of routing loops.

    By default, the iBGP redistribution into IGP is disabled. Issue thebgpredistribute-internalcommand in order to enable redistribution of iBGP routes into IGP. Precautions need to be taken to redistribute specific routes with the use of route maps into IGP.

    A sample configuration for redistribution of iBGP routes into OSPF is shown here:

    Router(config)#router bgp 65345 Router(config-router)#bgp redistribute-internal!Router(config)#router ospf 100Router(config-router)#redistribute bgp 65345 subnets

    Note: The redistribution of iBGP routes into an Interior Gateway Protocol can cause routing loops within the Autonomous System (AS). This is not recommended. Route filters need to be set in order to control the information, which is imported into the IGP.

    Redistribute OSPF Default Routes into BGP

    In order to redistribute default routes into BGP, use thenetworkstatement anddefault-informationoriginate.In this example, the OSPF default routes are redistributed into BGP. This is done with the creation of a route map and the distribution of the default network, which is permitted by the standard ACL.

    !route-map map_default_only permit 10 match ip address acl_default_only!ip access-list standard acl_default_only permit 0.0.0.0!router bgp 64601 network 0.0.0.0 redistribute ospf 1 route-map map_default_only default-information originate!

    !--- Distributes the default route in bgp

    After the configuration, clear the bgp sessions with theclearipbgp *command.

    Related Information

    • OSPF: Frequently Asked Questions
    • Frequently Asked Questions BGP
    Understand the Redistribution of OSPF Routes into BGP (2024)
    Top Articles
    The Difference Between Capital One & Capital One 360 | BauerFinancial
    Wordle Hard Mode is easier than normal mode – seriously
    Cars & Trucks - By Owner near Kissimmee, FL - craigslist
    Botw Royal Guard
    Www.politicser.com Pepperboy News
    The Best Classes in WoW War Within - Best Class in 11.0.2 | Dving Guides
    Riegler &amp; Partner Holding GmbH auf LinkedIn: Wie schätzen Sie die Entwicklung der Wohnraumschaffung und Bauwirtschaft…
    Www Movieswood Com
    Xm Tennis Channel
    Globe Position Fault Litter Robot
    Rosemary Beach, Panama City Beach, FL Real Estate & Homes for Sale | realtor.com®
    Meritas Health Patient Portal
    D10 Wrestling Facebook
    Alexandria Van Starrenburg
    Invert Clipping Mask Illustrator
    Red Devil 9664D Snowblower Manual
    Our History
    Milanka Kudel Telegram
    Georgetown 10 Day Weather
    Barber Gym Quantico Hours
    Riversweeps Admin Login
    25 Best Things to Do in Palermo, Sicily (Italy)
    Which Sentence is Punctuated Correctly?
    Jordan Poyer Wiki
    Integer Division Matlab
    When Does Subway Open And Close
    Apartments / Housing For Rent near Lake Placid, FL - craigslist
    The Creator Showtimes Near R/C Gateway Theater 8
    Обзор Joxi: Что это такое? Отзывы, аналоги, сайт и инструкции | APS
    Mandy Rose - WWE News, Rumors, & Updates
    Kabob-House-Spokane Photos
    Marilyn Seipt Obituary
    Cinema | Düsseldorfer Filmkunstkinos
    24 Hour Drive Thru Car Wash Near Me
    Amazing Lash Bay Colony
    October 19 Sunset
    UPS Drop Off Location Finder
    Shaman's Path Puzzle
    Puerto Rico Pictures and Facts
    Pitco Foods San Leandro
    Consume Oakbrook Terrace Menu
    Western Gold Gateway
    Giantess Feet Deviantart
    Bones And All Showtimes Near Johnstown Movieplex
    Cranston Sewer Tax
    Skyward Marshfield
    Pekin Soccer Tournament
    Coroner Photos Timothy Treadwell
    412Doctors
    Frequently Asked Questions
    Runescape Death Guard
    Latest Posts
    Article information

    Author: Ray Christiansen

    Last Updated:

    Views: 5819

    Rating: 4.9 / 5 (49 voted)

    Reviews: 88% of readers found this page helpful

    Author information

    Name: Ray Christiansen

    Birthday: 1998-05-04

    Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

    Phone: +337636892828

    Job: Lead Hospitality Designer

    Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

    Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.