JunOS 2 ISP with dynamic routing and VRF

vladimir simeonov
03/02/2017

issue: the backup ISP WAN link is not usable since there’s no reverse route via that interface.

option 1: use VRF

option 2: unexplored

option 1 settings:

set routing-instances vrf1 instance-type virtual-router
set routing-instances vrf1 interface ge-0/0/0.0
set routing-instances vrf1 interface ge-0/0/1.0
set routing-instances vrf1 interface ge-0/0/2.0
set routing-instances vrf1 routing-options instance-import import-from-vrf2
set routing-instances vrf2 instance-type virtual-router
set routing-instances vrf2 interface ge-0/0/3.0
set routing-instances vrf2 interface ge-0/0/4.0
set routing-instances vrf2 interface ge-0/0/5.0
set routing-instances vrf2 interface ge-0/0/6.0
set routing-instances vrf2 routing-options instance-import import-from-vrf1
set policy-options policy-statement import-from-vrf1 term 1 from instance vrf1
set policy-options policy-statement import-from-vrf1 term 1 then accept
set policy-options policy-statement import-from-vrf2 term 1 from instance vrf2
set policy-options policy-statement import-from-vrf2 term 1 from protocol static route-filter 0.0.0.0/0 exact
set policy-options policy-statement import-from-vrf2 term 1 then reject
set policy-options policy-statement import-from-vrf2 term 2 from instance vrf2
set policy-options policy-statement import-from-vrf2 term 2 then accept

set policy-options policy-statement vrf1-ospf-export term 2 from route-filter 10.8.244.0/24 exact
set policy-options policy-statement vrf1-ospf-export term 2 then accept

Comments are closed !