Hello,

I just set up OSPF to talk within two OpenBSD-Boxes (Pinky and Brain, do you remember? :-). On both machines I configured a carp interface to provide a default gateway for my local VLANs. The configuration was very easy and intuitive. OSPF is redistributing routes only for carp-interfaces which are in master-state, this is exact the way I was looking for.

But if I take down the actual carp-master interface (195.140.212.1/24), the (until now) backup interface take over the master-state, ospfd is redistributing the changed routing information, I can see it in the output of "ospfctl sh rib". But if I take a look at "opsfctl sh fib" there is still the local link and not the new route via the ospf-neighbor, as I expected.

"fib-update" should be on by default, but I tried to write it explicitly into the configuration file, but it's not getting better.

This is my configuration on both sides (only the router-id is adapted):

# global configuration

router-id 194.9.86.1
fib-update yes

# route redistribution
redistribute connected
redistribute static

# areas
area 0.0.0.0 {
        interface lo1
        interface em1 {
                metric          10
                auth-type       crypt
                auth-md-keyid   1
                auth-md         1        "foobar"
        }
}

The correct output of the routing information:
# ospfctl sh rib

Destination Nexthop Path Type Type Cost Uptime 194.9.86.2 10.0.0.2 Intra-Area Router 10 00:22:17 10.0.0.0/30 10.0.0.1 Intra-Area Network 10 00:22:24 194.9.86.2/32 10.0.0.2 Intra-Area Network 10 00:22:17 195.140.212.0/24 10.0.0.2 Type 1 ext Network 110 00:21:45 195.140.212.3/32 10.0.0.2 Type 1 ext Network 110 00:22:17 195.140.213.3/32 10.0.0.2 Type 1 ext Network 110 00:22:17

And the output of the forwarding database with the unexpected nexthop of the local interface instead of the opsf-neighbor:

# ospfctl sh fib
flags: * = valid, O = OSPF, C = Connected, S = Static
Flags  Destination          Nexthop
*C     10.0.0.0/30          link#2
*S     127.0.0.0/8          127.0.0.1
*C     127.0.0.1/8          link#0
*      127.0.0.1/32         127.0.0.1
*C     192.168.13.0/24      link#1
*      194.9.86.1/32        194.9.86.1
*O     194.9.86.2/32        10.0.0.2
 C     195.140.212.0/24     link#22
*C     195.140.212.2/32     link#16
*O     195.140.212.3/32     10.0.0.2
*C     195.140.213.0/24     link#19
*C     195.140.213.2/32     link#17
*O     195.140.213.3/32     10.0.0.2
*C     195.225.134.4/30     link#3
*S     224.0.0.0/4          127.0.0.1


Any hints?

Thanks,

Falk

Reply via email to