OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Hardware and Performance »
  • Changing NIC card without messing up configuration
« previous next »
  • Print
Pages: [1]

Author Topic: Changing NIC card without messing up configuration  (Read 4686 times)

Tsuroerusu

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Changing NIC card without messing up configuration
« on: April 06, 2019, 12:31:50 am »
At the moment, I have a couple of redundant OPNsense firewalls using a 2-port Intel NIC card, which has been causing be problems since last August, and I am considering replacing it with a functionally identical Mellanox card. Thus I was thinking, how would OPNsense react to the NICs being changed, and would it mess up the configuration? Or would it simply say "Hmmm, the previous NICs are gone, where should I put the LAN and WAN interfaces?" and be on its merry way?
Logged

Dngrsone

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Changing NIC card without messing up configuration
« Reply #1 on: April 06, 2019, 12:55:31 am »
It would want you to configure the replacement NICs. The hard part will new knowing which one is which.

Sent from my SM-G935V using Tapatalk

Logged

Tsuroerusu

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Changing NIC card without messing up configuration
« Reply #2 on: April 06, 2019, 01:50:57 am »
Quote from: Dngrsone on April 06, 2019, 12:55:31 am
It would want you to configure the replacement NICs. The hard part will new knowing which one is which.

Sent from my SM-G935V using Tapatalk
At the moment I have ix0 as the WAN, and several VLANs on ix1, but "ix1" itself remains unconfigured. So I would need to alter both the VLANs and the interfaces, hmmm. Perhaps it might be easier to just export the configuration, and do search+replace for "ix0" with "mlxen0", and "ix1" with "mlxen1" etc. and then just import this edited configuration.
Logged

Dngrsone

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Changing NIC card without messing up configuration
« Reply #3 on: April 06, 2019, 03:35:52 pm »
 perhaps.

However the configuration setting that OPNSense will be looking for is literally which which MAC address is ix0 and which is ix1

Sent from my SM-G935V using Tapatalk

Logged

Tsuroerusu

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Changing NIC card without messing up configuration
« Reply #4 on: April 06, 2019, 04:16:21 pm »
Hmmmm, but where does it store the MAC addresses of the interfaces? Because when I look through the configuration file, I only see interface names (like "ix0"), but not any related MAC addresses?
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Hardware and Performance »
  • Changing NIC card without messing up configuration
 

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