System Administration > System > Network

ping <hostname-or-ip-address> [repeat <number>] [size <number>] [source <hostname-or-ip-address>] [dfbit enable]

Ping an IP address. Use Control-C to stop the ping command. The repeat argument specifies how many ping packets to transmit. The size argument specifies the size of the ping packet. The dfbit argument specifies whether to set the "don't fragment" bit in the ping packet. If enabled, the packet will not be fragmented.

The source argument specifies which IP address to ping from. This may be required in some circumstances for ping to work as expected. For example, if there is overlap in IP addresses used in the tier 0 and tier 1 router transit subnets, pings from the tier 0 VRF will not reach virtual machines on networks routed by the tier 1 router. If you use the source argument to specify a unique IP used by that VRF (in this case, the tier 0 uplink IP) the pings will reach the virtual machines.

Parameters:

Option Description
<hostname-or-ip-address> A hostname or IP address
<number> Number argument
Allowed pattern: ^[0-9]+$
<dfbit-state> Enable the DF bit
Allowed values: enable


Example:

nsx-edge-1(tier0_sr)> ping 172.16.110.11 source 192.168.130.3 repeat 3 PING 172.16.110.11 (172.16.110.11) from 192.168.130.3: 56 data bytes 64 bytes from 172.16.110.11: icmp_seq=0 ttl=62 time=4.300 ms 64 bytes from 172.16.110.11: icmp_seq=1 ttl=62 time=1.879 ms 64 bytes from 172.16.110.11: icmp_seq=2 ttl=62 time=1.406 ms --- 172.16.110.11 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 1.406/2.528/4.300/1.268 ms

Mode:

Basic, VRF, Tier0 SR, Tier1 SR

Availability: