|
|
Use the ping command to send ICMP echo request packets to another node on the network.
ping [-s] host [packet_size] [packet_count]
-s | (Optional) Keyword to cause ping to send one datagram per second when a response is received from the specified host. |
host | IP address or IP alias of the host. |
packet_size | (Optional) Number of bytes in each ICMP echo request packet. |
packet_count | (Optional) Number of packets to send. |
The default is to send a single 56-byte ICMP echo request packet to the specified host.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Normal.
Press Ctrl-C to stop pinging.
Following are sample results of the ping command:
This example shows how to ping a host with IP alias elvis a single time:
Console> ping elvis elvis is alive Console>
This example shows how to ping a host with IP alias elvis once per second until you press Ctrl-C to stop pinging:
Console> ping -s elvis ping elvis: 56 data bytes 64 bytes from elvis: icmp_seq=0. time=11 ms 64 bytes from elvis: icmp_seq=1. time=8 ms 64 bytes from elvis: icmp_seq=2. time=8 ms 64 bytes from elvis: icmp_seq=3. time=7 ms 64 bytes from elvis: icmp_seq=4. time=11 ms 64 bytes from elvis: icmp_seq=5. time=7 ms 64 bytes from elvis: icmp_seq=6. time=7 ms ^C ----elvis PING Statistics---- 7 packets transmitted, 7 packets received, 0% packet loss round-trip (ms) min/avg/max = 7/8/11 Console>
This example shows how to ping IP host elvis 10 times using 1200 byte packets:
Console> ping -s elvis 1200 10 PING elvis:1200 data bytes 1208 bytes from elvis:icmp_seq=0. time=3 ms 1208 bytes from elvis:icmp_seq=1. time=3 ms 1208 bytes from elvis:icmp_seq=2. time=3 ms 1208 bytes from elvis:icmp_seq=3. time=3 ms 1208 bytes from elvis:icmp_seq=4. time=3 ms 1208 bytes from elvis:icmp_seq=5. time=3 ms 1208 bytes from elvis:icmp_seq=6. time=3 ms 1208 bytes from elvis:icmp_seq=7. time=3 ms 1208 bytes from elvis:icmp_seq=8. time=4 ms 1208 bytes from elvis:icmp_seq=9. time=3 ms ----elvis PING Statistics---- 10 packets transmitted, 10 packets received, 0% packet loss round-trip (ms) min/avg/max = 3/3/4 Console>
set interface
set ip route
show interface
show ip route
Use the pwd command to show the current default Flash device.
pwd [mod]
mod | (Optional) Module number of the supervisor engine for which to display the current default Flash device. |
If no module number is specified, pwd defaults to the active supervisor engine.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This command is not supported on the Catalyst 5000 family Supervisor Engine II, II G, and III G.
This example shows how to use the pwd command to display the current default Flash device:
Console> pwd bootflash Console> cd Default flash device set to slot0. Console> pwd slot0
Use the quit command to exit a CLI session.
quitThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Normal.
The exit and logout commands perform the same function as the quit command.
This example shows how to quit a CLI session:
Console> quit Connection closed by foreign host. host%
Use the reconfirm vmps command to reconfirm the current dynamic port VLAN membership assignments with the VMPS server.
reconfirm vmpsThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
VMPS database changes are not conveyed automatically to switches participating in VMPS. Therefore, after making a VMPS database change, use this command on VMPS clients and servers to apply the database changes.
This example shows how to reconfirm the current dynamic port VLAN membership with VMPS:
Console (enable) reconfirm vmps reconfirm process started Use 'show dvlan statistics' to see reconfirm status Console (enable)
clear vmps server
show dvlan statistics
Use the reload command to force a Gigabit EtherChannel switching module (WS-X5410) to accept a download.
reload mod_num
mod_num | Number of the module. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
The reload command is only supported by the Gigabit EtherChannel switching module (WS-X5410). For additional information on this command, refer to the Catalyst 5000 Family Gigabit Ethernet Modules Installation and Configuration Note.
This example shows how to reload the Gigabit EtherChannel switching module:
Console (enable) reload 3
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon Oct 4 13:51:47 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.