Differences
This shows you the differences between two versions of the page.
juniper:bgp [2006/10/05 18:36] a some more stuff |
juniper:bgp [2009/05/25 00:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== BGP on Juniper (JunOS) ====== | ||
- | 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 193.138.33.109 { | ||
- | peer-as 5435; | ||
- | } | ||
- | } | ||
- | } | ||
- | |||
- | **Remember to also filter the import or your can be flooded** |