Match filters
set firewall family inet filter FBF term t1 from source-address 1.1.1.1/32
set firewall family inet filter FBF term t1 then count vMX2-counter
set firewall family inet filter FBF term t1 then routing-instance vMX2
set firewall family inet filter FBF term t2 from source-address 11.11.11.11/32
set firewall family inet filter FBF term t2 then count vMX3-counter
set firewall family inet filter FBF term t2 then routing-instance vMX3
set firewall family inet filter FBF term t3 then count default
set firewall family inet filter FBF term t3 then accept
Routing-instance
set routing-instances vMX2 instance-type forwarding
set routing-instances vMX2 routing-options static route 0.0.0.0/0 next-hop 172.30.25.2
set routing-instances vMX3 instance-type forwarding
set routing-instances vMX3 routing-options static route 0.0.0.0/0 next-hop 172.30.26.3
Rib-group
set routing-options rib-groups FBF-group import-rib inet.0
set routing-options rib-groups FBF-group import-rib vMX2.inet.0
set routing-options rib-groups FBF-group import-rib vMX3.inet.0
set routing-options interface-routes rib-group inet FBF-group
apply the filter
set interfaces ge-0/0/0 unit 0 family inet filter input FBF
set interfaces ge-0/0/0 unit 0 family inet address 172.30.25.1/28
set interfaces ge-0/0/1 unit 0 family inet filter input FBF
set interfaces ge-0/0/1 unit 0 family inet address 172.30.26.1/28
root@vMX1# run show route 4.4.4.4
vMX2.inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Static/5] 01:28:42
> to 172.30.25.2 via ge-0/0/0.0
vMX3.inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Static/5] 01:28:42
> to 172.30.26.3 via ge-0/0/1.0
root@vMX1# run traceroute 4.4.4.4 source 1.1.1.1
traceroute to 4.4.4.4 (4.4.4.4) from 1.1.1.1, 30 hops max, 40 byte packets
traceroute: sendto: No route to host
1 traceroute: wrote 4.4.4.4 40 chars, ret=-1
I am practising filter based forwarding on vMX. Anyone can help me to figure out why I got No route to host
thanks in advance !!