Changed VIC Configuration, now Networking doesn't match new NICs

HardyBiscuit

Member
Oct 10, 2022
16
2
8
(*Note, I know there is a networking forum, but this is more about initial configuration so I posted it here)

Effectively, I swapped NICs since I defaulted a VIC card after initial configuration. Went from 6 vNICs (which I don't really need, I decided), and now I have just 2 1G and 2 10G interfaces, as shown:

Bash:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp8s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 08:96:ad:d9:f2:ba brd ff:ff:ff:ff:ff:ff
3: enp9s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 08:96:ad:d9:f2:bb brd ff:ff:ff:ff:ff:ff
4: enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether ac:f2:c5:ed:bf:d8 brd ff:ff:ff:ff:ff:ff
5: enp1s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether ac:f2:c5:ed:bf:d9 brd ff:ff:ff:ff:ff:ff
6: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ac:f2:c5:ed:bf:d8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.7/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::aef2:c5ff:feed:bfd8/64 scope link
       valid_lft forever preferred_lft forever

However, /etc/network/interfaces still shows the old config (and, thus, as does the web GUI). Since ProxMox has a slightly custom way to handle networking config, what would be the appropriate way to correct this?

Bash:
auto lo
iface lo inet loopback

iface enp1s0f0 inet manual

iface enp1s0f1 inet manual

iface enp8s0 inet manual

iface enp9s0 inet manual

iface enp12s0 inet manual

iface enp13s0 inet manual

iface enp14s0 inet manual

iface enp15s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.10.7/24
        gateway 192.168.10.5
        bridge-ports enp1s0f0
        bridge-stp off
        bridge-fd 0
#10-G Fiber Link
 
I would say, simply remove the not anymore existing interfaces from: /etc/network/interfaces:
Bash:
iface enp12s0 inet manual

iface enp13s0 inet manual

iface enp14s0 inet manual

iface enp15s0 inet manual

Afterwards run: ifreload -a or, maybe even better, reboot the PVE-host.
 
  • Like
Reactions: HardyBiscuit
I would say, simply remove the not anymore existing interfaces from: /etc/network/interfaces:

I knew this was an option. Perhaps even the most simple option, but wasn't sure what slight tweaks Proxmox may be doing in the background that would make this not a good idea. I'll make a backup first and then try this out. Can't hurt really. Thanks!
 
  • Like
Reactions: Neobin