Multiple vLAN's on one NIC

Issues related to configuring your network
Post Reply
gnomeAware
Posts: 6
Joined: 2014/06/17 17:18:41

Multiple vLAN's on one NIC

Post by gnomeAware » 2014/10/31 17:23:42

I have three VM's runing CentOS. host1 has a vlan of 101 (eth0.101), host2 has a vlan of 102 (eth0.102) and hostgw has vlans 101 and 102 defined (eth1.101 and eth1.102). All VM's are assigned to the same vSwitch ("All 4095").

If I bring up all interfaces on hostgw (including both vlan interfaces) I can ping the IP address assigned to eth1.101 on hostgw from host1. But, I can't ping eth1.102 on hostgw from host2. However, if I go to hostgw and run 'ifdown eth1.101' I can then ping eth1.102 on hostgw from host2.

In a nutshell, it seems that I can't have multiple vlans active on one network interface.

Something that I played around with but couldn't figure how to implement was creating a virtual interface and assigning a vlan to that. Something like eth1:101.101. Any thoughts on that option?

Thanks in advance.

Steve

Post Reply