Juniper customer interface + BGP

Download Template
A simple config that will create a customer facing interface and configure in-bound/out-bound policer. [This assumes that the policer is already created.]

zarreomar
March 19, 2015
Interface, i.e., ge-0/0/0



IP/Bits



IP




set interfaces %{ifd0}% unit %{cust_vlan}% description "%{desc}%"
set interfaces %{ifd0}% unit %{cust_vlan}% vlan-id %{cust_vlan}%
set interfaces %{ifd0}% unit %{cust_vlan}% family inet address %{wan_ipaddr}%
set interfaces %{ifd0}% unit %{cust_vlan}% family inet policer input %{rate_limit_in}%
set interfaces %{ifd0}% unit %{cust_vlan}% family inet policer output %{rate_limit_out}%

set protocols bgp group Customer-EBGP type external
set protocols bgp group Customer-EBGP neighbor %{bgp_peer}% description "%{desc}%"
set protocols bgp group Customer-EBGP neighbor %{bgp_peer}% import %{import_filter}%
set protocols bgp group Customer-EBGP neighbor %{bgp_peer}% family inet unicast
set protocols bgp group Customer-EBGP neighbor %{bgp_peer}% export %{export_filter}%
set protocols bgp group Customer-EBGP neighbor %{bgp_peer}% peer-as %{peer_asn}%

set protocols ospf area 0.0.0.0 interface %{ifd0}%.%{cust_vlan}% passive

You must be logged in to comment.