VMs on Management VLAN

audacity363

New Member
Dec 4, 2022
1
0
1
Hey there,

I am hosting my Proxmox instance on a Zotac All in One PC with two 1Gbit NICs. In the past I had one Nic dedicated for the Proxmox Management and VMs which are located in the same network, which runs on VLAN 40. It was just a basic Bridge where the VLAN 40 tagging was on the switch side.
The other Nic was defined a a trunk and also was just a VLAN aware bridge.

For the sake of SMB multi-channeling I wanted to combine both Nics to one bond. The basic things were easy and resulted in the following configuration:


Code:
auto lo
iface lo inet loopback

auto enp2s0
iface enp2s0 inet manual

auto enp3s0
iface enp3s0 inet manual

auto enxa8637d613f4e
iface enxa8637d613f4e inet manual

auto bond0
iface bond0 inet manual
        bond-slaves enp2s0 enp3s0
        bond-miimon 100
        bond-mode 802.3ad
        bond-xmit-hash-policy layer3+4
        bond-downdelay 200
        bond-updelay 200
        bond-lacp-rate 1

auto vmbr0
iface vmbr0 inet manual
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto vmbr1
iface vmbr1 inet static
        address 10.0.50.1/24
        gateway 10.0.50.254
        bridge-ports enxa8637d613f4e
        bridge-stp off
        bridge-fd 0

enp2s0 and enp3s0 are the two onboard Nics and enxa8637d613f4e is a temporary USB to RJ45 Network adapter so I don't lose management access.
Now I want to reach Proxmox over the old IP "10.0.40.1" which is located the the VLAN 40 Network, so I added the following:

Code:
auto vmbr0.40
iface vmbr0.40 inet static
    address 10.0.40.1/24
    gateway 10.0.40.254
(Of course I remove the gateway from vmbr1). In this configuration everything works as expected. Proxmox is reachable over 10.0.50.1 and 10.0.40.1 (as long I am in the 10.0.50.0/24 network), VMs with VLAN 40 are reachable.
As soon as I remove the link to enxa8637d613f4e, I loose access to 10.0.50.1 (Which is expected) and 10.0.40.1 (which is not expected).
"ip routes" shows the following:
Code:
default via 10.0.40.254 dev vmbr0.40 proto kernel onlink
10.0.40.0/24 dev vmbr0.40 proto kernel scope link src 10.0.40.1
10.0.50.0/24 dev vmbr1 proto kernel scope link src 10.0.50.1

So I have two questions:
Why do I loose access to 10.0.40.1 when I remove the link on enxa8637d613f4e?
What should I do, so Proxmox has it's IP on 10.0.40.1 and VLAN 40?
 
Why do I loose access to 10.0.40.1 when I remove the link on enxa8637d613f4e?
Connect a keyboard and display to your server and check the names of your NICs by typing ip addr into the console. Removing any hardware might cause the NICs to change their names, so they might not fit your network config anymore. In that case you can edit the old NIC names in /etc/network/interfaces and replace them with the new NIC names. After a reboot or systemctl restart interfaces it should then use the correct NIC names and the network will work again.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!