NIC bonding - multiple VLANs - two NICs
Good morning RHEL gurus:
Is it possible to configure NIC Bonding on two separate VLANs (VLAN Tagging) using only two NICs?
i.e. Either by using NIC aliases or setting multiple MASTER values in the ifcfg file (or some other method)?
I have a physical server with two NICs that is needed to be on two VLANs - currently the NIC bonding is restricted to one NIC - perhaps out of necessity.
Thoughts?
Thanks
Bill
Responses
I don't quite understand your setup. Can you describe the interface names, and which interfaces have which VLAN tag(s) trunked to them?
For example: "eth1 has untagged traffic and VLAN123, eth2 has untagged traffic and VLAN123, eth3 has VLAN456, eth4 has VLAN456".
If you're asking if a bond can have vlan-tagged interfaces as slaves (eg: bond123 with slaves eth0.123 and eth1.123), yes.
If you're asking if a bond can have two trunk-attached slaves (eg: eth0 and eth1) and then VLAN interfaces configured on top (eg: bond0 with tagged interface bond0.123), yes.
No, you cannot enslave one physical interface to two masters.
Assuming eth0 and eth1 both have VLAN444 and VLAN555 trunked to them, setup eth0 and eth1 as slaves of bond0, then create bond0.444 with the VLAN444 IP address and subnet, and bond0.555 with the VLAN555 IP address and subnet.
If your slaves don't have both VLANs trunked to them (i.e. eth0 only has VLAN444 and eth1 only has VLAN555), then there is no high availability to be had from these interfaces.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
