Hi VPP Maintainers, It seems that adding static IPv6 routes using VPP CLI 'ip route add' has some problems. For example, like shown in the attached ipv6_cli.txt file, I add 4 static IPv6 routes using CLI 'ip route add 2001:1::0/128 count 4 via eth0', which returns 3 weird routes. 2001:1::/128 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:8 buckets:1 uRPF:7 to:[0:0]] [0] [@3]: arp-ipv6: via 2001:1:: eth0 2001:1:0:1::/128 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:9 buckets:1 uRPF:8 to:[0:0]] [0] [@4]: ipv6-glean: [src:2001:1:0:1::/128] eth0: mtu:9000 next:2 flags:[] ffffffffffff6891d06246ac86dd 2001:1:0:2::/128 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:10 buckets:1 uRPF:9 to:[0:0]] [0] [@4]: ipv6-glean: [src:2001:1:0:2::/128] eth0: mtu:9000 next:2 flags:[] ffffffffffff6891d06246ac86dd 2001:1:0:3::/128 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:11 buckets:1 uRPF:10 to:[0:0]] [0] [@4]: ipv6-glean: [src:2001:1:0:3::/128] eth0: mtu:9000 next:2 flags:[] ffffffffffff6891d06246ac86dd
With some debugging, I find the logic of calculating IPv6 routes using VPP CLI is probably wrong. I made a quick patch https://gerrit.fd.io/r/c/vpp/+/33422 to resolve this issue. Could you please take your time to double-confirm this issue and possibly help review the patch? Thanks, Jieqiang Wang IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
snowball@net-x86-dell-8268:~/tasks/vpp_debug$ sudo ./vpp/build-root/install-vpp-native/vpp/bin/vpp -c startup.conf dpdk/cryptodev [warn ]: dpdk_cryptodev_init: Failed to configure cryptodev vat-plug/load [error ]: vat_plugin_register: lb plugin not loaded... vat-plug/load [error ]: vat_plugin_register: avf plugin not loaded... vat-plug/load [error ]: vat_plugin_register: ct6 plugin not loaded... vat-plug/load [error ]: vat_plugin_register: dns plugin not loaded... vat-plug/load [error ]: vat_plugin_register: mactime plugin not loaded... vat-plug/load [error ]: pot_vat_plugin_register: pot plugin not loaded... vat-plug/load [error ]: vat_plugin_register: lacp plugin not loaded... vat-plug/load [error ]: vat_plugin_register: l2tp plugin not loaded... vat-plug/load [error ]: vat_plugin_register: lldp plugin not loaded... vat-plug/load [error ]: vat_plugin_register: builtinurl plugin not loaded... vat-plug/load [error ]: vat_plugin_register: nsim plugin not loaded... vat-plug/load [error ]: vat_plugin_register: af_xdp plugin not loaded... vat-plug/load [error ]: vat_plugin_register: vrrp plugin not loaded... vat-plug/load [error ]: vat_plugin_register: tls_openssl plugin not loaded... vat-plug/load [error ]: vat_plugin_register: vmxnet3 plugin not loaded... vat-plug/load [error ]: vat_plugin_register: cdp plugin not loaded... vat-plug/load [error ]: vat_plugin_register: stn plugin not loaded... vat-plug/load [error ]: vat_plugin_register: rdma plugin not loaded... vat-plug/load [error ]: vat_plugin_register: mdata plugin not loaded... vat-plug/load [error ]: vat_plugin_register: dhcp plugin not loaded... vat-plug/load [error ]: vat_plugin_register: pppoe plugin not loaded... vat-plug/load [error ]: vat_plugin_register: oddbuf plugin not loaded... vat-plug/load [error ]: vat_plugin_register: flowprobe plugin not loaded... vat-plug/load [error ]: vat_plugin_register: geneve plugin not loaded... vat-plug/load [error ]: vat_plugin_register: memif plugin not loaded... vat-plug/load [error ]: vat_plugin_register: arping plugin not loaded... vat-plug/load [error ]: vat_plugin_register: ikev2 plugin not loaded... vat-plug/load [error ]: vat_plugin_register_gpe: lisp_gpe plugin not loaded... vat-plug/load [error ]: vat_plugin_register: acl plugin not loaded... vat-plug/load [error ]: vat_plugin_register: http_static plugin not loaded... vat-plug/load [error ]: vat_plugin_register: tracedump plugin not loaded... vat-plug/load [error ]: vat_plugin_register: adl plugin not loaded... vat-plug/load [error ]: vat_plugin_register: nsh plugin not loaded... vat-plug/load [error ]: vat_plugin_register: gtpu plugin not loaded... _______ _ _ _____ ___ __/ __/ _ \ (_)__ | | / / _ \/ _ \ _/ _// // / / / _ \ | |/ / ___/ ___/ /_/ /____(_)_/\___/ |___/_/ /_/ vpp# show int Name Idx State MTU (L3/IP4/IP6/MPLS) Counter Count eth0 1 down 9000/0/0/0 eth1 2 down 9000/0/0/0 local0 0 down 0/0/0/0 vpp# set int state eth0 up vpp# set int state eth1 up vpp# vpp# vpp# show ip6 fib ipv6-VRF:0, fib_index:0, flow hash:[src dst sport dport proto flowlabel ] epoch:0 flags:none locks:[default-route:1, ] ::/0 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:6 buckets:1 uRPF:5 to:[0:0]] [0] [@0]: dpo-drop ip6 fe80::/10 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:7 buckets:1 uRPF:6 to:[0:0]] [0] [@14]: ip6-link-local vpp# ip route add 2001:1::0/128 count 4 via eth0 6.133327e3 routes/sec vpp# show ip6 fib ipv6-VRF:0, fib_index:0, flow hash:[src dst sport dport proto flowlabel ] epoch:0 flags:none locks:[default-route:1, ] ::/0 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:6 buckets:1 uRPF:5 to:[0:0]] [0] [@0]: dpo-drop ip6 2001:1::/128 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:8 buckets:1 uRPF:7 to:[0:0]] [0] [@3]: arp-ipv6: via 2001:1:: eth0 2001:1:0:1::/128 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:9 buckets:1 uRPF:8 to:[0:0]] [0] [@4]: ipv6-glean: [src:2001:1:0:1::/128] eth0: mtu:9000 next:2 flags:[] ffffffffffff6891d06246ac86dd 2001:1:0:2::/128 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:10 buckets:1 uRPF:9 to:[0:0]] [0] [@4]: ipv6-glean: [src:2001:1:0:2::/128] eth0: mtu:9000 next:2 flags:[] ffffffffffff6891d06246ac86dd 2001:1:0:3::/128 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:11 buckets:1 uRPF:10 to:[0:0]] [0] [@4]: ipv6-glean: [src:2001:1:0:3::/128] eth0: mtu:9000 next:2 flags:[] ffffffffffff6891d06246ac86dd fe80::/10 unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:7 buckets:1 uRPF:6 to:[0:0]] [0] [@14]: ip6-link-local
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20206): https://lists.fd.io/g/vpp-dev/message/20206 Mute This Topic: https://lists.fd.io/mt/85894340/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-