03-27-2023
10:49 PM
- last edited on
03-28-2023
09:38 PM
by
Translator
Hi all,
We have few ISP providers and few public subnets. we need send/receive one specific prefix traffic via one ISP provider for any destination.
For Inbound traffic, I can use AS-PATH prepend option.
But I have a concern how to control outbound traffic from our AS for any destination. As per my knowledge we can use Local Preference as a inbound policy on the BGP peer to control outbound traffic but you may need to know destination IPs.
Here I only know the internal prefix, so I used below config using
ip access list extended
but that did not help and when I checked BGP Routing, there was no change on LP values. Any good suggestion to solve this scenario please?
************************
Used config
ip access-list extended ABCDE
permit ip any aa.bb.cc.0 0.0.0.255
!
!
route-map XVZ permit 10
match ip address ABCDE
set local-preference 200
!
route-map XVZ permit 20
router bgp xxxx
address-family ipv4
neighbor aa.bb.cc.dd route-map XYZ in
***************************
Thank you in advance...
Solved! Go to Solution.
03-28-2023
02:03 AM
- last edited on
03-28-2023
09:50 PM
by
Translator
Hi,
what is
prefix-list
you try to match and set LP to 200? If it is local prefix, then obviously it will not work. And since destination is any and you want to route from specific your subnet (prefix) via selected ISP, you can't do such control with BGP. Use policy-based routing.
03-28-2023
02:03 AM
- last edited on
03-28-2023
09:50 PM
by
Translator
Hi,
what is
prefix-list
you try to match and set LP to 200? If it is local prefix, then obviously it will not work. And since destination is any and you want to route from specific your subnet (prefix) via selected ISP, you can't do such control with BGP. Use policy-based routing.
03-28-2023 03:07 AM
if you have dual ISP then you can control Outbound via LP.
this make router prefer routes via one ISP
I dont see wrong in your config
03-28-2023 03:09 AM
Hi,
based on requirement, author needs to send to specific ISP based on local prefix. Route control with LP is for destination prefixes.
03-29-2023 03:52 PM - edited 03-30-2023 01:32 AM
he have dual ISP
he can set LP without need to match any prefix
what he need is
neighbor x.x.x.x route-map LP in
!
route-map LP permit 10
set LP 200
that it
it work without need of PBR.
03-29-2023 09:43 PM
Hi MHM Cisco World,
Thank you for response.
Here what I want to set only one prefix outbound traffic via one ISP link. Not all traffic. Otherwise I will affect to our traffic balancing.
Best Regards~~~
03-30-2023 01:34 AM
Just one min.
You receive this destination prefix from both or one ISP?
You mention I check bgp table what excatly you check?
03-30-2023 05:18 AM
Hi,
There is no specific destination. So destination prefixes can be received from any ISP link.
Best Regards~~~
03-30-2023 05:51 AM
so you receive default route via BGP from ISP ??
if that case then sure you can not use LP
you can use PBR as @Kanan Huseynli mention above.
if you receive this public IP from ISP you can use LP or you can use LP to shift all traffic via one ISP.
03-29-2023 10:54 PM
With your configuration it affects all routing. He needs only from specific source prefix, read requirements please.
03-30-2023 12:13 AM
Hello
Just like to add It seems it’s been assumed by the OP stating local preference that the isp connections are via multiple wan rtrs it doesn’t state this, So if they are attached via a single wan rtr, then the weight preference would be applicable for egress routing.
03-30-2023 12:16 AM
Hello
Just like to add It seems it’s been assumed by the OP stating local preference that the isp connections are via multiple wan rtrs it doesn’t state this, So if they are attached via a single wan rtr, then the weight preference would be applicable for egress routing.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide