Duplicated OSPF Router ID

Started by fabio, September 28, 2017, 08:32:02 PM

Previous topic - Next topic
I've a couple of pfsense in HA configured also as OSPF router

Recently I've added an additional CARP address and both the device sterted to use this address as ospf router-ID so the "dynamic routing" stopped to works

... after change the ID via CLI the routing start to work again

root@OPN2:~ # vtysh

Hello, this is Quagga (version 1.2.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

OPN2# configure terminal
OPN2(config)# router ospf
OPN2(config-router)# ospf router-id 192.168.0.3

OPN2(config)# write

Unfortunately after a reboot the ID retrun the old one

Is there way to permanently statically set the router-id ?


PS:
I'm not sure which was the IDs before the "new carp address" but the ospf worked fine

the router id is usually automatically generated and is afaik the lowest IP address of the router.

and no, I have not added that to the form, model and template so it currently does not work.

so should be possible add a new <ID> field in the form and insert

"ospf router-id <ID>" in  /usr/local/etc/quagga/ospfd.conf

to obtain

router ospf
ospf router-id 192.168.0.3
passive-interface vtnet0
network 1.0.0.0/24  area 0.0.0.0
network 2.0.0.0/24 area 0.0.0.0
network 3.0.0.0/24 area 0.0.0.0
!

there's a patch now: https://github.com/opnsense/plugins/pull/299


opnsense-patch -c plugins 31ebef348199dc2dcfb3b3a35f7a88c26d8e7ec6

Thanks Fabian, it's perfect

Tested on my box it works like a charm

Thanks again for your works