Not use dedicated Ethernet port for PVE host access

rsaanon

New Member
Oct 22, 2019
10
0
1
59
I have 3 Ethernet ports on the PVE host I'm running: Two of the ports are used for bonding & one to allow connectivity to the pve host itself. I would like to use this 3rd port for other things (and not dedicated this 3rd port for pve host access)
Here's a snip of Interfaces:

Code:
iface bond0 inet manual
        bond-slaves enp1s0 enp2s0
        bond-miimon 100
        bond-mode balance-rr

iface vmbr1 inet manual  # //This bridge allows access to VLANs in the VM.
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

iface vmbr0 inet static
        address  192.168.10.2
        netmask  24
        gateway  192.168.10.1
        bridge-ports enp3s0 # //Don't want to use dedicated port enp3s0 for accessing host
        bridge-stp off
        bridge-fd 0

If I make the following changes, I am not longer able to access the pve host:
# DOESN'T WORK:
Code:
iface vmbr0 inet static
        address  192.168.10.2
        netmask  24
        gateway  192.168.10.1
        bridge-ports bond0.10 
        bridge-stp off
        bridge-fd 0

Any ideas why changing the bridge ports to bond0.10 doesn't work. By the way, passing vmbr1 to a VM allows for VLAN connectivity..

Thanks!
 
Last edited by a moderator:
Hi,

If you don't use the vmbr0 for VM there is no need for this bridge.
Proxmox VE GUI and SSH listen on all assigned IP addresses.
The only important thing is that the referenced IP in /etc/hosts is available on the host.

If you like to use VLAN 10 for management the setting would look like this.
But in this case, VLAN 10 is no more available on the vmbr1
Code:
iface bond0 inet manual
        bond-slaves enp1s0 enp2s0
        bond-miimon 100
        bond-mode balance-rr

iface vmbr1 inet manual  # //This bridge allows access to VLANs in the VM.
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto bond0.10 
iface bond0.10 inet static
        address  192.168.10.2
        netmask  24
        gateway  192.168.10.1
 
Thanks @wolfgang for the response.

I made the suggested changes; however, after the changes I am not able to access the pve host. Reverting back, I am again able to access the host.

I also added vlan-raw-device bond0 to see if that would make a difference; it didin't.

Here's the change I made as per your suggestion:

auto bond0.10
iface bond0.10 inet static
address 192.168.10.2
netmask 24
gateway 192.168.10.1

vlan-raw-device bond0
 
Last edited:
What Brand and Typ are the NIC enp1s0, enp2s0?
 

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!