Manoj, Because system B is running VPP, you can’t initiate the ping from system B in Unix Shell. Kernel does not have that interface and IP address anymore for you to do the ping. You have to start the ping from vppctl if you want to do the ping from system B running VPP.
When you do the ping from system A, type vppctl show error vppctl show interface may help you to find out why the packet got dropped or if it arrives at all to VPP. If that still does not help, take the trace from VPP. Something like this vppctl trace add dpdk-input 100 ping 10.1.1.10 <-- ping rom system A vppctl show trace Honestly, I’ve never worked with a Broadcom NIC which you are using. tx burst function: bnxt_xmit_pkts rx burst function: bnxt_recv_pkts May the force be with you. Steven From: Manoj Iyer <manoj.i...@arm.com> Date: Monday, June 15, 2020 at 7:48 AM To: "Dave Barach (dbarach)" <dbar...@cisco.com>, "Steven Luong (sluong)" <slu...@cisco.com>, "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] Need help with setup.. cannot ping a VPP interface. Dave/Steven, I set the netmask on both sides to 255.255.255.0 and here is how I setup the ip address on the 2 servers. System-B has ip address set using vppctl and system-A was setup using ifconfig, as below. The link is up on both enp2s0f1np1 on System A and bnxt0 on System B. VPP version used is 20.05. Also on System B where I setup 10.1.1.10 as the IP address on the VPP interface bnxt0, I was not able to ping that IP from the host system (System B). Please see below towards the end where this ping fails. (Also, I setup the exact same physical interfaces without using VPP and was able to ping each other.) == System A == $ sudo ifconfig enp2s0f1np1 10.1.1.11 netmask 255.255.255.0 up $ ifconfig enp2s0f1np1 enp2s0f1np1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.1.1.11 netmask 255.255.255.0 broadcast 10.1.1.255 ether b0:26:28:82:09:cd txqueuelen 1000 (Ethernet) RX packets 635 bytes 183934 (183.9 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 150 bytes 20610 (20.6 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 $ ethtool enp2s0f1np1 Settings for enp2s0f1np1: Supported ports: [ FIBRE ] Supported link modes: 10000baseT/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: 10000baseT/Full 25000baseCR/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Advertised FEC modes: Not reported Speed: 10000Mb/s Duplex: Full Port: Direct Attach Copper PHYAD: 1 Transceiver: internal Auto-negotiation: on Cannot get wake-on-lan settings: Operation not permitted Current message level: 0x00000000 (0) Link detected: yes == System B (vppctl for ip setup ) == $ sudo vppctl set int ip address bnxt0 10.1.1.10/24 $ sudo vppctl show interface address bnxt0 (up): L3 10.1.1.10/24 bnxt1 (dn): bnxt2 (dn): bnxt3 (dn): local0 (dn): $ sudo vppctl show hardware Name Idx Link Hardware bnxt0 1 up bnxt0 Link speed: 10 Gbps Ethernet address 00:10:18:ad:05:00 Broadcom NetXtreme E/S-Series carrier up full duplex mtu 9206 flags: admin-up pmd tx-offload rx-ip4-cksum Devargs: rx: queues 3 (max 73), desc 512 (min 16 max 8192 align 1) tx: queues 4 (max 73), desc 512 (min 16 max 4096 align 1) pci: device 14e4:d804 subsystem 14e4:8040 address 0008:01:00.00 numa 0 max rx packet len: 9600 promiscuous: unicast off all-multicast on vlan offload: strip on filter off qinq off rx offload avail: vlan-strip ipv4-cksum udp-cksum tcp-cksum tcp-lro outer-ipv4-cksum vlan-filter vlan-extend jumbo-frame scatter timestamp keep-crc rss-hash rx offload active: vlan-strip ipv4-cksum tx offload avail: vlan-insert ipv4-cksum udp-cksum tcp-cksum tcp-tso outer-ipv4-cksum qinq-insert vxlan-tnl-tso gre-tnl-tso ipip-tnl-tso geneve-tnl-tso multi-segs tx offload active: vlan-insert ipv4-cksum udp-cksum tcp-cksum tcp-tso outer-ipv4-cksum vxlan-tnl-tso gre-tnl-tso ipip-tnl-tso geneve-tnl-tso multi-segs rss avail: ipv4-tcp ipv4-udp ipv4 ipv6-tcp ipv6-udp ipv6 rss active: ipv4-tcp ipv4-udp ipv4 ipv6-tcp ipv6-udp ipv6 tx burst function: bnxt_xmit_pkts rx burst function: bnxt_recv_pkts == Ping System A from System B == $ ping -c1 10.1.1.11 PING 10.1.1.11 (10.1.1.11) 56(84) bytes of data. --- 10.1.1.11 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms == Ping System B from System A == $ ping -c1 10.1.1.10 PING 10.1.1.10 (10.1.1.10) 56(84) bytes of data. From 10.1.1.11 icmp_seq=1 Destination Host Unreachable --- 10.1.1.10 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms == Ping System A interface from System A == $ ping -c1 10.1.1.11 PING 10.1.1.11 (10.1.1.11) 56(84) bytes of data. 64 bytes from 10.1.1.11: icmp_seq=1 ttl=64 time=0.033 ms --- 10.1.1.11 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.033/0.033/0.033/0.000 ms == Ping System B interface from System B == $ ping -c1 10.1.1.10 PING 10.1.1.10 (10.1.1.10) 56(84) bytes of data. --- 10.1.1.10 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms Thanks Manoj Iyer ________________________________ From: Dave Barach (dbarach) <dbar...@cisco.com> Sent: Friday, June 12, 2020 3:21 PM To: Steven Luong (sluong) <slu...@cisco.com>; Manoj Iyer <manoj.i...@arm.com>; vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> Subject: RE: [vpp-dev] Need help with setup.. cannot ping a VPP interface. +check hardware addresses with “show hardware”, to make sure you’ve configured the interface which is actually connected to the peer system / switch... HTH... Dave From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of steven luong via lists.fd.io Sent: Friday, June 12, 2020 4:18 PM To: Manoj Iyer <manoj.i...@arm.com>; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Need help with setup.. cannot ping a VPP interface. Please correct the subnet mask first. L3 10.1.1.10/24. <-- system A inet 10.1.1.11 netmask 255.0.0.0 broadcast 10.255.255.255 <--- system B Steven From: <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> on behalf of Manoj Iyer <manoj.i...@arm.com<mailto:manoj.i...@arm.com>> Date: Friday, June 12, 2020 at 12:28 PM To: "vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>" <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> Subject: [vpp-dev] Need help with setup.. cannot ping a VPP interface. Hello, I am very new to VPP and I am having trouble pinging the vpp interface. I have a system with ip address 10.1.1.10 set up using a VPP interface, and I have another system with ip address 10.1.1.11 setup with no VPP. Both systems are connected though a switch. If I do not use VPP I am able to ping each other, but when I use VPP to configure one of the IPs I am unable to ping. I know this might be a very basic setup issue. Could someone please point me in the right direction. I have read through https://wiki.fd.io/view/VPP/How_To_Connect_A_PCI_Interface_To_VPP == on system A == $ sudo vppctl show interface address bnxt0 (dn): bnxt1 (dn): bnxt2 (dn): bnxt3 (up): L3 10.1.1.10/24 local0 (dn): $ sudo vppctl show interface Name Idx State MTU (L3/IP4/IP6/MPLS) Counter Count bnxt0 1 down 9000/0/0/0 bnxt1 2 down 9000/0/0/0 bnxt2 3 down 9000/0/0/0 bnxt3 4 up 9000/0/0/0 rx packets 498 rx bytes 74839 drops 498 ip4 112 ip6 188 local0 0 down 0/0/0/0 == on system B == $ ifconfig enp2s0f2np0 enp2s0f2np0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.1.1.11 netmask 255.0.0.0 broadcast 10.255.255.255 ether b0:26:28:82:09:ce txqueuelen 1000 (Ethernet) RX packets 250 bytes 59677 (59.6 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 103 bytes 15583 (15.5 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 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. 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.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16733): https://lists.fd.io/g/vpp-dev/message/16733 Mute This Topic: https://lists.fd.io/mt/74846214/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-