[SOLVED] VLAN routing problems in CentOS 6

Posted by kul3ana on 2011/12/7 2:47:14
Just installed a new centos 6 box with multiple vlans and came across a routing issue. when I try to communicate to an interface that needs to be routed the machine never replies.

I have 2 vlans created on a trunked port. vlan158 and vlan159. vlan158 has 192.168.158.6/24 and vlan159 has 192.168.159.253/24.
The switch/router trunk port it is plugged into has both the vlan158 and vlan159 setup and is also the router for both subnets.

sitting on the 192.168.158.0 subnet I can ping 192.168.158.6 but I cannot ping 192.168.159.253.
sitting on the 192.168.159.0 subnet I can ping 192.168.159.253 but I cannot ping 192.168.158.6

This exact setup on the same physical machine works fine in centos 5, so something in centos 6 got introduced that is preventing this. Can anyone give me a clue as to where to look for the problem?

I've listed the ifcfg-eth0, ifcfg-vlan158, ifcfg-vlan159 files below. Let me know if you would like any other files to look at.

#ifcfg-eth0

DEVICE="eth0"
HWADDR="00:19:B9:2F:6E:71"
NM_CONTROLLED="no"
ONBOOT="yes"

------------------------------------------------------

#ifcfg-vlan158

VLAN="yes"
VLAN_NAME_TYPE="VLAN_PLUS_VID_NO_PAD"
DEVICE="vlan158"
PHYSDEV="eth0"
BOOTPROTO="static"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR="128.171.158.6"
NETMASK="255.255.255.0"

------------------------------------------------------

#ifcfg-vlan159

VLAN="yes"
VLAN_NAME_TYPE="VLAN_PLUS_VID_NO_PAD"
DEVICE="vlan159"
PHYSDEV="eth0"
BOOTPROTO="static"
ONBOOT="yes"
TYPE="Ethernet"
IPADDR="128.171.159.253"
NETMASK="255.255.255.0"

This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=58&topic_id=34611&post_id=148839