OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: fabio on September 28, 2017, 08:32:02 pm

Title: Duplicated OSPF Router ID
Post by: fabio on September 28, 2017, 08:32:02 pm
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
Title: Re: Duplicated OSPF Router ID
Post by: fabian on September 29, 2017, 07:54:42 am
the router id is usually automatically generated and is afaik the lowest IP address of the router.
Title: Re: Duplicated OSPF Router ID
Post by: fabian on September 29, 2017, 07:55:50 am
and no, I have not added that to the form, model and template so it currently does not work.
Title: Re: Duplicated OSPF Router ID
Post by: fabio on September 29, 2017, 09:21:25 am
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
!
Title: Re: Duplicated OSPF Router ID
Post by: fabian on September 29, 2017, 02:03:12 pm
there's a patch now: https://github.com/opnsense/plugins/pull/299

Code: [Select]
opnsense-patch -c plugins 31ebef348199dc2dcfb3b3a35f7a88c26d8e7ec6
Title: Re: Duplicated OSPF Router ID
Post by: fabio on September 29, 2017, 03:51:56 pm
Thanks Fabian, it's perfect

Tested on my box it works like a charm

Thanks again for your works