Reset Search
 

 

Article

How to redistribute a BGP default route into OSPF

« Go Back

Information

 
TitleHow to redistribute a BGP default route into OSPF
Objective
How to redistribute a BGP default route into OSPF
Environment
  • SLX-OS
  • SLX Series
  • BGP
  • OSPF
Procedure
  1. Configure an IP prefix-list
    ip prefix-list prefix4-default seq 5 permit 0.0.0.0/0
  2. Create a route-map to permit the 0.0.0.0/0 prefix in the prefix-list 
    route-map ospf-default permit 1
    match ip address prefix-list prefix4-default
    match protocol bgp external  // internal for iBGP or external for eBGP. 
    set metric assign 1
    set metric-type type-1  
    !
    route-map ospf-default deny 100
  3. Redistribute BGP route into OSPF using the route-map filter
    router ospf
    default-information-originate route-map ospf-default
  4. Check if the default route with attribute is present in the OSPF area
    NetIron CER 2024F#sh ip ospf database external-link-state extensive
    Type-5 AS External Link States
    Index Age LS ID Router Netmask Metric Flag Fwd Address SyncState
    1 4 0.0.0.0 10.127.1.26 00000000 00000001 0000 0.0.0.0 Done
    LSA Header: age: 4, options: --------E-, seq-nbr: 0x80000001, length: 36
    NetworkMask: 0.0.0.0
    TOS 0: metric_type: 1, metric: 1
    forwarding_address: 0.0.0.0
    external_route_tag: 0
Additional notes
NB: The route map(match) protocol bgp requires the internal or external parameter to match the respected iBGP or eBGP routes respectively. No BGP route(s) will be redistributed if this parameter is not included.

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255