This is an old revision of the document!


BGP on Juniper (JunOS)

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:
 static {
   route x.x.x.0/24 discard metric 100;
   ...
 }
 protocol {
   bgp {
    group uplink {
      type external;
      description foobar_uplink;
      export foobar-export;
      neighbor x.x.x.x {
          peer-as <ASNUM>;
     }
   }
 }

Remember to also filter the import or your can be flooded

juniper/bgp.1202074771.txt.gz · Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready