Multiple ip adresses same bond

E

eg1l

Guest
Hi.

I can't seem to agree with myself on how to set up multiple ip adresses on a bonded interface.
My current config:

Code:
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 manual
        slaves eth0 eth1
        bond_miimon 100
        bond_mode balance-rr

auto vmbr0
iface vmbr0 inet static
        address  aaa.aaa.aaa.aaa
        netmask  bbb.bbb.bbb.bbb
        gateway  ccc.ccc.ccc.ccc
        bridge_ports bond0
        bridge_stp off
        bridge_fd 0

When adding a IP address to bond0, it does not work.
Adding an IP address to bond0:0 does not work.
Adding an IP address to vmbr0 works.

What is the correct method? The new IP address will be used in a iSCSI network, and the aaa.aaa.aaa.aaa IP is the management IP.
 
Say if the management IP adress was 192.168.1.80 and the iSCSI IP was 10.0.1.40.
If they where on different vlans, vlan 200 and vlan 305, how would the config look like?

Code:
# Management vlan
auto bond0.200
iface bond0.200 inet manual
    vlan-raw-device bond0

auto vmbr0
iface vmbr0 inet static
    address 192.168.1.80
    netmask 255.255.255.0
    gateway 192.168.1.1
    bridge_ports bond0.200
    bridge_stp off
    bridge_fd 0

# iSCSI vlan
auto bond0.305
iface bond0.305 inet manual
    vlan-raw-device bond0

auto vmbr1
iface vmbr1 inet static
    address 10.0.1.40
    netmask 255.255.255.0
    bridge_ports bond0.305
    bridge_stp off
    bridge_fd 0

Correct?
 
It looks right but I prefer this way:

Code:
auto vlan305
         vlan-raw-device bond0

auto vmbr305
iface vmbr305 inet static
         address 10.0.1.40
         netmask 255.255.255.0
         bridge_ports vlan305
         bridge_stp off
         bridge_fd 0
 
Hi again. I am having problems with communication between vm guests.
Communication to the outside would works perfectly.
I'm using vmbr0 with vlan tag 3105 for the vm guests. Here is my current config:

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


# Bond0 slave 1
iface eth0 inet manual


# Bond0 slave 2
iface eth1 inet manual

# Not used
iface eth2 inet manual

# Not used
iface eth3 inet manual


auto bond0
iface bond0 inet manual
        slaves eth0 eth1
        bond_miimon 100
        bond_mode balance-rr
        pre-up ip link set eth0 mtu 9000
        pre-up ip link set eth1 mtu 9000
        up ip link set bond0 mtu 9000


auto vmbr0
iface vmbr0 inet static
        address  aaa.aaa.aaa.aaa
        netmask  bbb.bbb.bbb.bbb
        gateway  ccc.ccc.ccc.ccc
        dns-nameservers 8.8.8.8
        bridge_ports bond0
        bridge_stp off
        bridge_fd 0
        bridge_maxage 0
        bridge_ageing 0
        bridge_maxwait 0


# iSCSI/NFS vlan 2002
auto vlan2002
iface vlan2002 inet manual
        vlan-raw-device bond0


auto vlbr2002
iface vlbr2002 inet static
        address ddd.ddd.ddd.ddd
        netmask eee.eee.eee.eee
        bridge_ports vlan2002
        bridge_stp off
        bridge_fd 0
        bridge_maxage 0
        bridge_ageing 0
        bridge_maxwait 0


# Public vlan 3105
auto bond0.3105
iface bond0.3105 inet manual
        vlan-raw-device bond0
 
Hmm, seem to work if I add this to vmbr0:
Code:
bridge_maxage 0
bridge_ageing 0
bridge_maxwait 0

Does that makes sense?
 

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!