Are there command line tools to set network interface roles

NethServer Version: v7
Module: network

I’m currently building a new V7 NS to replace my existing V6. I’m building it in an ESXi VM, but it’s built on a real, bootable, hard drive which means when I’m ready to switch over, all I need do is switch the drive.

However, because V7 uses Predictable Network Interface Names instead of the old eth0, eth1, etc. I’m not sure how to ensure that the network interfaces are correctly configured as they will certainly have different names in a real server, as opposed to what I have in the VM.

I was quite comfortable updating udev to ensure that eth0, eth1, were always configured correctly in the past, but with PNIN I’m kinda in the dark.

Are there any command line tools that can help me re-configure my network, as I’ll probably only have that available on the first boot, not the UI.

** Update ** Or is it just a case of editing this (carefully): /var/lib/nethserver/db/networks

Cheers.

Yes. And run signal-event interface-update afterwards.

You can find more info here: http://docs.nethserver.org/projects/nethserver-devel/en/v7/nethserver-base.html#network

1 Like