this works . Many thanks for your help .
i am using the option to change preference of 2nd isp to low if isp1 goes down and it works as well.
Original Message:
Sent: 04-19-2024 19:55
From: spuluka
Subject: PBR on a Virtual router
Yes, two forwarding routing instances are created as in the example.
You create the filters with source address matching for the forwarding instances for each ISP.
In the Prod routing instance you add the rib group and import with the filter created in the main instance updated for your Prod.inet.0 import.
set routing-instance Prod routing-options interface-routes rib-group inet IMPORT-PHY
set routing-options rib-groups IMPORT-PHY import-rib Prod.inet.0
set routing-options rib-groups IMPORT-PHY import-rib routing-table-ISP1.inet.0
set routing-options rib-groups IMPORT-PHY import-rib routing-table-ISP2.inet.0
The existing default route in the Prod routing instance can remain. This will be used by traffic that does not match for the forwarding routing instance.
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home
Original Message:
Sent: 04-19-2024 05:34
From: skywalker_007
Subject: PBR on a Virtual router
Hi Steve ,
Thanks for your reply . This means that i have to create 2 routing instances ( both forwarding ) for two ISPs
currently in prod.inet.0 VR , ihave a default static route configured , which i have to remove ?
and then call two default static routes in 2 new routing instances ?
Original Message:
Sent: 04-18-2024 19:26
From: spuluka
Subject: PBR on a Virtual router
Yes, part of doing the configuration will add a forwarding instance. You can see an example configuration here.
https://supportportal.juniper.net/s/article/How-to-configure-Filter-Based-Forwarding-on-SRX-for-a-typical-dual-ISP-scenario?language=en_US
The forwarding instance is a new one created for this purpose as noted for both ISP.
You do need to be sure that the routing options section you configure are under your virtual router Prod and not the main level
routing-options {
interface-routes {
rib-group inet IMPORT-PHY;
}
static {
route 0.0.0.0/0 next-hop [ 10.1.1.2 10.2.2.2 ];
}
rib-groups {
IMPORT-PHY {
import-rib [ inet.0 routing-table-ISP1.inet.0 routing-table-ISP2.inet.0 ];
}
}
}
And in your case the match criteria will be source ip addresses for the desired zone traffic and not the destination ports as in the example.
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home
Original Message:
Sent: 04-18-2024 14:56
From: skywalker_007
Subject: PBR on a Virtual router
Hello ,
I am having a requirement from client , they have SRX cluster with a custom routing instanace (Virtual router) called Prod.inet.0
All LAN interfaces ( vlan 5, vlan6,vlan 7)and WAN interface ( ISP1) are in this custom routing instance
in default instance inet.0 ,we have only fxp0 (mgmt)
Now customer is requesting a new ISP line , so there will be WAN 2 next week .
Requirement is that traffic
1) traffic from vlan 5 and vlan6 always go to wan1
2) Traffic from vlan 7 always go to wan 2
3) in case wan1 goes down , wan2 should take all traffic for vlan5/6
4) in case wan2 goes down , wan1 should take all traffic for vlan7
DO i need to create a new routing instance of type forwarding ? I checked Filterbase forwarding but thats talk about routing instance forwarding
Here the custom routing instance is of type Virtual router so client cannot change it to forwarding ;
Kindly suggest the config .thanks in advance