Bond + Dot1q

General support questions
Post Reply
rakem
Posts: 2
Joined: 2011/12/05 11:18:46

Bond + Dot1q

Post by rakem » 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

yenot
Posts: 3
Joined: 2011/11/23 07:32:09

Bond + Dot1q

Post by yenot » 2011/12/05 13:45:51

check whether 'sysctl net.ipv4.ip_forward' is 1

rakem
Posts: 2
Joined: 2011/12/05 11:18:46

Re: Bond + Dot1q

Post by rakem » 2011/12/05 22:04:41

It was not enabled and i have now enabled it. Still not working.
I also enabled it on all the bonds, so 'net.ipv4.conf.bond0/111.forwarding = 1' is like that on all the bonds.

It looks like the interfaces can't reply to anything outside of their local subnet..... do they need a default gateway somewhere?

yenot
Posts: 3
Joined: 2011/11/23 07:32:09

Re: Bond + Dot1q

Post by yenot » 2011/12/06 07:34:22

No, they are 'directly connected' so there's no need in a default gw.
I'd check the firewall forwarding chain policy.
And btw, do hosts in all these networks use 192.168.xx.63 as a default gateway?

Post Reply