[ovs-dev] ip route command not adding entry into ovs-appctl ovs/route/show

Pravin Shelar pshelar at ovn.org
Fri Feb 10 06:55:11 UTC 2017


On Thu, Feb 9, 2017 at 10:30 AM, Srikanth Lingala
<srikanth.lingala at nxp.com> wrote:
> Hi,
> I am using OVS 2.6.1 which is installed on aarch64 Ubuntu 14.04 node.
> When I add a 'route' it is adding into linux routing table. But, when I execute the command 'ovs-appctl ovs/route/show', that specific route is not showing up.
> For example:
>
> root at node-14:~# route add -net 2.2.2.0 netmask 255.255.255.0 br-int
>
My guess is ovs-router is not able to find source ip address for the
network segment (2.2.2.0/24) for device br-int. You can confirm it by
trying same command on master branch with debug logging. OVS 2.6
router does not log such errors.

> root at node-14:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 0.0.0.0         10.20.0.2       0.0.0.0         UG    0      0        0 br-fw-admin
> 10.20.0.0       0.0.0.0         255.255.255.0   U     0      0        0 br-fw-admin
> 2.2.2.0   0.0.0.0         255.255.255.0   U     0      0        0 br-int
> 169.254.169.254 -               255.255.255.255 !H    0      -        0 -
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 br-mgmt
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-storage
> 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br-mesh
>
> root at node-14:~# ovs-appctl ovs/route/show
> Route Table:
> Cached: 10.20.0.4/32 dev br-fw-admin SRC 10.20.0.4
> Cached: 127.0.0.1/32 dev lo SRC 127.0.0.1
> Cached: 192.168.0.4/32 dev br-mgmt SRC 192.168.0.4
> Cached: 192.168.1.2/32 dev br-storage SRC 192.168.1.2
> Cached: 192.168.2.2/32 dev br-mesh SRC 192.168.2.2
> Cached: ::1/128 dev lo SRC ::1
> Cached: fe80::20a:f7ff:fe2c:ca97/128 dev lo SRC ::1
> Cached: fe80::4c7:59ff:fe6b:1239/128 dev lo SRC ::1
> Cached: fe80::1c7b:80ff:fef0:9aed/128 dev lo SRC ::1
> Cached: fe80::1ce7:53ff:fe40:4223/128 dev lo SRC ::1
> Cached: fe80::2a02:4eff:fe49:3732/128 dev lo SRC ::1
> Cached: fe80::d44f:2fff:fe36:784c/128 dev lo SRC ::1
> Cached: fe80::d816:78ff:fef0:efe9/128 dev lo SRC ::1
> Cached: fe80::ec75:d2ff:fea6:9c22/128 dev lo SRC ::1
> Cached: fe80::fc16:3eff:fe18:f042/128 dev lo SRC ::1
> Cached: fe80::fc16:3eff:fe75:7aa3/128 dev lo SRC ::1
> Cached: fe80::fc16:3eff:fe84:e9b4/128 dev lo SRC ::1
> Cached: ff02::16/128 dev br-fw-admin SRC fe80::4c7:59ff:fe6b:1239
> Cached: ff02::1:ffaf:b669/128 dev br-fw-admin SRC fe80::4c7:59ff:fe6b:1239
> Cached: 10.20.0.0/24 dev br-fw-admin SRC 10.20.0.4
> Cached: 192.168.0.0/24 dev br-mgmt SRC 192.168.0.4
> Cached: 192.168.1.0/24 dev br-storage SRC 192.168.1.2
> Cached: 192.168.2.0/24 dev br-mesh SRC 192.168.2.2
> Cached: 127.0.0.0/8 dev lo SRC 127.0.0.1
> Cached: 0.0.0.0/0 dev br-fw-admin GW 10.20.0.2 SRC 10.20.0.4
> Cached: fe80::/64 dev br-int SRC fe80::2a02:4eff:fe49:3732
> Cached: ff00::/8 dev br-int SRC fe80::2a02:4eff:fe49:3732
>
> Can someone give me a clue to debug the issue?
>
> Thanks for the help.
>
> Regards,
> Srikanth.
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev


More information about the dev mailing list