On Wed, Sep 26, 2018 at 11:31:21PM +0200, Simen Stavdal wrote:
> Hello,
> 
> I am setting up an ospf lab, and have a quick question.
> The answer is probably right in front of me, but I just can't seem to find
> it.
> 
> I have a basic ospfd.conf including some active and some passive interfaces.
> Working just fine.
> 
> usg2# cat /etc/ospfd.conf | grep -v "^#"
> password="secret"
> redistribute connected
> area 0.0.0.0 {
>         interface lo2 { passive }
>         interface lo11 { passive }
>         interface lo10 { passive }
>         interface cnmac0 {
>                 auth-type simple
>                 auth-key $password
>         }
> }
> 
> 
> I have a neighbour that sees all the routes advertised from usg2.
> 
> Then, I would like to add a loopback interface on one of the routers, give
> it a /32 and advertise it (like i already do for some other loopback
> interfaces).
> 
> Next, how do I get ospf to advertise the new host address?
> 
> I have tried :
> ospfctl reload
> Obviously I have not yet changed ospfd.conf, so I add the new loopback
> interface as passive.
> ospfctl reload again, no luck.
> 
> usg2# ifconfig lo12 inet 192.168.5.111 netmask 255.255.255.255 up
>        usg2# ifconfig lo12
> lo12: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
>         index 19 priority 0 llprio 3
>         groups: lo
>         inet 192.168.5.111 netmask 0xffffffff
> 
> 
> usg2# ospfctl show fib
> flags: * = valid, O = OSPF, C = Connected, S = Static
> Flags  Prio Destination          Nexthop
> *C        4 10.10.100.0/24       link#1
> *C        0 127.0.0.0/8          link#0
> *S        8 127.0.0.0/8          127.0.0.1
> *         1 127.0.0.1/32         127.0.0.1
> *O       32 192.168.1.1/32       10.10.100.2
> *         1 192.168.5.9/32       192.168.5.9
> *         1 192.168.5.10/32      192.168.5.10
> *         1 192.168.5.99/32      192.168.5.99
> *         1 192.168.5.111/32     192.168.5.111
> *S        8 224.0.0.0/4          127.0.0.1
> 
> So, it is seen in the fib.
> 
> usg2# ospfctl fib couple
>      couple request sent.
> 
> 
> On one of the neighbours, I can see all the locally connected from
> usg2, but not lo12 (which is the new one I just added).
> 
> 
> The only way I have found so far, is to restart the ospfd daemon, but
> that seems a bit excessive - recalculations and all that. By the way,
> I am running ospfd with "-d" - do not daemonize. Any suggestions?
> 
> Running OpenBSD 6.3, tried on octeon and amd64, same behaviour.
> 
> I will be happy to supply any information requested.
> 

This smells like a bug - unsure if it is fixed in -current.
What does `ospfctl show int` show?

-- 
:wq Claudio

Reply via email to