Routing
Highlighted
Routing

Route specific IPs to two different ISPs

‎03-31-2020 09:57 PM

Dear Team,

 

I have two ISP connected to single mx80 router.

ISP1 is taking default routes.[EBGP configured]

Internal OSPF is configured.

 

#show policy-options policy-statement Advertized-Routes-to-ISP1

term OSPF {
from {
protocol ospf;
route-filter 192.168.0.1/24 exact;
route-filter 172.16.0.1/24 exact;
}
then accept;
}

 

#show policy-options policy-statement Advertized-Routes-to-ISP2

term OSPF {
from {
protocol ospf;
route-filter 192.168.0.1/24 exact;
route-filter 172.16.0.1/24 exact;
}
then

as-path-prepend "131124 131124 131124 131124 ";

accept;
}

 

Routing instance configured:

ISP1 {
instance-type forwarding;
routing-options {
static {
route 0.0.0.0/0 next-hop ISP1;
}
ISP2 {
instance-type forwarding;
routing-options {
static {
route 0.0.0.0/0 next-hop ISP2;
}

 

My requirement is:

192.168.0.1/24 to ISP1

172.16.0.1/24 to ISP2

 

 

 

 

2 REPLIES 2
Highlighted
Routing

Re: Route specific IPs to two different ISPs

‎04-05-2020 03:45 AM

You can use Filter Based Forwarding to select the source address range of interest and forward it to the routing instance for the desired ISP.

 

https://www.juniper.net/documentation/en_US/junos/topics/example/filter-based-forwarding-example.htm...

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Highlighted
Routing

Re: Route specific IPs to two different ISPs

‎04-14-2020 05:23 AM

Hi,

When you say:

My requirement is:

192.168.0.1/24 to ISP1

172.16.0.1/24 to ISP2

 

Do you mean that you want to receive traffic for 192.168.0.1/24 via ISP1 and  receive traffic  to 172.16.0.1/24 via ISP2?

If your ISP accept the usage of MED, you could use this attribute. Other way, would be to announce a most specific route (let's say /23) to the ISP that you would like to receive this traffic and the least specific one (in your case /24) to the other ISP.

 

br.,

Eduardo Haro

 

Feedback