Here are answers to your Qs.
Andy
***************************************
1. Can you add a route-map for an AS that has route filtering, then remove filtering, keeping the imported routes?
Yes.
You can attach a route-map to the neighbor, then remove the old filter (prefix-list, distribute-list, etc.). The route-map can replicate the filtering logic by just having match ip prefix-list <name>
and permit
.
→ This is effectively “converting” filtering to route-maps. Nothing bad happens, as long as your route-map enforces the same policy.
2. Will that restart the routed daemon, or reset the BGP session?
It depends on your platform (Cisco, Juniper, Fortigate, Check Point, etc.), but generally:
-
Changing a route-map or prefix-list does not reset the BGP session.
-
The routes will just be re-evaluated against the new policy (soft reconfiguration).
-
If your platform doesn’t support automatic re-eval, you might need a manual clear ip bgp <neighbor> soft in/out
. But still, this is not a hard reset — the TCP session stays up, only routes are reprocessed.
So no daemon restart, and not usually a full BGP session flap.
3. They both do the same thing? Which is better?
-
Filtering (prefix-lists/distribute-lists) = simple, binary, quick. Use it if all you need is “import/export only these prefixes.”
-
Route-maps = flexible, industry standard, future-proof. Use them if you need to filter and/or manipulate attributes (local-pref, prepend, communities, etc.).
In practice, most operators standardize on routemaps, even for simple filters, because:
-
They consolidate filtering + attribute control in one place.
-
They’re more readable if your policy gets complex later.
-
They give you consistency across neighbors.
The only “advantage” of plain filters is simplicity — one line instead of a route-map stanza.