Ping Commands
Use the M4500 ping commands to test IPv4 and IPv6 reachability of another device from the switch.
Use these commands to determine whether another computer is on the network. A ping provides a synchronous response when initiated from the CLI interface.
ping
Use this command to determine whether another computer is on the network. To use this command, configure the switch for network (in-band) connection. The source and target devices must have the ping utility enabled and running on top of TCP/IP. The switch can be pinged from any IP workstation with which the switch is connected through the default VLAN (VLAN 1), as long as there is a physical path between the switch and the workstation. The terminal interface sends, three pings to the target station.
| Default |
The default count is 3. The default interval is 3 seconds. The default size is 0 bytes. |
| Format | ping [vrf <vrf-name>] {<ip-address> | <ip6addr> | <hostname>} [count <1-15>] [interval <1-60>] [size <0-13000>] [source {< ip-address> | <slot/port> | loopback <loopback-id> | serviceport |vlan <vlan-id>}] |
| Mode |
Privileged EXEC User EXEC |
Using the options described below, you can specify the number and size of Echo Requests and the interval between Echo Requests.
| Parameter | Definition |
|---|---|
| vrf-name | The name of the virtual router in which to initiate the ping. If no virtual router is specified, the ping is initiated in the default router instance. |
| count | Use the count parameter to specify the number of ping packets (ICMP Echo requests) that are sent to the destination address specified by the ip-address field. The range for count is 1 to 15 requests. |
| interval | Use the interval parameter to specify the time between Echo Requests, in seconds. Range is 1 to 60 seconds. |
| size | Use the size parameter to specify the size, in bytes, of the payload of the Echo Requests sent. Range is 0 to 13000 bytes. |
| source | Use the source parameter to specify the source IP/IPv6 address or interface to use when sending the Echo requests packets. |
ping ipv6
Use this command to determine whether another computer is on the network. Ping provides a synchronous response when initiated from the CLI interface. To use the command, configure the switch for network (in-band) connection. The source and target devices must have the ping utility enabled and running on top of TCP/IP. The switch can be pinged from any IP workstation with which the switch is connected through the default VLAN (VLAN 1), as long as there is a physical path between the switch and the workstation. The terminal interface
sends three pings to the target station. Use the ipv6-address|hostname parameter to ping an interface by using the global IPv6 address of the interface. Use the optional size keyword to specify the size of the ping packet. You can utilize the ping or traceroute facilities over the service/network ports when using an IPv6 global address ipv6-address|hostname. Any IPv6 global address or gateway assignments to these interfaces will cause IPv6 routes to be installed within the IP stack such that the ping or traceroute request is routed out the service/network port properly. When referencing an IPv6 link-local address, you must also specify the service or network port interface by using the serviceport or network parameter.
| Default |
The default count is 3. The default interval is 3 seconds. The default size is 0 bytes. |
| Format | ping ipv6 <ipv6-address | hostname> [count <1-15>] [interval <1-60>] [size <0-13000>] [source {< ip-address> | <slot/port> | loopback <loopback-id> | serviceport | tunnel <tunnel-id> | vlan <vlan-id>}] |
| Mode |
Privileged EXEC User EXEC |
ping ipv6 interface
This command use to determine whether another computer is on the network. To use the command, configure the switch for network (in-band) connection. The source and target devices must have the ping utility enabled and running on top of TCP/IP. The switch can be pinged from any IP workstation with which the switch is connected through the default VLAN (VLAN 1), as long as there is a physical path between the switch and the workstation. The terminal interface sends three pings to the target station. Use the interface keyword to ping an interface by using the link-local address or the global IPv6 address of the interface. You can use a loopback, network port, serviceport, tunnel, or physical interface as the source. Use the optional size keyword to specify the size of the ping packet. The ipv6-address is the link local IPv6 address of the device you want to query.
| Default |
The default count is 3. The default interval is 3 seconds. The default size is 0 bytes. |
| Format | ping ipv6 interface {<slot/port> | loopback <loopback-id> | serviceport | tunnel <tunnel-id> | vlan <vlan-id>} <link-local-address> [count <1-15>] [interval <1-60>] [size <0-13000>] [source {< ip-address> | <slot/port> | loopback <loopback-id> | serviceport | tunnel <tunnel-id> | vlan <vlan-id>}] |
| Mode |
Privileged EXEC User EXEC |