Pages

Thursday, March 1, 2018

Juniper Policy Based Routing ( Upload traffic PBR)



* Create a routing Instance "upstream1" and set gateway
set routing-instances upstream1 instance-type forwarding
set routing-instances upstream1 routing-options static route 0.0.0.0/0 qualified-next-hop 10.10.10.1(Upstream1-Gateway)

* Create PBR name "uplink-pbr" and Allow source IP addresses for pbr

set firewall family inet filter uplink-pbr term 30 from source-address 192.168.100.0/24
set firewall family inet filter uplink-pbr term 30 then routing-instance upstream1
set firewall family inet filter uplink-pbr term default then accept


set routing-options rib-groups pbr-group import-rib inet.0
set routing-options rib-groups pbr-group import-rib upstream1.inet.0
set routing-options interface-routes rib-group inet pbr-group


* Apply "uplink-pbr" to Client Gateway Inernface
set interfaces ge-1/0/6 unit 0 description *****Client-01****
set interfaces ge-1/0/6 unit 0 family inet filter input uplink-pbr

1 comment: