cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
433
Views
1
Helpful
2
Replies

XR IOS Send only default route using bgp to neighbor router same AS.

dtamburin
Level 1
Level 1

I need to send just the default route to a neighbor router in the same AS.

No other routes should be sent.

This is a ASR9K

looking for configuration assistance, I could do it on "normal" ios.

thank you

1 Accepted Solution

Accepted Solutions

vishalbhandari
Spotlight
Spotlight

@dtamburin You can achieve this on the ASR9K using route policy language (RPL) to filter and send only the default route. Here’s how:

  1. Create a route policy to permit only the default route:

    bash
    route-policy DEFAULT_ONLY if destination in (0.0.0.0/0) then pass else drop endif end-policy
  2. Apply this policy to your BGP neighbor under the address family:

    bash
    CopyEdit
    router bgp <ASN> neighbor <NEIGHBOR-IP> address-family ipv4 unicast route-policy DEFAULT_ONLY out

This ensures that only 0.0.0.0/0 is advertised, and no other routes are sent. Let me know if you need further clarification

View solution in original post

2 Replies 2

vishalbhandari
Spotlight
Spotlight

@dtamburin You can achieve this on the ASR9K using route policy language (RPL) to filter and send only the default route. Here’s how:

  1. Create a route policy to permit only the default route:

    bash
    route-policy DEFAULT_ONLY if destination in (0.0.0.0/0) then pass else drop endif end-policy
  2. Apply this policy to your BGP neighbor under the address family:

    bash
    CopyEdit
    router bgp <ASN> neighbor <NEIGHBOR-IP> address-family ipv4 unicast route-policy DEFAULT_ONLY out

This ensures that only 0.0.0.0/0 is advertised, and no other routes are sent. Let me know if you need further clarification

Thank you,  I'll try it out and update.