[Xorp-users] BGP not advertising our route?

Atanu Ghosh atanu at ICSI.Berkeley.EDU
Mon Sep 17 13:54:06 PDT 2007


Hi,

You need to explicity announce your own address space via policy.

----------------------------------------
protocols {
    static {
       route 138.236.0.0/16 {
           next-hop: 216.114.193.145
           metric: 1
      }
   }
}

policy {
    policy-statement static {
        term export {
            from {
                protocol: "static"
            }
        }
   }
}

protocols {
    bgp {
	export: "static"
	/* Rest of your config below */
	...
    }
}
----------------------------------------

Something like the above should work.

        Atanu.

>>>>> "Ethan" == Ethan Sommer <sommere at gac.edu> writes:

    Ethan> We recently noticed that our BGP setup isn't working correctly. We have
    Ethan> two ip connections, one to I2 (which uses BGP) and the other for
    Ethan> commodity Internet (which uses a default route and our ISP presumably
    Ethan> advertises our route.)

    Ethan> We receive all 11000+ I2 routes, and send things out over our I2
    Ethan> connection, but we must not be advertising our route properly because
    Ethan> starting when we started using xorp (rather than quagga) people have
    Ethan> been routing back to us over I1. I assuming I'm doing something wrong in
    Ethan> the BGP section of the config, but I don't know where to start to find
    Ethan> the problem.

    Ethan> Our IP

    Ethan> Our BGP config is as follows: (our ip range is 138.236.0.0/16)
    Ethan> bgp {
    Ethan> bgp-id: 192.42.152.93
    Ethan> local-as: 17234
    Ethan> peer 192.42.152.94 {
    Ethan> local-ip: 192.42.152.93
    Ethan> as: 57
    Ethan> next-hop: 192.42.152.94 /* is this necesary? */
    Ethan> }
    Ethan> peer 216.114.193.145 {
    Ethan> local-ip: 216.114.193.146
    Ethan> as: 12112
    Ethan> next-hop: 216.114.193.145 /* is this necesary? */
    Ethan> }
    Ethan> }

    Ethan> We'd appreciate any tips you have, thanks,

    Ethan> Ethan

    Ethan> -- 
    Ethan> Ethan Sommer
    Ethan> Associate Director of Core Services
    Ethan> Gustavus Adolphus College
    Ethan> 507-933-7042
    Ethan> sommere at gustavus.edu


    Ethan> _______________________________________________
    Ethan> Xorp-users mailing list
    Ethan> Xorp-users at xorp.org
    Ethan> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users



More information about the Xorp-users mailing list