System Administration > System > Network

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

Ping an IP address. Use Control-C to stop the ping command. The repeat argument specifies how many ping packets to transmit. The vrf argument specifies which VRF to send the pings from. You can get a list of available VRFs with the get logical-routers command. 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
<vrf-id> VRF ID argument
Allowed pattern: ^[0-9]+$


Example:

nsx-edge-1> ping 172.16.110.11 vrf 3 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=6.203 ms 64 bytes from 172.16.110.11: icmp_seq=1 ttl=62 time=3.908 ms 64 bytes from 172.16.110.11: icmp_seq=2 ttl=62 time=4.633 ms --- 172.16.110.11 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 3.908/4.915/6.203/0.958 ms

Mode:

Basic

Availability: