mac
Commands for Network Port Configuration
98
3.1.2 clear counters interface
Command: clear counters [interface {ethernet <interface-list> | vlan <vlan-id> |
port-channel <port-channel-number> | <interface-name>}]
Function: Clears the statistics of the specified port.
Parameters: <interface-list> stands for the Ethernet port number; <vlan-id> stands for
the VLAN interface number; <port-channel-number> for trunk interface number;
<interface-name> for interface name, such as port-channel 1.
Command mode: Admin Mode.
Default: Port statistics are not cleared by default.
Usage Guide: If no port is specified, then statistics of all ports will be cleared.
Example: Clearing the statistics for Ethernet port1/1.
Switch#clear counters interface ethernet 1/1
3.1.3 description
Command: description <string>
no description
Function: Set name for specified port; the no command cancels this configuration.
Parameter: <string> is a character string, which should not exceeds 200 characters.
Command Mode: Port Mode.
Default: No port name by default.
Usage Guide: This command is for helping the user manage switches, such as the user
assign names according to the port application, e.g. financial as the name of 1/1-2 ports
which is used by financial department, engineering as the name of 1/9 ports which
belongs to the engineering department, while the name of 1/12 ports is assigned with
Server, which is because they connected to the server. In this way the port distribution
state will be brought to the table.
Example: Specify the description of 1/1-2 port as financial.
Switch(config)#interface ethernet 1/1-2
Switch(Config-If-Port-Range)#description financial
3.1.4 flow control
Command: flow control
no flow control
Function: Enables the flow control function for the port: the “no flow control” command
disables the flow control function for the port.










