So, I have a new, physical RHEL 6.4 box which is boot-from-SAN, using Fiber Channel over Ethernet (FCoE) host buss adapters (HBAs). I need to get 2 of the NICs bonded together for primary network functions. Later, I need to bond together 2 other NICs for a backup network. First things first, though.
The only way I could get a single NIC (unbonded) working, was to create a VLAN-tagged configuration. So, I had eth0 with no configuration details really, and then eth0.123 (where 123 is the VLAN tag) which did have details like IP address, netmask, etc. That configuration worked fine. So, I figured the same sort of configuration should be leveraged with the bonded interface. My question is, do I create a VLAN-tagged bond configuration with regular ethX configurations, or VLAN-tagged ethX configurations bonded to a non-VLAN-tagged bond configuration.
For example the first option would look something like this:
eth0
DEVICE=eth0 HWADDR=some MAC address TYPE=Ethernet UUID=some device ID ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none MASTER=bond0 SLAVE=yes USERCTL=no
eth1
DEVICE=eth1 HWADDR=some MAC address TYPE=Ethernet UUID=some device ID ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none MASTER=bond0 SLAVE=yes USERCTL=no
bond0
DEVICE=bond0 ONBOOT=yes BOOTPROTO=none TYPE=Ethernet USERCTL=no NM_CONTROLLED=no BONDING_OPTS="mode4 miimon=100"
bond0.123
DEVICE=bond0.123 IPADDR=10.x.y.50 NETMASK=255.255.254.0 GATEWAY=10.x.y.1 ONBOOT=yes BOOTPROTO=none USERCTL=no NM_CONTROLLED=no TYPE=Ethernet VLAN=yes
The second options would look something like this:
eth0
DEVICE=eth0 HWADDR=some MAC address TYPE=Ethernet UUID=some device ID ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none USERCTL=no
eth0.123
DEVICE=eth0.123 HWADDR=some MAC address TYPE=Ethernet UUID=some device ID ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none MASTER=bond0 SLAVE=yes USERCTL=no VLAN=yes
eth1
DEVICE=eth1 HWADDR=some MAC address TYPE=Ethernet UUID=some device ID ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none USERCTL=no
eth1.123
DEVICE=eth1.123 HWADDR=some MAC address TYPE=Ethernet UUID=some device ID ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none MASTER=bond0 SLAVE=yes USERCTL=no VLAN=yes
bond0
DEVICE=bond0 ONBOOT=yes BOOTPROTO=none TYPE=Ethernet USERCTL=no NM_CONTROLLED=no BONDING_OPTS="mode4 miimon=100"
[link][6 comments]