[ovs-discuss] OVS with VLANs

Sundar Nadathur snadathu at altera.com
Fri Aug 28 01:09:46 UTC 2015


Without the VLANs, the plain OVS is able to communicate fine with the other hosts (with the same physical NIC as the VLAN case). Please let me know why the VLAN case is not working.

Thanks a lot!

Cheers,
Sundar

From: Sundar Nadathur
Sent: Wednesday, August 26, 2015 6:33 PM
To: 'discuss at openvswitch.org'
Subject: OVS with VLANs

Hi,
   On two hosts running Centos 7.1, I have an eth interface each with VLAN 3 configured on top. These enp1s0.3 interfaces can ping each other.

On a third host, also running Centos 7.1, I have configured an OVS br-int, with enp1s0 as a port. To this, I added an internal port with tag 10:
# ovs-vsctl add-port br-int vlan3 tag=3 -- set interface vlan3 type=internal
# ifconfig vlan3 192.168.3.11 netmask ... up
Now, ifconfig and route commands show valid output, but we cannot ping the other hosts.

If I add enp1s0.3 as the physical interface instead of enp1s0, it makes no difference. If I configure the IP directly on br-int, without a VLAN tag and use enp1s0.3 as physical interface, that doesn't work either. However, if I configure the IP on enp1s0.3, I can then ping the other hosts, as expected.

IOW, no configuration involving OVS is working with VLANs. But the direct physical interface is able to reach out on VLAN 3. The external switch is unmanaged.

In all these cases, the relevant bridge and physical interfaces are "UP, RUNNING" in ifconfig. The 'systemctl status openvswitch' shows it is running.  Both ovsdb-server and ovs-vswitchd are running as root.

What do I need to do to fix this?

Cheers,
Sundar


________________________________

Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150828/60780175/attachment-0002.html>


More information about the discuss mailing list