[ovs-dev] [urgent] is there anyway to enable multi-vlan for one vm upon ovs ?
Ben Pfaff
blp at ovn.org
Mon Feb 6 04:42:51 UTC 2017
I don't think it normally makes sense to have IP addresses on the same
subnet on different VLANs. If you do that, then how would the kernel
know, when it sends a packet to that subnet, which VLAN to use?
On Mon, Feb 06, 2017 at 10:17:31AM +0800, xiucai wrote:
> thanks a lot.
> i am very sorry about my delay, because i have take the Chinese spring festival holidays :)
>
>
> in SVM, i had configured vlan as below:
> modprobe 8021q
> vconfig add eth0 2
> vconfig add eth0 3
> # add ifcfg-eth0.2/ifcfg-eth0.3 to /etc/sysconfig/network-scripts/ and modify them.
> systemctl restart network
> # eth0/192.168.111.1 eth0.2 at eth0/192.168.111.102 eth0.3 at eth0/192.168.111.103 will appear.
>
>
> but, it still does not work :(
>
>
> so, could you give me details of "how to enable multi-vlan for one vm upon openvswitch" :)
>
>
> regards!
>
>
> ------------------ Original ------------------
> From: "Ben Pfaff";<blp at ovn.org>;
> Date: Tue, Jan 24, 2017 00:21 AM
> To: "xiucai"<hualingson at foxmail.com>;
> Cc: "ovs-dev"<ovs-dev at openvswitch.org>;
> Subject: Re: [ovs-dev] [urgent] is there anyway to enable multi-vlan for onvm upon ovs ?
>
>
>
> On Sun, Jan 22, 2017 at 05:18:48PM +0800, xiucai wrote:
> > hi,
> > everyone :)
> >
> >
> > in my case, there is one vm for storage sharing, we name it SVM, and several VMs as testing client.
> > for historic reasons, i can not modify the network which uses vlan upon ovs.
> >
> >
> > the SVM is corresponding to vnet0, make it as trunk for tag-2 and tag-3;
> > the VM1 is corresponding to vnet2/tag-2 and the VM2 is corresponding to vnet4/tag-3.
> > i wanna all VMx can connect to SVM, but VMx can not communicate with each other!
> >
> >
> > ==============configurations==============
> > SVM's eth0: 192.168.1.1 static 52:54:01:CB:35:C4
> > VM1's eth0: 192.168.1.2 static 52:54:02:CB:35:C4
> > VM2's eth0: 192.168.1.3 static 52:54:03:CB:35:C4
> >
> >
> > Bridge "br1"
> > Port "vnet4"
> > tag: 3
> > Interface "vnet4"
> > Port "vnet0"
> > trunks: [2, 3]
> > Interface "vnet0"
> > Port "vnet2"
> > tag: 2
> > Interface "vnet2"
> > Port "br1"
> > Interface "br1"
> > type: internal
> > ovs_version: "2.5.0"
> > =====================================
> >
> >
> > but it does not work :(
> > they can not ping through each other!
> >
> >
> > i use tcpdump to monitor eth0 on SVM, and ping SVM from VM1, it said "ARP Request who-has SVM-IP to tell VM1-IP".
> > and i use arp to add entry for each other, then it only said "VM1-IP > SVM-IP: ICMP echo request, id xxxx, seq x, length xx", but no "reply".
> >
> >
> > i have got no idea about this case, i do not know i have mistaken the concept of trunk on ovs or my config is wrong :(
>
> Does your VM connected to vnet0 understand VLAN trunks? Do you have
> VLAN interfaces configured there?
More information about the dev
mailing list