Bridge to Bond?

longhair

Member
Jun 27, 2014
113
0
16
I need to have a Windows VM connect to the nfs server. After adding a 2nd nic and giving it a static ip address using the 192.168.2.x subnet, I realized it wouldn't work because the bridge is for the 192.168.1.x subnet.

How would I create a new bridge to the existing bond without losing access to the nfs server (all running VMs are on there).

bond0 is proxmox <-> nfs server.

Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth3 inet manual

auto bond0
iface bond0 inet static
        address  192.168.2.100
        netmask  255.255.255.0
        slaves eth1 eth2
        bond_miimon 100
        bond_mode 802.3ad

auto vmbr0
iface vmbr0 inet static
        address  192.168.1.100
        netmask  255.255.255.0
        gateway  192.168.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
 
You could create a bridge using a different vlan like:

auto vmbr10
iface vmbr10 inet manual
bridge_ports bond0.10
bridge_stp off
bridge_fd 0

This will create bridge using vlan 10 over the original bridge0. However, it requires a vlan enabled switch. Connection to this bridge most obviously use a different net than 192.168.2.0/24

BTW. you should not configure ip and network on the bond.
 
Last edited:
Since I am unable to keep an external USB drive from sleeping, I need to make a directory on the nfs for a Windows VM to access.

In the past I've added a hard disk from the web console and mapped that to the nfs but the data didn't survive a removal & creation of a new VM.
 
You could create a bridge using a different vlan like:

auto vmbr10
iface vmbr10 inet manual
bridge_ports bond0.10
bridge_stp off
bridge_fd 0

This will create bridge using vlan 10 over the original bridge0. However, it requires a vlan enabled switch. Connection to this bridge most obviously use a different net than 192.168.2.0/24

BTW. you should not configure ip and network on the bond.

I set up the bond following the Bond Configuration with Proxmox VE video

https://www.youtube.com/watch?v=-8SwpgaxFuk
 

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!