I have 3 vlans:
vLan1 - 192.168.1.0/24
vLan2 - 192.168.2.0/24
vLan3 - 192.168.3.0/24
+ MPLS - 192.168.10.0/24
+ SRX as default GW - 192.168.1.100; 192.168.2.100; 192.168.3.100
Users from vLan1 can connect with MPLS using MPLS router address 192.168.1.5 but users from vLan2 and vLan3 must be first send to SRX (to translate adress).
Idea:
User from vLan1 to Internet:
User -> Access Switch -> VC EX3300 -> SRX -> Internet
User from vLan1 to MPLS:
User -> Access Switch -> VC EX3300 -> MPLS
User from vLan2 and 3 to Internet:
User -> Access Switch -> VC EX3300 -> SRX -> internet
User from vLan2 and 3 to MPLS:
User -> Access Switch -> VC EX3300 (FBF) -> SRX (NAT) -> VC EX3300 -> MPLS
Problem is with vLan2 and 3 and MPLS access. Filter Based Forwarding on VC EX3300 doesn't work at all with my configuration, all user from all vlan's use default routing from inet.0 (not from MPLS_from_net2 and MPLS_from_net3 routing-instance). Where I made a mistake?
root@EXCORE# show routing-options static
route 0.0.0.0/0 next-hop 192.168.1.100
route 192.168.10.0/24 next-hop 192.168.1.5
root@EXCORE# show interfaces vlan
unit 1 {
family inet {
address 192.168.1.1/24;
}
}
unit 2 {
family inet {
filter {
input MPLS_from_net2;
}
address 192.168.2.1/24;
}
}
unit 3 {
family inet {
filter {
input MPLS_from_net3;
}
address 192.168.3.1/24;
}
}
root@EXCORE# show firewall
family inet {
filter MPLS_from_net2 {
term 1 {
from {
source-address {
192.168.2.0/24;
}
}
then {
routing-instance MPLS_from_net2;
}
}
term 2 {
then accept;
}
}
}
family inet {
filter MPLS_from_net3 {
term 1 {
from {
source-address {
192.168.3.0/24;
}
}
then {
routing-instance MPLS_from_net3;
}
}
term 2 {
then accept;
}
}
}
root@EXCORE# show routing-instances
MPLS_from_net2 {
instance-type forwarding;
routing-options {
static {
route 0.0.0.0/0 next-hop 192.168.2.100;
}
}
}
MPLS_from_net3 {
instance-type forwarding;
routing-options {
static {
route 0.0.0.0/0 next-hop 192.168.3.100;
}
}
}