openflow – How to safely connect network interface with OVS bridge?

[ad_1]

I’ve build an environment, using 3 VMs in VirtualBox that are connected via internal network adapters and I’m trying to establish connection between h1 and h2 by using VXLAN. s1, s1-1, s2, s2-1 are OVS bridges that were created with Mininet Network topology.

I know that usually there is just a router between VM1 and VM2, but this is the topology I need.

s1-1 communicates with enp0s3 through a VXLAN tunnel (VNI=100). After attempt to ping h2 from h1, ARP packets starting to arrive at enp0s3 interface on VM3, caring VNI with it ARP packet on enp0s3

But then on s1-eth1 and s2-eth1 interfaces VXLAN header disappears entirely, so packets cannot reach VM2ARP packets on s1-eth1

Flow tables for s1 and s2 (port 10 identifies a VXLAN tunnel to network interfaces on VM1-192.168.1.11 and VM2-192.168.2.21):

s1:

table=0,actions=resubmit(,1)

table=1,tun_id=100,dl_dst=00:00:00:00:00:01,actions=output:10
table=1,tun_id=100,dl_dst=00:00:00:00:00:02,actions=output:1
table=1,tun_id=100,arp,nw_dst=10.0.0.1,actions=output:10
table=1,tun_id=100,arp,nw_dst=10.0.0.2,actions=output:1
table=1,priority=100,actions=drop

s2:

table=0,actions=resubmit(,1)

table=1,tun_id=100,dl_dst=00:00:00:00:00:01,actions=output:1
table=1,tun_id=100,dl_dst=00:00:00:00:00:02,actions=output:10
table=1,tun_id=100,arp,nw_dst=10.0.0.1,actions=output:1
table=1,tun_id=100,arp,nw_dst=10.0.0.2,actions=output:10
table=1,priority=100,actions=drop

I assume that it’s happening because enp0s3 does not have a direct connection with s1 so I want to know if there is a way to route all traffic from enp0s3 directly to s1?

[ad_2]

Source link

Leave a Reply

Your email address will not be published.