We want our EX 4300 to send all traffic sourced from 184.108.40.206/32 , received on f0/0 , to next hop 220.127.116.11
On EX 4300, is following possible?
set firefall family inet filter TEST term T1match source-address 18.104.22.168/32
set firefall family inet filter TEST term T1match then next-hop 200.2000.200.2
set firefall family inet filter TEST term T1match then accept
set firefall family inet filter TEST term T2 then accept
set int f0/0 unit 0 family inet filter TEST input.
Thanks and have nice weekend!!
You need to create a routing instance for the forwarding. the procedure is outlined here.
"next-ip" and "next-interface" are supported on MX-series only
(MX Series) Direct packets to the specified outgoing interface.
(MX Series) Direct packets to the specified destination IPv4 address.
You can do it with "then routing-instance BLAH" action but redirecting towards connected subnets that were leaked between instances is not supported: https://kb.juniper.net/InfoCenter/index?page=content&id=KB23027
In other words, if 22.214.171.124 is resolved via connected subnet, then You have to jump through additional hoops to make this happen. You can find numerous posts on this forum discussing this exact thing.