Alcatel-Lucent 6850-48 网络指南

下载
页码 1162
Configuring Ethernet Ports
Setting Ethernet Parameters for All Port Types
OmniSwitch AOS Release 6 Network Configuration Guide
September 2009
page 1-11
Resetting Statistics Counters
command is used to reset all Layer 2 statistics counters on a specific port, a 
range of ports, or all ports on a switch (slot).
To reset Layer 2 statistics on an entire slot, enter interfaces followed by the slot number and no l2 
statistics
. For example, to reset all Layer 2 statistics counters on slot 2, enter:
-> interfaces 2 no l2 statistics
To reset Layer 2 statistics on a single port, enter interfaces followed by the slot number, a slash (/), the 
port number, and no l2 statistics. For example, to reset all Layer 2 statistics counters on port 3 on slot 2, 
enter:
-> interfaces 2/3 no l2 statistics
To reset Layer 2 statistics on a range of ports, enter interfaces followed by the slot number, a slash (/), the 
first port number, a hyphen (-), the last port number, and no l2 statistics. For example, to reset all Layer 2 
statistics counters on ports 1 through 3 on slot 2, enter:
-> interfaces 2/1-3 no l2 statistics
The interfaces no l2 statistics command also includes an optional cli parameter. When this parameter is 
specified, only those statistics that are maintained by the switch CLI are cleared; SNMP values are not 
cleared and continue to maintain cumulative totals. For example:
-> interfaces 2/1-3 no l2 statistics cli
Note that when the cli parameter is not specified (the default), both CLI and SNMP statistics are cleared.
Note. The 
, and 
 commands can 
be used to display Layer 2 statistics (e.g., input and output errors, deferred frames received, unicast pack-
ets transmitted). For information on using these commands, see the OmniSwitch CLI Reference Guide.
Enabling and Disabling Interfaces
command is used to enable (the default) or disable a specific port, a range of ports, 
or all ports on an entire switch (NI module).
To enable or disable an entire slot, enter interfaces followed by the slot number, admin, and the desired 
administrative setting (either up or down). For example, to administratively disable slot 2, enter:
-> interfaces 2 admin down
To enable or disable a single port, enter interfaces followed by the slot number, a slash (/), the port 
number, admin, and the desired administrative setting (either up or down). For example, to administra-
tively disable port 3 on slot 2, enter:
-> interfaces 2/3 admin down
To enable or disable a range of ports, enter interfaces followed by the slot number, a slash (/), the first 
port number, a hyphen (-), the last port number, admin, and the desired administrative setting (either up 
or down). For example, to administratively disable ports 1 through 3 on slot 2, enter:
-> interfaces 2/1-3 admin down