ping¶
Execute an ICMP echo request from the Lantronix Local Manager to a specific IP address. From the port context, this command attempts to ping the dedicated device IP address. If the dedicated device IP address is not configured, it will attempt to ping the management IP address.
Command availability¶
CLI resource: system, port
Lantronix system: All
LMS offerings: All
Syntax¶
The basic syntax for ping is the command followed by an IP address. Hostnames can be used if DNS is configured. Both IPv4 and IPv6 are supported.
Options & Flags¶
The following options are available when ping is run from the system resource:
- -4 - force an IPv4 ping
- -6 - force an IPv6 ping
- -df - don't fragment (flag)
- -s <bytes> - size of data
- -v - verbose output
When run from the port resource, the following options are available:
- -m - force ping to use management IP address if Dedicated Ethernet is configured
- -v - verbose output
Usage¶
Only specific IP addresses (no broadcast) are supported. Hostnames are supported if DNS is configured using config system ip.
Default routes are used (Management Ethernet or PPP/VPN if active).
A successful ping looks like this:
[admin@LantronixLM]# ping 172.30.5.48
PING 172.30.5.48
4 transmitted, 4 received, 0% loss, avg 0.565 ms
A failed ping looks like this:
[admin@LantronixLM]# ping 10.10.10.1
PING 10.10.10.1
4 transmitted, 0 received, 100% loss, time 3068ms
ERROR
If DNS is configured, ping will resolve the hostname before pinging:
[admin@LantronixLM]# ping lantronix.com
PING 45.56.74.20
4 transmitted, 4 received, 0% loss, avg 15 ms
If DNS is not configured, domain name resolution will fail and not host will be pinged:
A verbose option is available if you'd like to view each response:
[admin@LantronixLM]# ping 8.8.8.8 -v
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=5.98 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=5.96 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=117 time=5.95 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=117 time=5.93 ms
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 5.928/5.953/5.977/0.017 ms