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

2018-02-23 Thread Ben Pfaff
On Fri, Feb 16, 2018 at 12:50:57AM -0300, José Miguel Guzmán wrote:
> 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=2
> 
> and egress port range to 2-20001
> # ovs-appctl tnl/egress_port_range 2 20001
> # ovs-appctl tnl/egress_port_range
> Tunnel UDP source port range: 2-20001

tnl/egress_port_range only influences the behavior of the DPDK-based
tunnel implementation in OVS.  If you're using the kernel implementation
of tunneling, it will have no effect.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


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

2018-02-15 Thread José Miguel Guzmán
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=2

and egress port range to 2-20001
# ovs-appctl tnl/egress_port_range 2 20001
# ovs-appctl tnl/egress_port_range
Tunnel UDP source port range: 2-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.2: UDP,
length 89
04:35:05.979477 IP 192.168.111.202.55569 > 192.168.111.203.2: UDP,
length 89
04:35:09.079814 IP 192.168.111.202.40041 > 192.168.111.203.2: UDP,
length 89
04:35:09.079817 IP 192.168.111.202.55569 > 192.168.111.203.2: UDP,
length 89
04:35:12.179227 IP 192.168.111.202.40041 > 192.168.111.203.2: UDP,
length 89
04:35:12.179230 IP 192.168.111.202.55569 > 192.168.111.203.2: UDP,
length 89
04:35:15.279437 IP 192.168.111.202.40041 > 192.168.111.203.2: UDP,
length 89
04:35:15.279440 IP 192.168.111.202.55569 > 192.168.111.203.2: UDP,
length 89

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

# ip -d link show vxlan_sys_2
32: vxlan_sys_2:  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 2 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
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss