Re: [j-nsp] How to advertise network to BGP

From: Saku Ytti (saku+juniper-nsp@ytti.fi)
Date: Sun Mar 10 2002 - 13:49:18 EST


On Sun, Mar 10, 2002 at 11:15:44AM -0500, Saw-Shung Hung wrote:

> How to advertise our network into BGP ? Can you give me an
> example. eg. the network 10.100.0.0/16 into BGP ASN 65500.

http://www.juniper.net/techpubs/software/junos52/swconfig52-routing/html/title-swconfig52-routing.html

Has pretty good documentary about routing with JunOS. Let this be
example of them, having never configured JunOS I came up with this,
propably not cleverest way and perhaps even non-working, but hopefully
would demostrade a bit.

protocols {
  bgp {
    group foo {
      type external;
      export foo;
      peer-as 42;
      neighbour 10.0.0.2;
    }
  }
}

policy options {
  policy-statement foo {
    term advertise-aggregates {
      from protocol aggregate;
      then accept;
    }
    then {
      reject;
    }
  }
}

routing-options {
  autonomous-system 65500;
  aggregate {
    route 10.100.0.0/16 {
      passive;
    }
  }
}

-- 
  ++ytti



This archive was generated by hypermail 2b29 : Mon Aug 05 2002 - 10:42:39 EDT