Here is a scenario and working route-map example for Policy base routing.
I'm new Junos i'm struggling with Firewall filters and Policy-statements in Junos.
Can you help me to convert this simple scenario from Cisco IOS to JUNOS equivalent.
What it does below it matchs a packet from any source but destination 200.100.30.248/29 and set its next hop to 192.168.1.1
Matching criteria using Access List
access-list 104 permit ip any 202.100.30.248 0.0.0.7 log-input
Route-map
route-map PBR permit 10
match ip address 104
set ip default next-hop 192.168.1.1
And at the End it is applied.
interface FastEthernet0/1
ip address 172.16.1.2 255.255.255.252
ip policy route-map PBR
Best Answer
This feature in JunOS called Filter based forwarding. You can find configurations examples for MX platform here. Example with dual-ISP routing on SRX platform here
Here also working example for SRX platform. We have network, traffic from which should be routed thru non-default route, except local destination networks.
Interface, behind which source addresses are located:
Firewall filter:
Routing instance configuration:
Set up RIB-Groups:
}
After all set, lets check routing table for ri_fw_injdefault instance: