Bond + Dot1q
Posted: 2011/12/05 11:20:18
Gents,
Need some assistance getting a LACP bond to work with Dot1q trunking.
I have a Centos 6 box hooked into a Juniper switch. The switch is configured and is working, the LACP interface is up and all looks good. The switch is set to tag the correct VLANs and all that
The issue is that from the Centos box i can't ping anything on a different subnet.
Its configured like this:
Eth0 + Eth1 = bond0
bond0.21 192.168.21.63
bond0.51 192.168.51.63
bond0.111 192.168.111.63
So from something on the 192.168.21.0/24 network i can ping 192.168.21.63. Same goes for all the other interfaces. But when i try to reach say 192.168.111.63 from another subnet it fails. I see my pings hitting the centos box but no ICMP replies are sent.
here is a bit of the config from the bonding:
cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
ISALIAS=no
TYPE=Ethernet
-------
cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
TYPE=BOND
USERCTL=yes
BONDING_OPTS="mode=4"
-------
cat ifcfg-bond0.111
DEVICE=bond0.111
IPADDR=192.168.111.63
NETMASK=255.255.255.0
GATEWAY=192.168.111.1
ONBOOT=yes
BOOTPROTO=none
USERCTL=yes
VLAN=yes
TYPE=BOND
-------
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.21.0 * 255.255.255.0 U 0 0 0 bond0.21
192.168.51.0 * 255.255.255.0 U 0 0 0 bond0.51
192.168.111.0 * 255.255.255.0 U 0 0 0 bond0.111
link-local * 255.255.0.0 U 1004 0 0 bond0
link-local * 255.255.0.0 U 1014 0 0 bond0.111
link-local * 255.255.0.0 U 1015 0 0 bond0.21
link-local * 255.255.0.0 U 1016 0 0 bond0.51
default 192.168.111.1 0.0.0.0 UG 0 0 0 bond0.111
------
I'm thinking some type of routing issue perhaps? All the subnets are reachable from each other. other hosts in the subnets can reach each other without an issue
Need some assistance getting a LACP bond to work with Dot1q trunking.
I have a Centos 6 box hooked into a Juniper switch. The switch is configured and is working, the LACP interface is up and all looks good. The switch is set to tag the correct VLANs and all that
The issue is that from the Centos box i can't ping anything on a different subnet.
Its configured like this:
Eth0 + Eth1 = bond0
bond0.21 192.168.21.63
bond0.51 192.168.51.63
bond0.111 192.168.111.63
So from something on the 192.168.21.0/24 network i can ping 192.168.21.63. Same goes for all the other interfaces. But when i try to reach say 192.168.111.63 from another subnet it fails. I see my pings hitting the centos box but no ICMP replies are sent.
here is a bit of the config from the bonding:
cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
ISALIAS=no
TYPE=Ethernet
-------
cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
TYPE=BOND
USERCTL=yes
BONDING_OPTS="mode=4"
-------
cat ifcfg-bond0.111
DEVICE=bond0.111
IPADDR=192.168.111.63
NETMASK=255.255.255.0
GATEWAY=192.168.111.1
ONBOOT=yes
BOOTPROTO=none
USERCTL=yes
VLAN=yes
TYPE=BOND
-------
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.21.0 * 255.255.255.0 U 0 0 0 bond0.21
192.168.51.0 * 255.255.255.0 U 0 0 0 bond0.51
192.168.111.0 * 255.255.255.0 U 0 0 0 bond0.111
link-local * 255.255.0.0 U 1004 0 0 bond0
link-local * 255.255.0.0 U 1014 0 0 bond0.111
link-local * 255.255.0.0 U 1015 0 0 bond0.21
link-local * 255.255.0.0 U 1016 0 0 bond0.51
default 192.168.111.1 0.0.0.0 UG 0 0 0 bond0.111
------
I'm thinking some type of routing issue perhaps? All the subnets are reachable from each other. other hosts in the subnets can reach each other without an issue