OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Duplicated OSPF Router ID
« previous next »
  • Print
Pages: [1]

Author Topic: Duplicated OSPF Router ID  (Read 3083 times)

fabio

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Duplicated OSPF Router ID
« 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
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Duplicated OSPF Router ID
« Reply #1 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.
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Duplicated OSPF Router ID
« Reply #2 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.
Logged

fabio

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: Duplicated OSPF Router ID
« Reply #3 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
!
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Duplicated OSPF Router ID
« Reply #4 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
Logged

fabio

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: Duplicated OSPF Router ID
« Reply #5 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Duplicated OSPF Router ID
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2