[ovs-discuss] problem about communication between openvswitch vlan and linux vlan

jekie jekie8 at 163.com
Wed May 8 07:29:14 UTC 2013


 Dear All:
       I have installed openvswitch without openflow as a 3-layer switch,now i want to configure a vlan port as a subnet's gateway,so i connected openvswitch and a centos pc with a hub:

openvswitch (eth1)----------------hub----------------------(eth1)pc

all the nic cards are TP-LINK TG-3269C with 802.1q protocol supported and linux kernel 8021q module is also enabled.
openvswitch  vlan configuration as below:
ovs-vsctl add-br br0
ovs-vsctl add-port br0 eth1
ovs-vsctl add-port br0 eth1:50 tag=50
ifconfig eth1:50 192.168.50.254 netmask 255.255.255.0 up
service iptables stop

centos pc   configuration as below:
ifcfg-eth1:

DEVICE="eth1"
BOOTPROTO="none"
ONBOOT="yes"
...

ifcfg-eth1.50

DEVICE="eth1.50"
BOOTPROTO="static"
ONBOOT="yes"
VLAN="yes"
IPADDR="192.168.50.1"
NETMASK="255.255.255.0"
GATEWAY="192.168.50.254"

service network restart
service iptables stop

My centos network restart successfully ,but openvswitch and centos pc cannot communicate with each other.Any help will be appreciated!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130508/ff5b0d03/attachment.html>


More information about the discuss mailing list