[ovs-discuss] Cannot change vxlan egress (source) ports

José Miguel Guzmán jmguzman at whitestack.com
Fri Feb 16 03:50:57 UTC 2018


Hello

I need to change the range of source ports for VXLAN tunnels.

Although I tried with set dst_port to 2000
# ovs-vsctl add-port br-ovs vxlan3 -- set interface vxlan3 type=vxlan
options:remote_ip=192.168.111.203 options:dst_port=20000

and egress port range to 20000-20001
# ovs-appctl tnl/egress_port_range 20000 20001
# ovs-appctl tnl/egress_port_range
Tunnel UDP source port range: 20000-20001

I continue seeing VXLAN packets are picking random source ports within the
default port range (dst ports are correctly changed):

04:35:05.979474 IP 192.168.111.202.40041 > 192.168.111.203.20000: UDP,
length 89
04:35:05.979477 IP 192.168.111.202.55569 > 192.168.111.203.20000: UDP,
length 89
04:35:09.079814 IP 192.168.111.202.40041 > 192.168.111.203.20000: UDP,
length 89
04:35:09.079817 IP 192.168.111.202.55569 > 192.168.111.203.20000: UDP,
length 89
04:35:12.179227 IP 192.168.111.202.40041 > 192.168.111.203.20000: UDP,
length 89
04:35:12.179230 IP 192.168.111.202.55569 > 192.168.111.203.20000: UDP,
length 89
04:35:15.279437 IP 192.168.111.202.40041 > 192.168.111.203.20000: UDP,
length 89
04:35:15.279440 IP 192.168.111.202.55569 > 192.168.111.203.20000: UDP,
length 89

When looking to the vxlan interface created, srcport is not set

# ip -d link show vxlan_sys_20000
32: vxlan_sys_20000: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 65485 qdisc
noqueue master ovs-system state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether ae:7e:0f:f1:b0:0a brd ff:ff:ff:ff:ff:ff promiscuity 1
    vxlan id 0 *srcport 0 0* dstport 20000 nolearning ageing 300 external
    openvswitch_slave addrgenmode eui64

Am I doing something wrong?
Uting ovs 2.5.0 on Linux 4.4.91

Thanks a lot!!
JM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180216/f7c949ff/attachment.html>


More information about the discuss mailing list