JUNOS – iBGP – default route

Tuesday, March 31st, 2009

Juniper M7i – JUNOS 9.3R2.8


set routing-options generate route 0.0.0.0/0 discard
set routing-options router-id 10.20.30.1
set routing-options autonomous-system xxxxx

set protocols bgp group iBGP type internal
set protocols bgp group iBGP description “iBGP – Routers”
set protocols bgp group iBGP local-address 10.20.30.1
set protocols bgp group iBGP log-updown
set protocols bgp group iBGP export default-orginate
set protocols bgp group iBGP export nothing-out
set protocols bgp group iBGP local-as xxxxx
set protocols bgp group iBGP neighbor 10.20.30.2
set protocols bgp group iBGP neighbor 10.20.30.3

set policy-options policy-statement nothing-out term 1 then reject
set policy-options policy-statement default-orginate from route-filter 0.0.0.0/0 exact
set policy-options policy-statement default-orginate then accept

labuser@pe-1-testlab# run show route advertising-protocol bgp 10.20.30.2

Prefix                  Nexthop              MED     Lclpref    AS path
* 0.0.0.0/0               Self                         100        I

labuser@pe-1-testlab# run show route advertising-protocol bgp 10.20.30.3

Prefix                  Nexthop              MED     Lclpref    AS path
* 0.0.0.0/0               Self                         100        I

Comments are closed.