[Xorp-users] BGP route

Pavlin Radoslavov pavlin at ICSI.Berkeley.EDU
Tue Mar 25 11:27:17 PDT 2008


aizuddin ariffin <amaizuddin at yahoo.com> wrote:

> 
> Hi all.Can anyone help me check my BGP configuration?
> Here is my configuration.This is my first time using
> XORP and hope anyone can help me.

This is not BGP-specific, but all your IP interface addresses have
form x.x.x.0. It is better to avoid the host part of the address
being zero which is the old-style broadcast address (now the subnet
address itself).

You should make all interface addreses x.x.x.1 or something like this.

Pavlin

> Thanks.
> 
> interfaces {
>     interface eth0 {
>  description: "data interface"
>  vif eth0 {
>      address 172.16.0.0 {
>   prefix-length: 24
>   broadcast: 172.16.0.255
>      }
>  }
>     }
> }
> 
> fea {
>     unicast-forwarding4 {
>     disable: true
>    } 
> }
> 
> policy {
>  policy-statement export-connected {
>  term 100 {
>  from {
>   protocol:"connected"
>   network4: 172.16.0.0/24      
>       }
>  to   { 
>   neighbor: 172.16.1.0
>       }
> 
>  then { 
>   nexthop4: 172.16.1.0
>   accept
>  }
> }
> }
> }
> 
> protocols {
>     bgp {
>  bgp-id: 172.16.0.0
>  local-as: 33333
>  export: "export-connected" 
> 
>  peer 172.16.1.0 {
>      local-ip: 172.16.0.0
>      as: 33334
>      next-hop: 172.16.1.0
> 
>      local-port: 179
>      peer-port: 179
>      holdtime: 120
>      
>  }
>  
>  peer 172.16.2.0 {
>      local-ip: 172.16.0.0
>      as: 33335
>      next-hop: 172.16.2.0
> 
>      local-port: 179
>      peer-port: 179
>      holdtime: 120
> 
>  }
> 
>  peer 172.16.3.0 {
>      local-ip: 172.16.0.1
>      as: 33336
>      next-hop: 172.16.3.0
>      local-port: 179
>      peer-port: 179
>      holdtime: 120
> 
>      ipv4-unicast: true
>      
>      
>  } 
> 
>  
>     }
> }
> 
> Here is my BGP output.
> 
> root at debian> show bgp routes
> Status Codes: * valid route, > best route
> Origin Codes: i IGP, e EGP, ? incomplete
> 
> Prefix             Nexthop     Peer       AS Path
> *> 172.16.0.0/24  172.16.0.0  0.0.0.0        i
> 
> The output look something wrong to me though.
> Can anyone help me solve this problem.Thanks.
> 
>        
> ---------------------------------
> Never miss a thing.   Make Yahoo your homepage._______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users



More information about the Xorp-users mailing list