Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
juniper:bgp [2006/04/21 11:08] a created |
juniper:bgp [2008/02/03 22:39] a |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== BGP on Juniper (JunOS) ====== | ||
+ | |||
http:// | http:// | ||
+ | http:// | ||
+ | |||
+ | See also: | ||
+ | |||
+ | * {{juniper: | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Powerful BGP commands ===== | ||
+ | |||
+ | What do we advertice to our neighbor | ||
+ | show route advertising-protocol bgp <IP> | ||
+ | |||
+ | What do we get from our neighbor | ||
+ | show route receive-protocol bgp <IP> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Exporting ===== | ||
+ | |||
+ | policy-statement foobar-export { | ||
+ | term foobar { | ||
+ | from { | ||
+ | route-filter x.x.x.0/24 exact accept; | ||
+ | } | ||
+ | } | ||
+ | term rest { | ||
+ | then reject; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | **Remember, that you need to have something in the routing table**! | ||
+ | |||
+ | routing-options: | ||
+ | | ||
+ | route x.x.x.0/24 discard metric 100; | ||
+ | ... | ||
+ | } | ||
+ | |||
+ | |||
+ | | ||
+ | bgp { | ||
+ | group uplink { | ||
+ | type external; | ||
+ | description foobar_uplink; | ||
+ | export foobar-export; | ||
+ | neighbor x.x.x.x { | ||
+ | peer-as < | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | **Remember to also filter the import or your can be flooded** |