Hello guys,

I have a question related to the "options:remote_ip=flow" feature.

My config looks like this for one host:

[root@localhost ~]# ovs-vsctl show
e927ea5a-41d8-4bf5-9145-5be06e18bc9f
    Bridge "br-eth0"
        Port "br-eth0"
            Interface "br-eth0"
                type: internal
        Port "eth0"       (external interface)
            Interface "eth0"
    Bridge br-vnet
        Port br-vnet
            Interface br-vnet
                type: internal
        Port "vxlan1"     (tunnel I use)
            Interface "vxlan1"
                type: vxlan
                options: {key="10", remote_ip=flow}
        Port "vnet0"      (port for the virtual machine)
            Interface "vnet0"
    ovs_version: "1.12.90"
[root@localhost ~]#

If I set the "options:remote_ip=A.A.A.1" (the IP for host 2) everything works just fine ARP requests from my VM, pings to the subnet, etc.

If I leave it like this, it doesn't work.

I followed some instructions that I could find by google-ing.

I know I need to set up flows to transmit and to receive, but I'm not sure how.
Until now, for transmitting I used:

ovs-ofctl add-flow br-vnet "in_port=1,actions=set_field:A.A.A.1->tun_dst,output:2"
(in_port = virtual network port, output = tunnel port)

I'm pretty sure this is right (feel free to correct me if I'm wrong). And here's the ovs-ofctl output:

[root@localhost ~]# ovs-ofctl show br-vnet
OFPT_FEATURES_REPLY (xid=0x2): dpid:000096522ce20048
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 1(vnet0): addr:fe:54:00:1d:28:97
     config:     0
     state:      0
     current:    10MB-FD COPPER
     speed: 10 Mbps now, 0 Mbps max
 2(vxlan1): addr:da:07:e2:9e:16:32
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 LOCAL(br-vnet): addr:96:52:2c:e2:00:48
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0

What other rules must I add in order for it to work?

And as an optional question: can I use "ovs-appctl ofproto/trace" to test the entire environment from eth0 to vnet0 and viceversa?

Thanks in advance,
Andrei
--
Andrei Andone

SOFTVISION | 57 Republicii Street, 400489 Cluj-Napoca, Romania
Email: andrei.and...@softvision.ro <mailto:andrei.and...@softvision.ro> | Web: www.softvision.ro <http://www.softvision.ro>

The content of this communication is classified as SOFTVISION Confidential and Proprietary Information.

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

Reply via email to