Hi!
I have the following situation:
- I have two uplink ISP, each with two BGP sessions: one BGP session for national traffic and one for international traffic,
in total there are 4 bgp sessions ( 2 x international, 2 x national traffic ).
- I have a customer that wants two BGP session, one with national traffic and one with international traffic
Currently I use communities to filter what prefixes each customer session receives and also where each customer session prefixes are allowed.
Outgoing traffic from the customer to my uplinks works as expected.
I'am facing a problem of routing incoming traffic to the correct interface of the customer, due to the fact I receive the same prefix from the customer via two bgp sessions ( both national and international ), when a packet from my international uplink arrives I want it to be router to the customer international session and not via the national session.
I need something like ( programatically ):
if source interface is <my international uplink> and destination is <my client prefix> then route via <client international session>
if source interface is <my national uplink> and destination is <my client prefix> then route via <client national session>
I'am curious to find out what would be the correct way of achieving this scenario.
Hopes that make sense.