Hi, I'm using Openvswitch-2.7.0 on RHEL7.3 with 4.9.30. I'm using 3 machines in this config : ------------ -------- | OVS_Switch | -------- | HOST A | ------->| eth2 eth3 |<------- | HOST B | -------- ------------ --------
I'm configuring VXLAN tunnel on Host A and Host B as : ifconfig enp7s0f4d1 10.1.1.x/24 promisc modprobe vxlan ip li add vxlan0 type vxlan id 42 group 239.1.1.1 dev enp7s0f4d1 dstport 4789 ifconfig vxlan0 192.168.1.x/24 up Now I configure the host acting as OVS_switch : ovs-appctl exit pkill -9 ovs rm -rf /usr/local/etc/ovs-vswitchd.conf rm -rf /usr/local/var/run/openvswitch/db.sock rm -rf /usr/local/etc/openvswitch/conf.db touch /usr/local/etc/ovs-vswitchd.conf ovsdb-tool create /usr/local/etc/openvswitch/conf.db /root/ openvswitch-2.7.0/vswitchd/vswitch.ovsschema ovsdb-server /usr/local/etc/openvswitch/conf.db --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach --log-file ovs-vsctl --no-wait init export DB_SOCK=/usr/local/var/run/openvswitch/db.sock ovs-vswitchd --pidfile --detach ovs-vsctl add-br br0 sleep 2 ifconfig br0 up ovs-vsctl add-port br0 enp7s0f4 sleep 5 ovs-vsctl add-port br0 enp7s0f4d1 sleep 5 ovs-vsctl show Now when I ping on the vxlan interfaces from HostA to HostB and vice-versa it works. I deleted all default flows on the switch and created a flow to switch packets with tun_id=42 but that flow does not seem to be hit. ovs-ofctl del-flows br0 ovs-ofctl add-flow br0 in_port=1,tun_src=192.168.1.66,tun_id=42,action=output:2 [root@warrior ~]# ovs-ofctl --version ovs-ofctl (Open vSwitch) 2.7.0 OpenFlow versions 0x1:0x4 [root@warrior ~]# ovs-ofctl dump-flows br0 NXST_FLOW reply (xid=0x4): cookie=0x0, duration=6.800s, table=0, n_packets=0, n_bytes=0, idle_age=6, tun_id=0x2a,tun_src=192.168.1.66,in_port=1 actions=output:2 How to set flows for the VXLAN tunnel now? Thanks Manu
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss