From: <vpp-dev@lists.fd.io> on behalf of Aswin Surendran <aswinsurendra...@gmail.com> Date: Thursday 26 September 2019 at 15:43 To: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io> Subject: [vpp-dev] Packet hits wrong FIB look up
Hi, I am facing an issue in FIB entry look-up in vpp-18.07 version. A packet is being sent with source IP as 10.60.186.218 and destination IP as 10.60.186.210. The next hop for the route is with IP: 10.60.168.217. The packet is expected to hit a route corresponding to destination: 10.60.0.0/16<http://10.60.0.0/16>, but instead it takes the default route. Please check the below FIB table: /opt/trs/bin/trs-vppctl show ip fib ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto ] locks:[src:(nil):2, src:adjacency:2, src:default-route:1, ] 0.0.0.0/0<http://0.0.0.0/0> pmtu: 1608 pmtu ? this is not vanilla VPP, you have local modifications, so i can’t really help you. I would suggest you check your version of ip4_mtrie.c with the one on master. There were some fixes in there since 18.07 IIRC. /neale unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:31 to:[10:840]] [0] [@5]: ipv4 via 10.62.186.193 EthernetSwitch2/0/0.906: 0000016ebaa1207852482fa28100038a0800 0.0.0.0/32<http://0.0.0.0/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]] [0] [@0]: dpo-drop ip4 10.60.0.0/16<http://10.60.0.0/16> pmtu: 1608 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:17 buckets:1 uRPF:30 to:[0:0]] [0] [@5]: ipv4 via 10.60.186.217 EthernetSwitch2/0/0.905: 0000016ebaa1207852482fa2810003890800 10.60.186.216/32<http://10.60.186.216/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:10 buckets:1 uRPF:9 to:[0:0]] [0] [@0]: dpo-drop ip4 10.60.186.217/32<http://10.60.186.217/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:18 buckets:1 uRPF:28 to:[0:0]] [0] [@5]: ipv4 via 10.60.186.217 EthernetSwitch2/0/0.905: 0000016ebaa1207852482fa2810003890800 10.60.186.216/29<http://10.60.186.216/29> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:9 buckets:1 uRPF:8 to:[0:0]] [0] [@4]: ipv4-glean: EthernetSwitch2/0/0.905 10.60.186.218/32<http://10.60.186.218/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:12 buckets:1 uRPF:13 to:[0:0]] [0] [@2]: dpo-receive: 10.60.186.218 on EthernetSwitch2/0/0.905 10.60.186.223/32<http://10.60.186.223/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:11 buckets:1 uRPF:11 to:[0:0]] [0] [@0]: dpo-drop ip4 10.62.186.192/32<http://10.62.186.192/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:14 buckets:1 uRPF:19 to:[0:0]] [0] [@0]: dpo-drop ip4 10.62.186.193/32<http://10.62.186.193/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:19 buckets:1 uRPF:27 to:[0:0]] [0] [@5]: ipv4 via 10.62.186.193 EthernetSwitch2/0/0.906: 0000016ebaa1207852482fa28100038a0800 10.62.186.192/27<http://10.62.186.192/27> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:13 buckets:1 uRPF:18 to:[0:0]] [0] [@4]: ipv4-glean: EthernetSwitch2/0/0.906 10.62.186.218/32<http://10.62.186.218/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:16 buckets:1 uRPF:23 to:[0:0]] [0] [@2]: dpo-receive: 10.62.186.218 on EthernetSwitch2/0/0.906 10.62.186.223/32<http://10.62.186.223/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:15 buckets:1 uRPF:21 to:[0:0]] [0] [@0]: dpo-drop ip4 224.0.0.0/4<http://224.0.0.0/4> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:4 buckets:1 uRPF:3 to:[0:0]] [0] [@0]: dpo-drop ip4 240.0.0.0/4<http://240.0.0.0/4> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:3 buckets:1 uRPF:2 to:[0:0]] [0] [@0]: dpo-drop ip4 255.255.255.255/32<http://255.255.255.255/32> pmtu: 0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:5 buckets:1 uRPF:4 to:[0:0]] [0] [@0]: dpo-drop ip4 The ARP table entry is as follows: /opt/trs/bin/trs-vppctl show ip arp Time IP4 Flags Ethernet Interface 154.1166 10.60.186.217 D 00:00:01:6e:ba:a1 EthernetSwitch2/0/0.905 154.1284 10.62.186.193 D 00:00:01:6e:ba:a1 EthernetSwitch2/0/0.906 Interface address and VLAN as below: /opt/trs/bin/trs-vppctl show int address EthernetSwitch1/0/6 (up): EthernetSwitch2/0/0 (up): EthernetSwitch2/0/0.905 (up): 10.60.186.218/29<http://10.60.186.218/29> EthernetSwitch2/0/0.906 (up): 10.62.186.218/27<http://10.62.186.218/27> kni0 (up): local0 (dn): Is this a known issue or am I doing something wrong? Please help here. Regards, Aswin
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14066): https://lists.fd.io/g/vpp-dev/message/14066 Mute This Topic: https://lists.fd.io/mt/34298858/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-