Bonding, Bridging and Etherchannel...oh my.

Karandras

[H]ard|Gawd
Joined
Feb 16, 2001
Messages
1,873
Hey,

So I'm trying to get a Linux (Virtuozzo 7) with a storage back end and data on their own bonded connections to a c4506. To throw more fun on the fire I want to have the data channel with a bunch of vlans on it.

I'm having problems wrapping my head around why a bonded connection needs to be bridged. Now the configuration that I did the VZ7 installer built the configs for me and it was working. However the VZ support guys said it shouldn't be built the way it was then started changing things in my test environment.

Here is the layout of what I'm trying to achieve:

Cisco 4506 p1 (port channel1) ---- vzzo01-ifcfg-eno1 -----ifcfg-bond0 ---- vlan1 / vlan100 / vlan101 / vlan102...etc (data network)
Cisco 4506 p2 (port channel1) ---- vzzo01-ifcfg-eno2 ----/
Cisco 4506 p3 (port channel2) ---- vzzo01-ifcfg-enp10s0f0 -----ifcfg-bond1 ---- vlan200(storage network)
Cisco 4506 p4 (port channel2) ---- vzzo01-ifcfg-enp10s0f1 ----/

When then system created the cfg files it created them like this:

Code:
[root@vzzo01 network-scripts]# tail -n +1 ifcfg*
==> ifcfg-bond0_slave_1 <==
HWADDR=00:19:B
TYPE=Ethernet
NAME="bond0 slave 1"
UUID=34e40187-1807-47
DEVICE=eno1
ONBOOT=yes
MASTER=bond0
SLAVE=yes

==> ifcfg-bond0_slave_2 <==
HWADDR=00:19:B
TYPE=Ethernet
NAME="bond0 slave 2"
UUID=09585a4c-4021-44
DEVICE=eno2
ONBOOT=yes
MASTER=bond0
SLAVE=yes

==> ifcfg-bond1_slave_1 <==
HWADDR=00:15:1
TYPE=Ethernet
NAME="bond1 slave 1"
UUID=2db72050-8906-41
DEVICE=enp14s0f0
ONBOOT=yes
MASTER=bond1
SLAVE=yes

==> ifcfg-bond1_slave_2 <==
HWADDR=00:15:1
TYPE=Ethernet
NAME="bond1 slave 2"
UUID=d779dcf9-bd
DEVICE=enp14s0f1
ONBOOT=yes
MASTER=bond1
SLAVE=yes

==> ifcfg-Bond_connection_1 <==
DEVICE=bond0
TYPE=Bond
BONDING_MASTER=yes
UUID=be238f7f-1b
ONBOOT=yes
BONDING_OPTS="miimon=1 updelay=0 downdelay=0 mode=802.3ad"
BRIDGE="br0"

==> ifcfg-Bond_connection_2 <==
DEVICE=bond1
TYPE=Bond
BONDING_MASTER=yes
UUID=75c740b9-74
ONBOOT=yes
BONDING_OPTS="miimon=1 updelay=0 downdelay=0 mode=802.3ad"
BRIDGE="br1"

==> ifcfg-br0 <==
DEVICE="br0"
BOOTPROTO=none
DNS1=172.16.1.1
DNS2=172.16.1.2
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="Bond connection 1"
ONBOOT=yes
IPADDR=172.16.10.1
PREFIX=16
GATEWAY=172.16.0.1
TYPE="Bridge"
DELAY="2"
STP="off"
UUID="c24e0016-04"

==> ifcfg-br0.101 <==
DEVICE=br0.101
NAME=br0.101
BOOTPROTO=none
ONPARENT=yes
IPADDR=1.1.1.1
NETMASK=255.255.255.224
VLAN=yes
TYPE=Vlan
PHYSDEV=br0
VLAN_ID=101
REORDER_HDR=0
UUID=e2622dee-dc
ONBOOT=yes
#BRIDGE=br-br0.101

==> ifcfg-br1 <==
DEVICE="br1"
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="Bond connection 2"
ONBOOT=yes
IPADDR=192.168.10.2
PREFIX=24
GATEWAY=192.168.10.1
TYPE="Bridge"
DELAY="2"
STP="off"
UUID="5062dd46-9f"

==> ifcfg-eno1 <==
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno1
UUID=9adf3ba0-0d
DEVICE=eno1
ONBOOT=no

==> ifcfg-eno2 <==
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno2
UUID=0b3c3d7e-92
DEVICE=eno2
ONBOOT=no

==> ifcfg-enp14s0f0 <==
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp14s0f0
UUID=38236dd5-b6
DEVICE=enp14s0f0
ONBOOT=no

==> ifcfg-enp14s0f1 <==
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp14s0f1
UUID=d6b5e05a-d4
DEVICE=enp14s0f1
ONBOOT=no

==> ifcfg-lo <==
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

The VZ support guys said the system created that incorrectly and wanted to put the VLAN on the bond0 connection. So that raised my eye brows to wonder
-What is the difference between a bond and a bridge
-Why are they required together
-Is support correct about the bond/bridge/vlan setup being wrong?

I hope this makes sense on what I'm trying to understand and what I need to do to get this configured how it should be.

Thanks [H]!
 
Back
Top