The problem I am seeing is that if I don't specify a router-id in
ospfd.conf, then if the highest IP on a peer router changes the automatic
Router ID, the session fails to start with a "failed to form adjacency with
<old ID>" error.
Is this expected behavior? I can solve it by setting the router-id in
ospfd.conf, but that means I have to customize it for each individual host,
and can't have an ospfd.conf for the role.
I would include a full dmesg, but I have seen this since 4.2 on different
hardware, and for this test, these are just Soekris NET4801, so there are
plenty of dmesg in the archives. I have just finally had enough time to ask
about it.
Here is a description of how to repeat the problem as well as log messages.
If there is any more information I should gather, let me know.
Both Hosts:
Soekris 4801 running:
OpenBSD 4.4-current (GENERIC) #1038: Thu Sep 4 14:53:02 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
Crossover cable between Host1:sis1 and Host2:sis1. No other cables connected,
except serial console.
--- BEGIN /etc/rc.conf.local ---
ospfd_flags=""
--- END /etc/rc.conf.local ---
--- BEGIN /etc/sysctl.conf ---
net.inet.ip.forwarding=1
--- END /etc/sysctl.conf ---
--- BEGIN /etc/ospfd.conf ---
area 0.0.0.0 {
interface sis0
interface sis1
}
--- END /etc/ospfd.conf ---
Host1:
/etc/hostname.sis0:inet 10.33.100.1 255.255.255.0 NONE
/etc/hostname.sis1:inet 10.33.1.2 255.255.255.0 NONE
Host2:
/etc/hostname.sis0:inet 10.33.0.1 255.255.255.0 NONE
/etc/hostname.sis1:inet 10.33.1.1 255.255.255.0 NONE
/etc/hostname.lo2:inet 10.0.100.1 255.255.255.0 NONE
Action:
On Host1:
# ospfctl s | grep Router
Router ID: 10.33.1.2
# ospfctl s nei
ID Pri State DeadTime Address Iface Uptime
10.33.1.1 1 FULL/BCKUP 00:00:38 10.33.1.1 sis1 00:00:22
On Host2:
# ospfctl s | grep Router
Router ID: 10.0.100.1
# mv /etc/hostname.lo2 /etc/hostname.lo2.orig && \
sed -e 's/10.0.100.1/10.0.99.1/' /etc/hostname.lo2.orig > /etc/hostname.lo2
# reboot
# ospfctl s | grep Router
Router ID: 10.0.99.1
# ospfctl s nei
ID Pri State DeadTime Address Iface Uptime
10.33.1.2 1 INIT/OTHER 00:00:38 10.33.1.2 sis1 -
# grep ospf /var/log/daemon
Sep 5 14:11:39 Host2 ospfd[497]: startup
Sep 5 14:15:22 Host2 ospfd[8572]: startup
On Host1 after a reboot of Host2:
# ospfctl s nei
ID Pri State DeadTime Address Iface Uptime
10.0.100.1 1 EXSTA/OTHER 00:00:35 10.33.1.1 sis1 -
# grep ospf /var/log/daemon
Aug 8 14:11:22 Host1 ospfd[13083]: startup
Aug 8 14:20:58 Host1 ospfd[26289]: nbr_adj_timer: failed to form adjacency
with 10.0.100.1
Aug 8 14:21:58 Host1 ospfd[26289]: nbr_adj_timer: failed to form adjacency
with 10.0.100.1
l8rZ,
--
andrew - ICQ# 253198 - Jabber: [EMAIL PROTECTED]
BOFH excuse of the day: Internet shut down due to maintenance