Back to TIL
productivity

Moving Proxmox to a second NIC

I play around with Proxmox on my Intel NUC from time to time. The hardware has a bug with the LAN port, so I bought a USB Ethernet adapter as a workaround.

So far so good, but how do you get Proxmox to switch over to the new adapter?

  1. Look for the name of your new interface: ip link show.
  2. Look for anything that hasn’t been there before. In my case, the adapter got named ‘enx6c1ff72307f6’.
  3. Open up the network interfaces config:
    vi /etc/network/interfaces
  4. Make sure you have a config line for your new interface in there:
    iface enx6c1ff72307f6 inet manual
    I already found that in there, so I assume Proxmox added that automatically.
  5. Look for your vmbr0 config. It’s along the lines of iface vmbr0 inet and contains an indented command bridge-ports ... that will show another interface:
    # I have a static IP assigned. This might differ from your setup if you are
    # using DHCP
    iface vmbr0 inet static
         address 192.168.1.242/24
         gateway 192.168.1.1
         # Here's the old interface:
         bridge-ports enp89s0
         bridge-stp off
         bridge-fd 0
  6. Replace the existing interface enp89s0 with your new one: bridge-ports enx6c1ff72307f6
  7. Save, exit and reboot the server

That worked for me nicely.