|
After the switch is assigned an IP
address and at least one switch port is connected to the network and
properly configured, the switch can communicate with other nodes on
the network (beyond simply switching traffic).
To test connectivity to remote hosts, enter the following command in
privileged mode.
Switch> (enable) ping
destination ip address
An example of this command is shown
in Figure .
The ping
command will return one of
the following responses:
- Success rate is 100 percent or
ip address is alive. This response occurs in 1 to 10
seconds, depending on network traffic and the number of Internet
Control Message Protocol (ICMP) packets sent.
- Destination does not respond.
No answer message is returned if the host does not respond.
- Unknown host. This response
occurs if the targeted host does not exist.
- Destination unreachable.
This response occurs if the default gateway cannot reach the
specified network.
- Network or host unreachable.
This response occurs if there is no entry in the route table for
the host or network.
The example in Figure
states that the destination IP address 10.1.1.1 can be reached by
the device generating the ping.
|