ping

Use the ping command to ping an IP address. The ping command accepts an optional parameter that specifies the source ip address to be used by the command. If this optional source is provided, ping uses the IP address of the specified interface as the source IP address.

ping source-interface name name | number id ip address

Parameters

source-interface name name | number id Specifies the address of the source interface you want to send pings from, either by interface name or ID.
IP Address Specifies the IP address you want to ping. The IP address can be either IPv4 (A.B.C.D) or IPv6 (A:B:C:D:E:F:G:H) format.

Usage

You can identify the source IP using its interface name or, for short, the identifier returned by the show topology l3 command. Interface name is the name of any topology with L3 configuration (Physical, Admin, B@AC or Routed).

Examples

The following example pings an IP address:
EWC.extremenetworks.com# ping 192.168.1.32
PING 192.168.1.32 (192.168.1.32) from 192.168.1.38 : 56(84) bytes of data.
64 bytes from 192.168.1.32: icmp_seq=1 ttl=64 time=0.423 ms
64 bytes from 192.168.1.32: icmp_seq=2 ttl=64 time=0.218 ms
64 bytes from 192.168.1.32: icmp_seq=3 ttl=64 time=0.204 ms
--- 192.168.1.32 ping statistics ---
3 packets transmitted, 3 received, 0% loss, time 2013ms
rtt min/avg/max/mdev = 0.204/0.281/0.423/0.101 ms
The following example first uses the show topology l3 command to obtain interface names for use with ping as source addresses. Then, the following command pings an IP address using the IP address of interface name “esa1” (as determined with the show topology l3 command) as the source address:
EWC.extremenetworks.com# show topology l3
Name                                  Mode                           L3:IP

1:Admin                               admin                          192.168.4.37
2:esa0                                physical                       10.0.0.1
3:esal                                Physical                       10.0.1.1
4:Extreme-37Topology                  b@ac                           10.10.1.1
EWC.extremenetworks.com# ping source-interface name esa1 192.168.4.37
PING 192.168.4.37 (192.168.4.37) from 10.0.1.1 : 56(84) bytes of data.
64 bytes from 192.168.4.37: icmp_seq=1 ttl=64 time=0.042 ms
64 bytes from 192.168.4.37: icmp_seq=2 ttl=64 time=0.037 ms
64 bytes from 192.168.4.37: icmp_seq=3 ttl=64 time=0.039 ms

--- 192.168.4.37 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.037/0.039/0.042/0.005 ms