Some IPS work only on 1 ISP is it possible?

Hello Guys and Happy New Year.

I was wondering sompting strange if is possible :slight_smile:

Ower nerwork has 2 ISP 2 Companys

I have a customer who have an vlan /29 assigned to hes dedicated server the think is he whants hes traffic from hes server to work only true ISP 1 and not both ISPs.

Is there a way a vlan or some ips hes traffic to go only true ISP 1 and not both ISPs ?

Thank you :slight_smile:

You can use policy local route

set policy local-route rule 100 source 192.0.2.0/29
set policy local-route rule 100 set table 10
set protocols static table 10 route 0.0.0.0/0 next-hop ISP_1
set policy local-route rule 100 source 192.0.2.0/29
set policy local-route rule 100 set table 10
set protocols static table 10 route 0.0.0.0/0 next-hop ISP_1

Hello,
At the ISP_1 is ASNumer ? Or BGP Session IP ? From each ISP we have 2 BGP Tables (National and GLobal)

Dose this work with an /32 ? for testing

ISP_1 ip address - gateway/isp/bgp/etc it is just the next hop via the desired isp
It works with any prefix BGP Example β€” VyOS 1.4.x (sagitta) documentation

1 Like

Note the solutions posted only affect outgoing traffic, not incoming.
To do that, you need to advertise customer /29 network only on single link, but ISP probably won’t allow smaller networks than /24