366
command will be available. We can configure many IPv4 and IPv6 log hosts.
Example 1: Send the log information with a severity level equal to or higher than warning
to the log server with an IPv4 address of 100.100.100.5, and save to the log recording
equipment local1.
Switch(config)# logging 100.100.100.5 facility local1 level warnings
Example 2: Send the log information with a severity level equal to or higher than
informational to the log server with an IPv6 address of 3ffe:506:1:2::3, and save to the log
recording equipment local5.
Switch(config)# logging 3ffe:506:1:2::3 facility local1 level informational
41.3 logging loghost sequence-number
Command: logging loghost sequence-number
no logging loghost sequence-number
Function: Add the loghost sequence-number for the log, the no command does not
include the loghost sequence-number.
Command Mode: Port mode
Default: Do not include the sequence-number.
Usage Guide: Use logging command to configure the loghost before this command is set.
Example: Open the loghost sequence-number.
Switch(config)# logging loghost sequence-number
41.4 ping
Command: ping [[src <source-address> ] { <destination-address> | host
<hostname> }]
Function: Issue ICMP request to remote devices, Check whether the remote device can
be reached by the switch.
Parameters: <source-address> is the source IP address where the ping command is
issued, with IP address in dotted decimal format. <destination-address> is the target IP
address of the ping command, with IP address in dotted decimal format. <hostname> is
the target host name of the ping command, which is limited to be less than 30 characters.
Default: 5 ICMP echo requests will be sent. The default packet size and time out is 56
bytes and 2 seconds.
Command Mode: Admin mode