To test the network connectivity between the switch and the machine at the other end
Switch# ping <remote-host>
Example:
support the IP address of a switch is 198.168.80.1, which has a directly connected PC with IP
address 198.168.80.72. To test the connectivity between the switch and the PC:
Switch# ping 198.168.80.72
If connected, it will show the connectivity as follows:
PING 198.168.80.72: 56 data bytes
64 bytes from host (198.168.80.72): icmp_seq=0. time=0. ms
64 bytes from host (198.168.80.72): icmp_seq=1. time=0. ms
64 bytes from host (198.168.80.72): icmp_seq=2. time=0. ms
64 bytes from host (198.168.80.72): icmp_seq=3. time=0. ms
64 bytes from host (198.168.80.72): icmp_seq=4. time=0. ms
--198.168.80.72 PING statistics—
5 packets transmitted, 5 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/3/16
If not connected, it will show as follows:
PING 198.168.80.72: 56 data bytes
no answer from 198.168.80.72
To show the last 20 commands
Switch# show history
To show system information, including system description, product name, version, and startup
time, etc…
Switch# show system
To show some configuration information, including IP address, MAC,IP gateway and protocols
startup information, etc…
Switch# show system
To show console connection parameters
Switch# show console
To show the height and width of the current terminal connection, i.e., the maximum number of
characters can be shown
Switch# show terminal
To show IP information of VLAN1, including IP address, netmask and gateway
Switch# show ip
To show version
Switch# show version