Hi,
Here is what I did, for future reference, for whom it may concern:
side A:
sudo ovs-vsctl del-br br-exsudo ovs-vsctl add-br br-exsudo ovs-vsctl add-port 
br-ex eth0sudo ip addr add 172.16.1.104/24 dev "br-ex"
sudo ifconfig "br-ex" up
sudo ovs-vsctl del-br br-vxlan-110
sudo ovs-vsctl add-br br-vxlan-110
sudo ovs-vsctl add-port br-vxlan-110 vxlan-110 -- set Interface vxlan-110 
type=vxlanoptions:remote_ip=172.16.1.105 options:key=110
sudo ip addr add 1.110.1.1/24 dev "br-vxlan-110"
sudo ifconfig "br-vxlan-110" up
sudo ovs-vsctl del-br br-vxlan-120
sudo ovs-vsctl add-br br-vxlan-120
sudo ovs-vsctl add-port br-vxlan-120 vxlan-120 -- set Interface vxlan-120 
type=vxlanoptions:remote_ip=172.16.1.105 options:key=120
sudo ip addr add 1.120.1.1/24 dev "br-vxlan-120"
sudo ifconfig "br-vxlan-120" up
And the same on side B, when the 172.16.1.0/24 IPs switch, and on vxlan subnets 
set a different IP (such as 1.110.1.2/24, 1.120.1.2/24).

And then, to test this, on side A:
sudo tcpdump -i eth0 -nvvvv udp port 4789

And on side B:nc 1.110.1.1 4444 -s 1.110.1.2
nc 1.120.1.1 4444 -s 1.120.1.2

Yinon 

    On Thursday, August 4, 2016 11:03 AM, Yinon <yinonby....@yahoo.com> wrote:
 

 Thanks!! I will have a look.
 

    On Thursday, August 4, 2016 10:59 AM, Scott Lowe <scott.l...@scottlowe.org> 
wrote:
 

 Please see my response below.

On Aug 3, 2016, at 8:52 PM, Yinon <yinonby....@yahoo.com> wrote:


Hello,
I have a question about ovs and vxlan tunnels.
I am interested in ovs as a vswitch in order to achieve the following 
topology:I have 2 nodes, each with 1 NIC interface, say eth0. I would like to 
have 2 networks (subnets) without using vlans, say 10.100.1.0/24 and 
10.200.1.0/24.
So something like a bridge, say br-ex, with eth0 added to it.
And 2 internal-type ports on that bridge, say port-100 and port-200. port-100 
is assigned an IP from subnet 10.100.1.0/24, and port-200 from 10.200.1.0/24.
Traffic that enters the bridge via eth0 on vxlan 100 will be decapsulated and 
forwarded to port-100, and traffic that enters on vxlan 200 will be 
decapsulated and forwarded to port-200. in the opposite direction vxlan will be 
encapsulated accordingly.

I can probably do it with openflow rules, but was wondering if there is a more 
elegant way, using vxlan-type ports?


Have a look at the OVS articles on my web site 
(<http://blog.scottlowe.org/tags/#OVS>). I have some posts there on doing 
exactly what you're describing using GRE, but the concepts should be the same 
for VXLAN. Sorry I can't give you a more specific link; standing in line to 
board an airplane at the moment. :-)
-- Scott


   

  
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to