If I have two interfaces (eth0 and eth1) on separate VLANs (100 and 200), can they be bonded together into bond0 in such a way that traffic for each VLAN can be routed correctly?
Let’s say the subnet 10.1.1.0/24 is on VLAN 100 and subnet 10.1.2.0/24 is on VLAN 200 and the gateways are 10.1.1.1 and 10.1.2.1, respectively.
- Server 1: Has
eth0(VLAN100) andeth1(VLAN200).eth0has IP10.1.1.2, andeth1has IP 10.1.2.2. - Server 2: Has
eth0(VLAN100) andeth1(VLAN200).eth0has IP10.1.1.3, andeth1has no IP.
Can eth0 and eth1 on server 1 be bonded into bond0 such that traffic for the 10.1.1.0/24 subnet will flow through eth0, and for 10.1.2.0/24 will flow through eth1?
Can eth0 and eth1 in server 2 be bonded into bond0 such that it can reach IPs in the 10.1.2.0/24 subnet, even though it doesn't have an IP in that subnet/VLAN?