OpenBGP Won't Establish A Session/Connection?

2007-01-31 Thread demuel
Hi,

I had setup a private test network with the following information to test 
openbgp:


OBSD-01
---

AS: 65213
IP: 10.0.111.77


OBSD-02
---

AS: 65123
IP: 172.16.111.77


My /etc/bgpd.conf configuration for OBSD-01 and for OBSD-02:


# OBSD-01
AS 65213
 router-id 10.0.111.77
 network 10.0.111.0/24

neighbor 172.16.111.77 {
  remote-as  65123
  descr  link to OBSD-02
}

# filter out prefixes longer than 24 or shorter than 8 bits
deny from any
allow from any prefixlen 8 - 24

# do not accept a default route
deny from any prefix 0.0.0.0/0

# filter bogus networks
deny from any prefix 10.0.0.0/8 prefixlen = 8
deny from any prefix 172.16.0.0/12 prefixlen = 12
deny from any prefix 192.168.0.0/16 prefixlen = 16
deny from any prefix 169.254.0.0/16 prefixlen = 16
deny from any prefix 192.0.2.0/24 prefixlen = 24
deny from any prefix 224.0.0.0/4 prefixlen = 4


# OBSD-02

AS 65123
  router-id 172.16.111.77
  network 172.16.111.0/24

neighbor 10.0.111.77 {
  remote-as 65123
  descr link to OBSD-02
}

# filter out prefixes longer than 24 or shorter than 8 bits
deny from any
allow from any prefixlen 8 - 24

# do not accept a default route
deny from any prefix 0.0.0.0/0

# filter bogus networks
deny from any prefix 10.0.0.0/8 prefixlen = 8
deny from any prefix 172.16.0.0/12 prefixlen = 12
deny from any prefix 192.168.0.0/16 prefixlen = 16
deny from any prefix 169.254.0.0/16 prefixlen = 16
deny from any prefix 192.0.2.0/24 prefixlen = 24
deny from any prefix 224.0.0.0/4 prefixlen = 4


Invoking /usr/sbin/bgpctl reload then doing /usr/sbin/bgpctl -n show 
resulted in to the
following:


For /usr/sbin/bgpctl:

reload request sent.
request processed


For /usr/sbin/bgpctl show:
Neighbor ASMsgRcvdMsgSentOutQ  Up/Down  State/PrefixRcvd
172.16.111.7765213  0  0 0 NeverActive
10.0.111.77  65213  0  0 0 NeverActive


My reference was the paper written by Claudio Jeker
(www.openbsd.org/papers/linuxtag06-network.pdf). I just replaced the IP address 
with my setup but
as we can see in Up/Down as well as in State/PrefixRcvd in my result, it is in 
contrast with the
result reflected in his paper.


Please advise if I did missed something down here.


Regards,
Demuel



Re: OpenBGP Won't Establish A Session/Connection?

2007-01-31 Thread Henning Brauer
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2007-01-31 15:02]:
 Hi,
 
 I had setup a private test network with the following information to test 
 openbgp:
 
 
 OBSD-01
 ---
 
 AS: 65213
 IP: 10.0.111.77
 
 
 OBSD-02
 ---
 
 AS: 65123
 IP: 172.16.111.77
 
 
 My /etc/bgpd.conf configuration for OBSD-01 and for OBSD-02:
 
 
 # OBSD-01
 AS 65213
  router-id 10.0.111.77
  network 10.0.111.0/24
 
 neighbor 172.16.111.77 {
   remote-as  65123
   descr  link to OBSD-02
 }

since these are not directly connected, you need to do multihop bgpd 
and set the distance to the # of hops in between. look for multihop 
in the bgpd.conf manpage.

-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam