- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 08:43 AM
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
Solved! Go to Solution.
- Labels:
-
ASR 1000 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 09:28 AM
@dtamburin You can achieve this on the ASR9K using route policy language (RPL) to filter and send only the default route. Here’s how:
Create a route policy to permit only the default route:
bashroute-policy DEFAULT_ONLY if destination in (0.0.0.0/0) then pass else drop endif end-policyApply this policy to your BGP neighbor under the address family:
bashCopyEditrouter 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 09:28 AM
@dtamburin You can achieve this on the ASR9K using route policy language (RPL) to filter and send only the default route. Here’s how:
Create a route policy to permit only the default route:
bashroute-policy DEFAULT_ONLY if destination in (0.0.0.0/0) then pass else drop endif end-policyApply this policy to your BGP neighbor under the address family:
bashCopyEditrouter 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 10:15 AM
Thank you, I'll try it out and update.
