- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-Ethernet Interface Commands | 242.67 KB |
Contents
Ethernet interface configuration commands
General Ethernet interface and subinterface configuration commands
Layer 2 Ethernet interface configuration commands
Layer 3 Ethernet interface and subinterface configuration commands
|
NOTE: · The switch does not support Layer 3 Ethernet interfaces, Layer 3 Ethernet subinterfaces, Layer 3 aggregate interfaces, and Layer 3 aggregate subinterfaces when it works in standard mode. For more information about system working modes, see Fundamentals Configuration Guide. · The switch operates in IRF or standalone (the default) mode. For more information about the IRF mode, see IRF Configuration Guide. · For more information about the models of the Ethernet interface cards mentioned in the document, see the installation guide. |
General Ethernet interface and subinterface configuration commands
alarm-detect
Syntax
alarm-detect { rdi | sd | sf } action link-down
undo alarm-detect { rdi | sd | sf }
Views
Ten-GigabitEthernet interface view
Default level
2: System level
Parameters
rdi: Specifies the Remote Defect Indication (RDI) alarm threshold.
sd: Specifies the Signal Degrade (SD) alarm threshold.
sf: Specifies the Signal Fail (SF) alarm threshold.
action: Specifies the protective action when the detected signals exceed the specified alarm threshold.
link-down: Brings down the link of the interface.
Description
Use the alarm-detect command to configure the protective action for alarms when the 10-GE interface is operating in WAN mode.
Use the undo alarm-detect command to restore the default.
By default, no protective action is specified for alarms.
This command is not available on a 10-GE interface operating in LAN mode.
Related commands: threshold and port-mode.
|
NOTE: This command is available only on a 10-GE interface operating in WAN mode. |
Examples
# Configure the system to bring down the link of interface 10GE 4/1/1 when the detected signals exceed the specified alarm threshold on the interface.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet4/1/1
[Sysname-Ten-GigabitEthernet4/1/1] port-mode wan
[Sysname-Ten-GigabitEthernet4/1/1] alarm-detect sd action link-down
bandwidth
Syntax
bandwidth bandwidth-value
undo bandwidth
View
Ethernet interface view
Default level
2: System level
Parameters
bandwidth-value: Sets the intended bandwidth, ranging from 1 to 4,294,967,295 kbps.
Description
Use the bandwidth command to set the intended bandwidth for an Ethernet interface.
Use the undo bandwidth command to cancel the configuration.
You can obtain the intended bandwidth of an interface by querying the ifspeed value of the MIB node with third-party software.
The intended bandwidth is used by network management systems for monitoring bandwidth, but does not affect the actual bandwidth of the interface.
Examples
# Set the intended bandwidth to 10,000 kbps for interface GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] bandwidth 10000
combo enable
Syntax
combo enable { copper | fiber }
View
Ethernet interface view (combo interface)
Default level
2: System level
Parameters
copper: Activates the copper combo port.
fiber: Activates the fiber combo port.
Description
Use the combo enable command to activate the copper or fiber combo port.
By default, the copper combo port is activated.
Combo interfaces are logical interfaces. A combo interface comprises one fiber combo port and one copper combo port. The two ports cannot work simultaneously. If one port is enabled, the other port is automatically disabled.
In an IRF fabric, if only one physical interface is bound to the IRF port, and the physical interface is a combo interface, you cannot use the combo enable command to activate the corresponding combo interface on the slave device.
Examples
# Activate the copper combo port of combo interface GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] combo enable copper
# Activate the fiber combo port of combo interface GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] combo enable fiber
default
Syntax
default
View
Ethernet interface view, Ethernet subinterface view
Default level
2: System level
Parameters
None
Description
Use the default command to restore the default settings for an Ethernet interface or subinterface.
This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. You can use the display this command in interface view to check for these commands, and perform their undo forms or follow command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message to resolve the problem.
|
CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network. |
Examples
# Restore the default settings for interface GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] default
This command will restore the default settings. Continue? [Y/N]:y
# Restore the default settings for subinterface GigabitEthernet 3/0/1.1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1.1
[Sysname-GigabitEthernet3/0/1.1] default
This command will restore the default settings. Continue? [Y/N]:y
description
Syntax
description text
undo description
View
Ethernet interface view, Ethernet subinterface view
Default level
2: System level
Parameters
text: Specifies the interface description, a string of 1 to 80 characters. The string can include case-sensitive letters, digits, special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /), spaces, and other Unicode characters and symbols.
|
NOTE: · Each Unicode character takes the space of two regular characters. · To use Unicode characters or symbols in an interface description, install the specific input method editor and log in to the switch through remote login software that supports the character type. · When the length of a description string reaches or exceeds the maximum line width on the terminal software, the software starts a new line, possibly breaking a Unicode character into two. As a result, garbled characters may be displayed at the end of a line. |
Description
Use the description command to change the description of the interface.
Use the undo description command to restore the default.
The default description of an interface is the interface name plus Interface. For example, GigabitEthernet3/0/1 Interface.
Related commands: display interface.
Examples
# Change the description of interface GigabitEthernet 3/0/1 to lanswitch-interface.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] description lanswitch-interface
display counters
Syntax
display counters { inbound | outbound } interface [ interface-type ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
inbound: Displays inbound traffic statistics.
outbound: Displays outbound traffic statistics.
interface-type: Specifies an interface type. If the RPR interface type is specified, broadcast and multicast packets are regarded as multicast packets.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display counters command to display traffic statistics for interfaces.
· If an interface type is specified, this command displays traffic statistics for all interfaces of the specified type.
· If no interface type is specified, this command displays traffic statistics for all interfaces that have traffic counters.
Examples
# Display inbound traffic statistics for all GigabitEthernet interfaces.
<Sysname> display counters inbound interface gigabitethernet
Interface Total(pkts) Broadcast(pkts) Multicast(pkts) Err(pkts)
GE3/0/1 100 100 0 0
GE3/0/2 0 0 0 0
GE3/0/3 Overflow Overflow Overflow Overflow
GE3/0/4 0 0 0 0
Overflow: more than 14 decimal digits(7 digits for column "Err").
--: not supported.
Table 1 Output description
Field |
Description |
Interface |
Abbreviated interface name. |
Total (pkts) |
Total number of packets received or sent through the interface. |
Broadcast (pkts) |
Total number of broadcast packets received or sent through the interface. On an RPR physical port, all broadcast and multicast packets received or sent are displayed as multicast packets. |
Multicast (pkts) |
Total number of multicast packets received or sent through the interface. On an RPR physical port, all broadcast and multicast packets received or sent are displayed as multicast packets. |
Err (pkts) |
Total number of error packets received or sent through the interface. |
Overflow: more than 14 decimal digits(7 digits for column "Err"). |
The command displays Overflow in any of the following cases: · The data length of an error statistic is greater than 7 decimal digits. · The data length of a non-error statistic is greater than 14 decimal digits. |
--: not supported. |
The statistical item is not supported. |
display counters rate
Syntax
display counters rate { inbound | outbound } interface [ interface-type ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
inbound: Displays inbound traffic rate statistics.
outbound: Displays outbound traffic rate statistics.
interface-type: Specifies an interface type. If the RPR interface type is specified, broadcast and multicast packets are regarded as multicast packets.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display counters rate command to display traffic rate statistics over the last sampling interval.
The statistics cover only interfaces in up state.
· If an interface type is specified, the command displays traffic rate statistics for all up interfaces of the specified type.
· If no interface type is specified, the command displays traffic rate statistics for all up interfaces that have traffic counters.
The default sampling interval is 300 seconds. You can change it with the flow-interval command.
Related commands: flow-interval.
Examples
# Display the inbound traffic rate statistics for all GigabitEthernet interfaces.
<Sysname> display counters rate inbound interface gigabitethernet
Interface Total(pkts/sec) Broadcast(pkts/sec) Multicast(pkts/sec)
GE3/0/1 200 100 100
GE3/0/2 300 200 100
GE3/0/3 300 200 100
Overflow: more than 14 decimal digits.
--: not supported.
Table 2 Output description
Field |
Description |
Interface |
Abbreviated interface name. |
Total (pkts/sec) |
Average rate (in packets per second) of receiving or sending packets during the sampling interval. |
Broadcast (pkts/sec) |
Average rate (packets per second) of receiving or sending broadcast packets during the sampling interval. On an RPR physical port, all broadcast and multicast packets received or sent are displayed as multicast packets. |
Multicast (pkts/sec) |
Average rate (packets per second) of receiving or sending multicast packets during the sampling interval. On an RPR physical port, all broadcast and multicast packets received or sent are displayed as multicast packets. |
Overflow: more than 14 decimal digits. |
The command displays Overflow in any of the following cases: · The data length of an error statistic is greater than 7 decimal digits. · The data length of a non-error statistic is greater than 14 decimal digits. |
--: not supported. |
The statistical item is not supported. |
display interface
Syntax
display interface [ interface-type ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface interface-type { interface-number | interface-number.subnumber } [ brief ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
interface-number.subnumber: Specifies a subinterface number, where interface-number is the number of a Layer 3 Ethernet interface, and subnumber is the number of a subinterface created under the interface. The subnumber argument ranges from 1 to 4093.
brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.
down: Displays information about interfaces in down state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display interface command to display Ethernet interface information.
· If no interface type is specified, this command displays information about all interfaces.
· If an interface type is specified but no interface number or subinterface number is specified, this command displays information about all interfaces of that type.
Related commands: interface.
Examples
1. # Display information about Layer 3 interface GigabitEthernet3/0/1.
<Sysname> display interface gigabitethernet 3/0/1
GigabitEthernet3/0/1 current state: UP
Line protocol current state: UP
Description: GigabitEthernet5/0/2 Interface
The Maximum Transmit Unit is 1500
Link delay is 1(sec)
Internet Address is 192.168.10.2/24 Primary
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 00e0-fc00-96ad
IPv6 Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 00e0-fc00-96ad
Media type is twisted pair, Port hardware type is 1000_BASE_T
Loopback is not set
1000Mbps-speed mode, full-duplex mode
Last 300 seconds input: 0 packets/sec 0 bytes/sec 0%
Last 300 seconds output: 0 packets/sec 0 bytes/sec 0%
Input (total): 24 packets, 2264 bytes
2 broadcasts, 0 multicasts, - pauses
Input (normal): 24 packets, 2264 bytes
2 broadcasts, 0 multicasts, 0 pauses
Input: 0 input errors, 0 runts, 0 giants, 0 throttles
0 CRC, 0 frame, 0 overruns, - aborts
- ignored, - parity errors
Output (total): 27 packets, 2526 bytes
2 broadcasts, 0 multicasts, - pauses
Output (normal): 27 packets, 2526 bytes
2 broadcasts, 0 multicasts, 0 pauses
Output: 0 output errors, - underruns, - buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
- lost carrier, - no carrier
Peak value of input: 0 bytes/sec, at 2011-04-02 08:46:44
Peak value of output: 0 bytes/sec, at 2011-04-02 08:46:44
2. # Display information about Layer 3 interface GigabitEthernet 3/0/1, which includes only the interface name and traffic statistics.
<Sysname> display interface gigabitethernet 3/0/1 | include current state:|bytes
GigabitEthernet3/0/1 current state: UP
Line protocol current state: UP
Last 300 seconds input: 0 packets/sec 0 bytes/sec 0%
Last 300 seconds output: 0 packets/sec 0 bytes/sec 0%
Input (total): 51 packets, 4468 bytes
Input (normal): 51 packets, 4468 bytes
Output (total): 59 packets, 5074 bytes
Output (normal): 59 packets, 5074 bytes
Peak value of input: 0 bytes/sec, at 2011-04-02 08:46:44
Peak value of output: 0 bytes/sec, at 2011-04-02 08:46:44
Table 3 display interface command (in route mode) output description
Field |
Description |
|
GigabitEthernet3/0/1 current state |
The state of the Ethernet interface: · DOWN ( Administratively )—The Ethernet interface was shut down with the shutdown command. The interface is administratively down. · DOWN ( Link-Aggregation interface down )—The Ethernet interface is physically down because the aggregate interface corresponding to the aggregation group to which the Ethernet interface belongs was shut down with the shutdown command. · DOWN—The Ethernet interface is administratively up but physically down (possibly because no physical link is present or the link has failed). · UP—The Ethernet interface is both administratively and physically up. |
|
Line protocol current state |
The link layer state of the interface: · DOWN—The interface is physically down. · UP—The interface is physically up. |
|
Link delay |
Physical state change suppression interval on an Ethernet interface. |
|
Internet Address |
IP address of the interface. If the interface is not configured with an IP address, this field changes to Internet protocol processing : disabled, indicating that IP packets cannot be processed. |
|
IP Packet Frame Type |
Encapsulation format for IPv4 packets. |
|
IPv6 Packet Frame Type |
Encapsulation format for IPv6 packets. |
|
Media type |
The physical medium, twisted pair or optical fiber. |
|
loopback not set |
The loopback testing function is disabled. For an interface configured with the loopback external or loopback internal command, this field changes to loopback is set. |
|
Last clearing of counters |
Time when the reset counters interface command was last used to clear the interface statistics. If the command was never used since the switch was started, this field displays Never. |
|
Last 300 seconds input rate |
Average input rate over the last 300 seconds in Bps, bps, and pps. |
|
Last 300 seconds output rate |
Average output rate over the last 300 seconds in Bps, bps, and pps. |
|
Input |
Input packets. |
|
Output |
Output packets. |
|
Peak value of input |
Peak input rate, in Bps. |
|
Peak value of output |
Peak output rate, in Bps. |
3. # Display operating status information and related statistics of Layer 3 Ethernet subinterface GigabitEthernet 3/0/1.1.
<Sysname> display interface gigabitethernet 3/0/1.1
GigabitEthernet3/0/1.1 current state: DOWN
Line protocol current state: DOWN
Description: GigabitEthernet3/0/1.1 Interface
The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 00e0-fc00-96c1
IPv6 Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 00e0-fc00-96c1
Last clearing of counters: Never
Table 4 display interface command (in Layer 3 subinterface mode) output description
Field |
Description |
GigabitEthernet3/0/1.1 current state |
The state of the Ethernet subinterface: · DOWN ( Administratively )—The Ethernet subinterface was shut down with the shutdown command. The interface is administratively down. · DOWN ( Link-Aggregation interface down )—The Ethernet subinterface is physically down because the aggregate interface corresponding to the aggregation group to which the subinterface belongs was shut down with the shutdown command. · DOWN—The Ethernet subinterface is administratively up but physically down (possibly because no physical link is present or the link has failed). · UP—The Ethernet subinterface is both administratively and physically up. |
Line protocol current state |
The link layer state of the subinterface: · DOWN—The interface is physically down. · UP—The interface is physically up. |
Internet protocol processing |
Disabled indicates that IP packets cannot be processed. For an interface configured with an IP address, this field changes to Internet Address is. |
IP Packet Frame Type |
Encapsulation format for IPv4 packets. |
IPv6 Packet Frame Type |
Encapsulation format for IPv6 packets. |
Last clearing of counters |
Time when the reset counts interface command was last used to clear statistics on the subinterface. If the command was never used since the switch was started, this field displays Never. |
4. # Display operating status information and related statistics of Layer 2 interface GigabitEthernet 3/0/1.
<Sysname> display interface gigabitethernet 3/0/1
GigabitEthernet3/0/1 current state: UP
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 00e0-fc00-9512
Description: GigabitEthernet5/0/5 Interface
Loopback is not set
Media type is twisted pair, Port hardware type is 1000_BASE_T
100Mbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 9216
Broadcast MAX-ratio: 100%
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 3000
Mdi type: auto
Link delay is 1(sec)
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 3000
Port priority: 2
Last clearing of counters: Never
Peak value of input: 60 bytes/sec, at 2011-04-02 08:47:37
Peak value of output: 220 bytes/sec, at 2011-04-02 09:34:06
Last 300 seconds input: 0 packets/sec 0 bytes/sec 0%
Last 300 seconds output: 0 packets/sec 60 bytes/sec 0%
Input (total): 85 packets, 16384 bytes
0 unicasts, 78 broadcasts, 7 multicasts, - pauses
Input (normal): 85 packets, 16384 bytes
0 unicasts, 78 broadcasts, 7 multicasts, 0 pauses
Input: 0 input errors, 0 runts, 0 giants, 0 throttles
0 CRC, 0 frame, 0 overruns, - aborts
- ignored, - parity errors
Output (total): 23364 packets, 2953373 bytes
11 unicasts, 2705 broadcasts, 20648 multicasts, - pauses
Output (normal): 23364 packets, 2953373 bytes
11 unicasts, 2705 broadcasts, 20648 multicasts, 0 pauses
Output: 0 output errors, - underruns, - buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
- lost carrier, - no carrier
Table 5 display interface command (in bridge mode) output description
Field |
Description |
GigabitEthernet3/0/1 current state |
Physical state of the Ethernet interface. For more information, see Table 6. |
IP Packet Frame Type |
Ethernet framing format on the interface. |
100Mbps-speed mode |
The interface operates at 100 Mbps. This field displays Unknown-speed mode when the interface is disconnected from the peer that it will automatically negotiate a port speed with. |
full-duplex mode |
The interface operates in full duplex mode. This field displays link duplex type is force link when the duplex mode of the interface is fixed and not configurable. |
Link speed type is autonegotiation |
The interface will negotiate a speed with its peer. |
link duplex type is autonegotiation |
The interface will negotiate a duplex mode with its peer. |
Broadcast MAX-ratio |
Broadcast suppression threshold as a percentage of the interface transmission capability. When the threshold is exceeded, the interface drops broadcast packets. |
Unicast MAX-ratio |
Unknown unicast suppression threshold as a percentage of the interface transmission capability. When the threshold is exceeded, the interface drops unknown unicast packets. |
Multicast MAX-ratio |
Multicast suppression threshold as a percentage of the interface transmission capability. When the threshold is exceeded, the interface drops multicast packets. |
Allow jumbo frame to pass |
The maximum length of Ethernet frames that are allowed to pass through the interface. |
PVID |
Port VLAN ID. |
Mdi type |
Cable type. |
Link delay |
Physical state change suppression interval on an Ethernet interface. |
Port link-type |
Link type of the interface, which could be access, trunk, and hybrid. |
Tagged VLAN ID |
VLANs for which the interface sends packets without removing VLAN tags. |
Untagged VLAN ID |
VLANs for which the interface sends packets after removing VLAN tags. |
Last clearing of counters: Never |
Time when the reset counts interface command was last used to clear statistics on the interface. Never indicates that the reset counts interface command was never used since the switch was started. |
Peak value of input |
Peak value of inbound traffic, in Bps. |
Peak value of output |
Peak value of outbound traffic, in Bps. |
Last 300 seconds input: 0 packets/sec 0 bytes/sec Last 300 seconds output: 0 packets/sec 0 bytes/sec |
Average rate of input and output traffic over the last 300 seconds, in pps and Bps. |
Input (total): 85 packets, 16384 bytes 0 unicasts, 78 broadcasts, 7 multicasts, - pauses |
Inbound traffic statistics (in packets and bytes) for the interface. All inbound normal and abnormal packets (including unicast, broadcast, and multicast), and pause frames were counted. |
Input (normal): 85 packets, 16384 bytes 0 unicasts, 78 broadcasts, 7 multicasts, 0 pauses |
Inbound normal traffic (including unicast, broadcast, and multicast) and pause frame statistics (in packets and bytes) for the interface. |
input errors |
Inbound packets with errors. |
runts |
Inbound frames shorter than 64 bytes, in correct format, and containing valid CRCs. |
giants |
Inbound frames larger than the maximum frame length supported on the interface. · For an Ethernet interface that does not permit jumbo frames, giants refer to frames larger than 1536 bytes (without VLAN tags) or 1540 bytes (with VLAN tags). · For an Ethernet interface that permits jumbo frames, giants refer to frames larger than the maximum length of Ethernet frames that are allowed to pass through, which is configured when you configure jumbo frame support on the interface. |
throttles |
The number of times that the port shut down due to buffer or CPU overload. |
CRC |
Total number of inbound frames that had a normal length, but contained checksum errors. |
frame |
Total number of inbound frames that contained checksum errors and a non-integer number of bytes. |
overruns |
Number of packet drops because the input rate of the port exceeded the queuing capability. |
aborts |
Total number of illegal inbound packets: · Fragment frames—CRC error frames shorter than 64 bytes. The length can be an integral or non-integral value. · Jabber frames—CRC error frames greater than the maximum frame length supported on the Ethernet interface (with an integral or non-integral length). For an Ethernet interface that does not permit jumbo frames, jabber frames refer to CRC error frames greater than 1518 bytes (without VLAN tags) or 1522 bytes (with VLAN tags). For an Ethernet interface that permits jumbo frames, jabber frames refer to CRC error frames greater than the maximum length of Ethernet frames that are allowed to pass through the interface (which is configured when you configure jumbo frame support on the interface). · Symbol error frames—Frames that contained at least one undefined symbol. · Unknown operation code frames—Non-pause MAC control frames · Length error frames—Frames whose 802.3 length fields did not accord with the actual frame length (46 to 1500 bytes). |
ignored |
Number of inbound frames dropped because the receive buffer of the port ran low. |
parity errors |
Total number of frames with parity errors. |
Output (total): 23364 packets, 2953373 bytes 11 unicasts, 2705 broadcasts, 20648 multicasts, - pauses |
Outbound traffic statistics (in packets and bytes) for the port. All outbound normal and abnormal packets (including unicast, broadcast, and multicast), and pause frames were counted. |
Output (normal): 23364 packets, 2953373 bytes 11 unicasts, 2705 broadcasts, 20648 multicasts, 0 pauses |
Outbound normal traffic (including unicast, broadcast, and multicast) and pause frame statistics (in packets and bytes) for the interface. |
output errors |
Outbound packets with errors. |
underruns |
Number of packet drops because the output rate of the interface exceeded the output queuing capability. This is a low-probability hardware anomaly. |
buffer failures |
Number of packets dropped because the interface ran low on output buffers. |
aborts |
Number of packets that failed to be transmitted due to causes such as Ethernet collisions. |
deferred |
Number of frames that the interface deferred to transmit because of detected collisions. |
collisions |
Number of frames that the interface stopped transmitting because Ethernet collisions were detected during transmission. |
late collisions |
Number of frames that the interface deferred to transmit after transmitting their first 512 bits, because of detected collisions. |
lost carrier |
Number of carrier losses during transmission. This counter applies to serial WAN interfaces. |
no carrier |
Number of times that the port failed to detect the carrier when attempting to send frames. This counter applies to serial WAN interfaces. |
|
NOTE: If an output field is not available, a hyphen (-) is displayed. |
Table 6 Description on the possible physical states of a Layer 2 Ethernet interface
Field |
Description |
UP |
The interface is physically up. |
DOWN |
The interface is physically down because no physical connection exists (possibly reason: the network cable is disconnected or faulty). |
DOWN ( Administratively ) |
The interface is physically down because it was shut down with the shutdown command. To restore its physical state, use the undo shutdown command. |
DOWN ( Link-Aggregation interface down ) |
The interface is physically down because the aggregate interface corresponding to the aggregation group to which it belongs was shut down with the shutdown command. |
DOWN ( OAM connection failure ) |
The interface is physically down because an OAM connection fails to be established on it or the OAM connection is disconnected. |
DOWN ( DLDP connection failure ) |
The interface is physically down because a DLDP connection fails to be established on it or the DLDP connection is disconnected. |
DOWN ( Loopback detection-protected ) |
The interface is shut down because a loop is detected on it. |
DOWN ( BPDU-protected ) |
The interface is shut down by the BPDU guard function. |
DOWN ( Monitor-Link uplink down ) |
The interface is physically down because the uplink of the monitor link group to which it belongs is down. |
5. # Display brief information about all interfaces.
<Sysname> display interface brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
GE5/0/2 UP UP 192.168.10.2
M-E0/0/0 DOWN DOWN 192.168.1.250
NULL0 UP UP(s) --
Pos2/1/1 DOWN DOWN --
Pos2/1/2 DOWN DOWN --
Pos2/1/3 DOWN DOWN --
Pos2/1/4 DOWN DOWN --
RPRPOS2/2/1 DOWN DOWN --
RPRPOS2/2/2 DOWN DOWN --
Tun2 DOWN DOWN --
Vlan1 ADM DOWN --
Vlan3000 UP UP 192.168.3.2
The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Speed or Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
GE5/0/1 DOWN auto A A 1
GE5/0/3 UP 100M(a) F(a) A 3000
GE5/0/4 ADM auto A A 1
GE5/0/5 UP 100M(a) F(a) A 3000
GE5/0/6 ADM auto A A 1
GE5/0/7 UP 100M(a) F(a) A 3000
GE5/0/8 UP 1G(a) F(a) A 3000
GE5/0/9 UP 1G(a) F(a) A 3000
6. # Filter the brief interface information to display the line starting with the (s) string and all subsequent lines.
<Sysname> display interface brief | begin (s)
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
NULL0 UP UP(s) --
Pos2/1/1 DOWN DOWN --
Pos2/1/2 DOWN DOWN --
Pos2/1/3 DOWN DOWN --
Pos2/1/4 DOWN DOWN --
RPRPOS2/2/1 DOWN DOWN --
RPRPOS2/2/2 DOWN DOWN --
Tun2 DOWN DOWN --
Vlan1 ADM DOWN --
Vlan3000 UP UP 192.168.3.2
When you use the begin keyword to filter the output, the system only searches the Layer 3 interface list or the Layer 2 interface list. If regular-expression is on the Layer 3 interface list, the system only displays the line that contains regular-expression, and all subsequent lines on the Layer 3 interface list.
7. # Display brief information about all UP interfaces.
<Sysname> display interface brief | include UP
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
GE5/0/2 UP UP 192.168.10.2
NULL0 UP UP(s) --
Vlan3000 UP UP 192.168.3.2
The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Speed or Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
GE5/0/3 UP 100M(a) F(a) A 3000
GE5/0/5 UP 100M(a) F(a) A 3000
GE5/0/7 UP 100M(a) F(a) A 3000
GE5/0/8 UP 1G(a) F(a) A 3000
GE5/0/9 UP 1G(a) F(a) A 3000
8. # Display the brief information about all but GigabitEthernet interfaces.
<Sysname> display interface brief | exclude GE
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
M-E0/0/0 DOWN DOWN 192.168.1.250
NULL0 UP UP(s) --
Pos2/1/1 DOWN DOWN --
Pos2/1/2 DOWN DOWN --
Pos2/1/3 DOWN DOWN --
Pos2/1/4 DOWN DOWN --
RPRPOS2/2/1 DOWN DOWN --
RPRPOS2/2/2 DOWN DOWN --
Tun2 DOWN DOWN --
Vlan1 ADM DOWN --
Vlan3000 UP UP 192.168.3.2
9. # Display information about interfaces in down state and the relevant causes.
<Sysname> display interface brief down
The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
M-E0/0/0 DOWN Not connected
Pos2/1/1 DOWN Not connected
Pos2/1/2 DOWN Not connected
Pos2/1/3 DOWN Not connected
Pos2/1/4 DOWN Not connected
RPRPOS2/2/1 DOWN Not connected
RPRPOS2/2/2 DOWN Not connected
Tun2 DOWN Not connected
Vlan1 ADM Administratively
The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
GE5/0/1 DOWN Not connected
GE5/0/4 ADM Administratively
GE5/0/6 ADM Administratively
Table 7 display interface brief command output description
Field |
Description |
The brief information of interface(s) under route mode: |
The command displays brief information about Layer 3 interfaces. |
Link: ADM - administratively down; Stby - standby |
· ADM—The interface has been shut down by the network administrator. To recover its physical layer state, perform the undo shutdown command. · Stby—The interface is a standby interface. You can use the display standby state command to check the corresponding primary interface. |
Protocol: (s) - spoofing |
If the network layer protocol state of an interface is shown as UP, but its link is an on-demand link or not present at all, its protocol attribute includes the spoofing flag (an s in parentheses). This attribute is typical of interface Null 0 and the loopback interfaces. |
Interface |
Abbreviated interface name. |
Link |
Physical link state of the interface: · UP—The link is up. · DOWN—The link is physically down. · ADM—The link has been administratively shut down. To recover its physical state, perform the undo shutdown command. · Stby—The interface is a standby interface. |
Protocol |
Protocol connection state of the interface, which can be UP, DOWN, or UP(s). |
Description |
The interface description. Information displayed in this field is restricted by the space. To view the complete interface description, use the display interface command without specifying the brief keyword. |
The brief information of interface(s) under bridge mode: |
Brief information about Layer 2 interfaces. |
Speed or Duplex: (a)/A - auto; H - half; F - full |
If the speed of an interface is automatically negotiated, its speed attribute includes the auto negotiation flag, letter a in parentheses. If the duplex mode of an interface is automatically negotiated, its duplex mode attribute includes the following options: · (a)/A—Auto negotiation · H—Half negotiation · F—Full negotiation |
Type: A - access; T - trunk; H - hybrid |
Link type options for Ethernet interfaces. |
Speed |
Interface rate, in bps. |
Duplex |
Duplex mode of the interface: · A—Auto-negotiation · F—Full duplex · F(a)—Auto-negotiated full duplex · H—Half duplex · H(a)—Auto-negotiated half duplex |
Type |
Link type of the interface: · A—Access · H—Hybrid · T—Trunk |
PVID |
Port VLAN ID. |
Cause |
Causes for the physical state of an interface to be DOWN. For more information, see Table 8. |
Table 8 Causes for the physical state of an interface to be DOWN
Field |
Description |
Not connected |
No physical connection exists (possibly because the network cable is disconnected or faulty). |
Administratively |
The port was shut down with the shutdown command. To restore the physical state of the interface, use the undo shutdown command. |
Link-Aggregation interface down |
The aggregate interface corresponding to the aggregation group to which the interface belongs was shut down with the shutdown command. |
OAM connection failure |
OAM connection fails (possibly because the connection fails to be established or the connection is disconnected). |
DLDP connection failure |
DLDP connection fails (possibly because the connection fails to be established or the connection is disconnected). |
Loopback detection-protected |
The interface is shut down because a loop is detected on it. |
BPDU-protected |
The interface is shut down by the BPDU guard function. |
Monitor-Link uplink down |
The uplink of the monitor link group to which the interface belongs is down. |
duplex
Syntax
duplex { auto | full | half }
undo duplex
View
Ethernet interface view
Default level
2: System level
Parameters
auto: Sets the interface to operate in auto-negotiation mode.
full: Sets the interface to operate in full duplex mode.
half: Sets the interface to operate in half-duplex mode. This keyword is not available for the fiber combo ports.
Description
Use the duplex command to set the duplex mode for an Ethernet interface.
Use the undo duplex command to restore the default duplex mode of the Ethernet interface.
By default, Ethernet interfaces operate in auto-negotiation mode.
10-GE interfaces do not support this command.
Examples
# Configure the interface GigabitEthernet 3/0/1 to operate in full-duplex mode.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] duplex full
flag sdh
Syntax
flag { j0 | j1 } sdh value
undo flag { j0 | j1 } sdh
View
Ten-GigabitEthernet interface view
Default level
2: System level
Parameters
j0: Sets the regenerator section trace byte.
j1: Sets the path trace byte.
value: Specifies the value for the J0 or J1 byte, a string of 1 to 15 characters.
Description
Use the flag sdh command to set a value for the overhead byte J0 or J1 in Synchronous Digital Hierarchy (SDH) frames when the 10-GE interface works in WAN mode.
Use the undo flag sdh command to restore the default value of the J0 or J1 byte.
By default, the value of J0 and J1 bytes is all 0s.
Related commands: port-mode.
|
NOTE: This command is available only on 10-GE interfaces operating in WAN mode. |
Examples
# Set J0 bytes in SDH frames to Sysname for interface Ten-GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] port-mode wan
[Sysname-Ten-GigabitEthernet3/0/1] flag j0 sdh Sysname
flow-control
Syntax
flow-control
undo flow-control
View
Ethernet interface view
Default level
2: System level
Parameters
None
Description
Use the flow-control command to enable TxRx mode generic flow control on an Ethernet interface.
Use the undo flow-control command to disable generic flow control on the Ethernet interface.
TxRx mode flow control enables an Ethernet interface to receive common pause frames from its peer, and send common pause frames to notify its peer of congestions.
By default, generic flow control on an Ethernet interface is disabled.
With the flow-control command configured, an interface can both send and receive flow control frames:
· When congested, the interface sends a flow control frame to its peer.
· Upon receiving a flow control frame from the peer, the interface suspends sending packets.
To implement flow control on a link, you must enable the generic flow control function at both ends of the link.
Examples
# Enable TxRx mode generic flow control on the interface GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] flow-control
flow-interval
Syntax
flow-interval interval
undo flow-interval
View
Ethernet interface view
Default level
2: System level
Parameters
interval: Sets the statistics polling interval, in seconds. It ranges from 5 to 300 and must be a multiple of 5.
Description
Use the flow-interval command to set the interface statistics polling interval.
Use the undo flow-interval command to restore the default interval.
By default, the interface statistics polling interval is 300 seconds.
Examples
# Set the statistics polling interval to 100 seconds on GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] flow-interval 100
interface
Syntax
interface interface-type { interface-number | interface-number.subnumber }
View
System view
Default level
2: System level
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
interface-number.subnumber: Specifies a subinterface number, where interface-number is the number of a Layer 3 Ethernet interface, and subnumber is the number of a subinterface created under the interface. The subnumber argument ranges from 1 to 4093.
Description
Use the interface command to enter interface or subinterface view. With the interface-number.subnumber argument specified, if the subinterface identified by the argument does not exist, this command creates the subinterface first, and then enters subinterface view.
Examples
# Enter GigabitEthernet 3/0/1 interface view (assuming that the interface is a Layer 2 Ethernet interface).
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1]
# Create Ethernet subinterface GigabitEthernet 3/0/1.1 and enter GigabitEthernet 3/0/1.1 subinterface view (assuming that GigabitEthernet 3/0/1 is a Layer 2 Ethernet interface and the subinterface does not exist).
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1.1
[Sysname-GigabitEthernet3/0/1.1] port link-mode route
[Sysname-GigabitEthernet3/0/1] quit
[Sysname] interface gigabitethernet 3/0/1.1
[Sysname-GigabitEthernet3/0/1.1]
link-delay
Syntax
link-delay delay-time
undo link-delay
View
Ethernet interface view
Default level
2: System level
Parameters
delay-time: Sets the physical state change suppression interval on the Ethernet interface, ranging from 0 to 10 seconds.
Description
Use the link-delay command to set the physical state change suppression interval on an Ethernet interface.
Use the undo link-delay command to restore the default.
By default, the physical state change suppression interval on an Ethernet interface is 1 second.
Do not use this command on Ethernet interfaces with RRPP, MSTP, or Smart Link enabled.
Examples
# Set the physical state change suppression interval on GigabitEthernet 3/0/1 to 8 seconds.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] link-delay 8
link-delay enable trap updown
Syntax
link-delay enable trap updown
undo link-delay enable trap updown
View
Ethernet interface view
Default level
2: System level
parameters
None
Description
Use link-delay enable trap updown command to enable the damping function on an interface.
Use undo link-delay enable trap updown command to cancel the configuration.
By default, the damping function is disabled on interfaces.
When both the link-delay and link-delay enable trap updown commands are configured on an interface, the interface does not report link layer state changes to upper layer modules, but generates traps and logs, informing the user to take corresponding actions.
Related commands: link-delay.
Examples
# Enable the damping function on port GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface-range GigabitEthernet 3/0/1
[Sysname-GigabitEthernet 3/0/1] link-delay enable trap updown
loopback
Syntax
loopback { external | internal }
undo loopback
View
Ethernet interface view
Default level
2: System level
Parameters
external: Enables external loopback testing to test all on-chip functions related to Ethernet interfaces. This keyword is available on only the Ethernet interface cards supporting 10-G XFP transceiver modules.
internal: Enables internal loopback testing to test the hardware of Ethernet interfaces.
Description
Use the loopback command to enable loopback testing on an Ethernet interface.
Use the undo loopback command to disable loopback testing on an Ethernet interface.
By default, loopback testing is disabled on Ethernet interfaces.
|
NOTE: · Enable loopback testing for troubleshooting purposes, such as identifying an Ethernet problem. · You cannot perform internal or external loopback testing on an administratively down (ADM DOWN) port. On a physically down (DOWN) port, you can perform only internal loopback testing. · During loopback testing, the speed, duplex, mdi, and shutdown commands are not available. In addition, the port is operating in full duplex mode, regardless of its duplex configuration. After loopback testing is disabled, the duplex configuration of the port is restored. |
Examples
# Enable internal loopback testing on GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] undo shutdown
[Sysname-GigabitEthernet3/0/1] loopback internal
port-mode
Syntax
port-mode { lan | wan }
undo port-mode
View
Ten-GigabitEthernet interface view
Default level
2: System level
Parameters
lan: Configures the interface to operate in LAN mode. A port operating in this mode transmits Ethernet packets and connects an Ethernet network.
wan: Configures the interface to operate in WAN mode. A port operating in this mode transmits SDH packets and connects an SDH network. In addition, it supports point-to-point packet transmission only.
Description
Use the port-mode command to configure a 10-GE interface to work in LAN or WAN mode.
Use the undo port-mode command to restore the default.
By default, a 10-GE interface operates in LAN mode.
Examples
# Configure the interface Ten-GigabitEthernet 3/0/1 to operate in the WAN mode.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] port-mode wan
port link-mode
Syntax
port link-mode { bridge | route }
undo port link-mode
View
Ethernet interface view
Default level
2: System level
Parameters
bridge: Specifies the Layer 2 mode.
route: Specifies the Layer 3 mode.
Description
Use the port link-mode command to change the link mode of an Ethernet interface.
Use the undo port link-mode command to restore the default.
Depending on the layer at which the switch processes received data packets, Ethernet interfaces on the switch may operate either as Layer 2 Ethernet interfaces (in bridge mode), or as Layer 3 Ethernet interfaces (in route mode).
By default, Ethernet interfaces operate in Layer 2 (bridge) mode.
|
NOTE: · The switch supports this command when the working mode is not the standard mode. The switch works in standard mode by default. For more information about system working modes, see Fundamentals Configuration Guide. · After you change the link mode of an Ethernet interface, all the settings of the Ethernet interface are restored to their defaults under the new link mode. · Ethernet interfaces that do not support link mode switching include: Layer 3 Ethernet interfaces, link aggregation group member ports, reflector ports of a remote source mirroring group, Ethernet interface in IRF mode and with enhanced IRF enabled, and the internal ports of the LSR1IPS1A1/LSR1ACG1A1 cards. For more information about reflector ports, see Network Management and Monitoring Configuration Guide. For more information about the enhanced IRF mode, see IRF configuration guide. |
Examples
# Configure GigabitEthernet 3/0/1 to operate in Layer 2 mode.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] display this
#
interface GigabitEthernet3/0/1
port link-mode route
#
Return
The output shows that GigabitEthernet 3/0/1 operates in route mode.
[Sysname-GigabitEthernet3/0/1] port link-mode bridge
[Sysname-GigabitEthernet3/0/1] display this
#
interface GigabitEthernet3/0/1
port link-mode bridge
#
Return
The output shows that GigabitEthernet 3/0/1 is now operating in bridge mode.
|
NOTE: The display this command displays the configuration that takes effect in the current view. |
port link-mode interface-list
Syntax
port link-mode { bridge | route } interface-list
View
System view
Default level
2: System level
Parameters
bridge: Specifies the Layer 2 mode.
route: Specifies the Layer 3 mode.
interface-list: Specifies an Ethernet interface list, in the format of interface-type interface-number [ to interface-type interface-number ] &<1-10>, where &<1-10> indicates that you can specify up to 10 interfaces or interface ranges.
Description
Use the port link-mode interface-list command to change the link mode of Ethernet interfaces.
Depending on the layer at which the switch processes received data packets, Ethernet interfaces on the switch may operate either as Layer 2 Ethernet interfaces (in bridge mode), or as Layer 3 Ethernet interfaces (in route mode). You can use this command to change the operating mode of Ethernet interfaces in bulk.
By default, Ethernet interfaces operate in Layer 2 mode (bridge mode).
Configuring the port link-mode interface-list command in system view and configuring the port link-mode command in Ethernet interface view lead to the same result. The difference between the two commands is that the former changes the link mode of multiple Ethernet interfaces in batch, and the latter changes the link mode of one Ethernet interface at a time.
|
NOTE: · The switch supports this command when the working mode is not the standard mode. The switch works in standard mode by default. For more information about system working modes, see Fundamentals Configuration Guide. · After you change the link mode of an Ethernet interface, all the settings of the Ethernet interface are restored to their defaults under the new link mode. · The link mode configuration for an Ethernet interface in system view and that in interface view supersede each other, and the one configured last takes effect. |
Examples
# Configure GigabitEthernet 3/0/1 through GigabitEthernet 3/0/4 to operate in Layer 2 mode.
<Sysname> system-view
[Sysname] port link-mode bridge Gigabitethernet 3/0/1 to Gigabitethernet 3/0/4
# Configure GigabitEthernet 3/0/1 through GigabitEthernet 3/0/4 to operate in Layer 3 mode.
<Sysname> system-view
[Sysname] port link-mode route GigabitEthernet 3/0/1 to GigabitEthernet 3/0/5
reset counters interface
Syntax
reset counters interface [ interface-type [ interface-number ] ]
View
User view
Default level
2: System level
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
Description
Use the reset counters interface command to clear the Ethernet interface statistics.
Before collecting traffic statistics for a specific period of time on an interface, clear the old statistics first.
· If no interface type is specified, this command clears statistics for all interfaces.
· If only the interface type is specified, this command clears statistics for all interfaces of that type.
· If both the interface type and number are specified, this command clears statistics for the specified interface.
Examples
# Clear the statistics of GigabitEthernet 3/0/1.
<Sysname> reset counters interface gigabitethernet 3/0/1
shutdown
Syntax
shutdown
undo shutdown
View
Ethernet interface view, Ethernet subinterface view, port group view
Default level
2: System level
Parameters
None
Description
Use the shutdown command to shut down an Ethernet interface or subinterface.
Use the undo shutdown command to bring up an Ethernet interface or subinterface.
By default, Ethernet interfaces and subinterfaces are in down state.
To shut down or bring up all Ethernet interfaces in a port group, execute this command in port group view.
You may need to shut down and then bring up an Ethernet interface to activate configuration changes such as the speed or duplex mode changes.
Examples
# Shut down and then bring up interface GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] shutdown
[Sysname-GigabitEthernet3/0/1] undo shutdown
# Shut down and then bring up Ethernet subinterface GigabitEthernet 3/0/1.1.
<Sysname> system-view
[Sysname] interface gigabitethernet3/0/1.1
[Sysname-GigabitEthernet3/0/1.1] shutdown
[Sysname-GigabitEthernet3/0/1.1] undo shutdown
# Shut down all member ports in the port group named group1.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group-manual-group1] shutdown
speed
Syntax
speed { 10 | 100 | 1000 | auto }
undo speed
View
Ethernet interface view
Default level
2: System level
Parameters
10: Sets the interface speed to 10 Mbps.
100: Sets the interface speed to 100 Mbps.
1000: Sets the interface speed to 1000 Mbps.
auto: Enables the interface to negotiate a speed with its peer.
Description
Use the speed command to set the speed of an Ethernet interface.
Use the undo speed command to restore the default.
By default, the speed on an Ethernet interface is determined through auto-negotiation.
For a copper Ethernet port, use the speed command to set its speed to match the speed of the peer interface.
For a fiber port, use the speed command to set its speed to match the rate of a pluggable optical transceiver.
|
NOTE: · You cannot configure the rate of a 10-GE interface. · A 1000-Mbps Ethernet interface can only operate at 1000 Mbps or in auto-negotiation mode. |
Examples
# Configure GigabitEthernet 3/0/1 to operate at 100 Mbps.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] speed 100
threshold
Syntax
threshold { sd | sf } value
undo threshold { sd | sf }
Views
Ten-GigabitEthernet interface view
Default level
2: System level
Parameters
sd: Specifies the Signal Degrade (SD) alarm threshold.
sf: Specifies the Signal Fail (SF) alarm threshold.
value: Specifies the alarm threshold in the form of 10e-X. X is an integer between 3 and 9. The X value of the SD should be larger than the X value of the SF.
Description
Use the threshold command to configure the SD or SF threshold when the 10-GE interface is operating in WAN mode.
Use the undo threshold command to restore the default.
By default, the SD threshold value is 10e-6 (X is 6); the SF threshold value is 10e-4 (X is 4).
SD and SF alarms are used to indicate current line performance. They are generated when the receiving end detects a certain amount of bit errors. The bit error rate threshold of SF is higher than that of SD. When a small amount of errors occur, SD alarms are generated; when the error rate increases to a certain level, SF alarms are generated, indicating line performance has been degrading seriously. The SD alarm threshold should be smaller than the SF alarm threshold.
Related commands: alarm-detect and port-mode.
|
NOTE: This command is available only on a 10-GE interface operating in WAN mode. |
Examples
# Set the SD alarm threshold to 10e-5 (0.0001) for interface Ten-GigabitEthernet 4/1/1.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet4/1/1
[Sysname-Ten-GigabitEthernet4/1/1] port-mode wan
[Sysname-Ten-GigabitEthernet4/1/1] threshold sd 5
Layer 2 Ethernet interface configuration commands
broadcast-suppression
Syntax
broadcast-suppression { kbps max-kbps | pps max-pps }
undo broadcast-suppression
View
Layer 2 Ethernet interface view, port group view
Default level
2: System level
Parameters
kbps max-kbps: Specifies the maximum number of kilobits of broadcast traffic that the Ethernet interface can forward per second. For a GE port, the value ranges from 1 to 1,000,000 kbps. For a 10-GE port, the value ranges from 1 to 10,000,000 kbps.
pps max-pps: Specifies the maximum number of broadcast packets that the Ethernet interface can forward per second. For a GE port, the value ranges from 1 to 1,488,100 pps. For a 10-GE port, the value ranges from 1 to 14,881,000 pps.
Description
Use the broadcast-suppression command to set the broadcast suppression threshold on one or multiple Ethernet interfaces.
Use the undo broadcast-suppression command to restore the default.
By default, Ethernet interfaces do not suppress broadcast traffic.
· If you execute this command in Ethernet interface view, the configuration takes effect only on the interface.
· If you execute this command in port group view, the configuration takes effect on all ports in the port group.
When broadcast traffic exceeds the broadcast suppression threshold, the interface discards broadcast packets until the broadcast traffic drops below the threshold.
Examples
# Set the broadcast suppression threshold to 2000 pps on GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] broadcast-suppression pps 2000
display port-group manual
Syntax
display port-group manual [ all | name port-group-name ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
2: System level
Parameters
all: Displays information about all port groups.
name port-group-name: Specifies the name of a port group, a string of 1 to 32 characters.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display port-group manual command to display information about port groups.
· If the all keyword is specified, this command displays the name and member Ethernet interfaces of each port group on the switch.
· If a port group is specified, this command displays its name and member Ethernet interfaces.
· If you do not specify the all keyword or any port group name, the command displays the name of each port group on the switch.
Examples
# Display detailed information about all port groups.
<Sysname> display port-group manual all
Member of group1:
GigabitEthernet3/0/1 GigabitEthernet3/0/2 GigabitEthernet3/0/3
GigabitEthernet3/0/4 GigabitEthernet3/0/5 GigabitEthernet3/0/6
group-member
Syntax
group-member interface-list
undo group-member interface-list
View
Port group view
Default level
2: System level
Parameters
interface-list: Specifies an Ethernet interface list, in the form of interface-type interface-number [ to interface-type interface-number ] &<1-10>, where &<1-10> indicates that you can specify up to 10 interfaces or interface ranges.
Description
Use the group-member command to assign Ethernet interfaces to a port group.
Use the undo group-member command to remove Ethernet interfaces from the port group.
By default, a port group does not contain any member ports.
If you use the group-member interface-type interface-start-number to interface-type interface-end-number command to add multiple ports in batch to the specified port group, make sure that all these ports are of the same type and on the same interface card, and the interface-end-number argument must be greater than the interface-start-number argument.
Examples
# Assign interface GigabitEthernet 3/0/1 to the manual port group named group1.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group-manual-group1] group-member gigabitethernet 3/0/1
jumboframe enable
Syntax
jumboframe enable [ value ]
undo jumboframe enable
View
Layer 2 Ethernet interface view, port group view
Default level
2: System level
Parameters
value: Sets the maximum length of Ethernet frames that are allowed to pass through, ranging from 1552 to 9216 bytes. This argument ranges from 1552 to 8168 for the interface on an LST1XP16LEB1 or LST1XP16LEC1 card.
Description
Use the jumboframe enable command to allow jumbo frames within the specified length to pass through one or multiple Ethernet interfaces.
Use the undo jumboframe enable command to prevent jumbo frames from passing through one or multiple Ethernet interfaces.
By default, the switch allows jumbo frames within 9216 bytes to pass through Ethernet interfaces.
· If you execute this command in Ethernet interface view, the configuration takes effect only on the interface.
· If you execute this command in port group view, the configuration takes effect on all ports in the port group.
Examples
# Specify the maximum length of Ethernet frames that are allowed to pass through GigabitEthernet 3/0/1 as 1556 bytes.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] jumboframe enable 1556
mdi
Syntax
mdi { across | auto | normal }
undo mdi
View
Layer 2 Ethernet interface view
Default level
2: System level
Parameters
across: Sets the MDI mode to across. In this mode, pins 1 and 2 of the port are receive pins, and pins 3 and 6 are transmit pins.
auto: Sets the MDI mode to auto. In this mode, the port negotiates pin roles with its peer.
normal: Sets the MDI mode to normal. In normal mode, pins 1 and 2 of the port are transmit pins, and pins 3 and 6 are receive pins.
Description
Use the mdi command to configure the MDI mode of a copper Ethernet interface.
Use the undo mdi command to restore the default.
By default, Ethernet interfaces operate in auto MDI mode.
|
NOTE: This command is not applicable to optical ports. |
Examples
# Set GigabitEthernet 3/0/1 to operate in across MDI mode.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] mdi across
multicast-suppression
Syntax
multicast-suppression { kbps max-kbps | pps max-pps }
undo multicast-suppression
View
Layer 2 Ethernet interface view, port group view
Default level
2: System level
Parameters
kbps max-kbps: Specifies the maximum number of kilobits of multicast traffic that the Ethernet interface can forward per second. For a GE port, the value ranges from 1 to 1,000,000 kbps. For a 10-GE port, the value ranges from 1 to 10,000,000 kbps.
pps max-pps: Specifies the maximum number of multicast packets that the Ethernet interface can forward per second. For a GE port, the value ranges from 1 to 1,488,100 pps. For a 10-GE port, the value ranges from 1 to 14,881,000 pps.
Description
Use the multicast-suppression command to set the multicast suppression threshold on an Ethernet interface or a group of Ethernet interfaces.
Use the undo multicast-suppression command to restore the default.
By default, Ethernet interfaces do not suppress multicast traffic.
· If you execute this command in Ethernet interface view, the configurations take effect only on the interface.
· If you execute this command in port group view, the configurations take effect on all ports in the port group.
When multicast traffic exceeds the threshold, the interface discards multicast packets until the multicast traffic drops below the threshold.
Examples
# Set the multicast suppression threshold to 2000 pps on GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] multicast-suppression pps 2000
port connection-mode
Syntax
port connection-mode { extend | normal }
undo port connection-mode
View
Layer 2 Ethernet interface view
Default level
2: System level
Parameters
extend: Sets the connection mode of the Ethernet interface to extended.
normal: Sets the connection mode of the Ethernet interface to normal.
Description
Use the port connection-mode command to set the connection mode of an interface.
Use the undo port connection-mode command to restore the default.
By default, the connection mode of an interface is normal.
To ensure normal communication when you configure an OAA application, set the interface connecting the switch and the OAA card, the internal interface, to operate in extended connection mode.
You can use this command only on the internal interface of the LSR1IPS1A1, LSR1NSM1A1, or LSR1ACG1A1 card.
Examples
# Set the connection mode of Ten-GigabitEthernet 3/0/1 to extended.
<Sysname> system-view
<Sysname> interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] port connection-mode extend
port-group manual
Syntax
port-group manual port-group-name
undo port-group manual port-group-name
View
System view
Default level
2: System level
Parameters
port-group-name: Sets the port group name, a string of 1 to 32 characters.
Description
Use the port-group manual command to create a port group and enter port group view.
Use the undo port-group manual command to remove a port group.
By default, no port group exists.
Examples
# Create port group group1.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group-manual-group1]
port up-mode
Syntax
port up-mode
undo port up-mode
View
Ethernet interface view
Default level
2: System level
Parameter
None
Description
Use the port up-mode command to forcibly bring up an Ethernet Interface.
Use the undo port up-mode command to restore the default.
By default, the interface is not forcibly brought up.
|
NOTE: · Only the general GE fiber port and the 10-GE fiber port operating in LAN mode can be forcibly brought up. Copper ports and combo interfaces do not support this function. · The port up-mode command cannot be used together with any of the shutdown, speed, duplex, or loopback commands. · When a fiber-to-copper media converter, 100/1000-Mbps transceiver module, or 100-Mbps transceiver module is inserted into a fiber GE port forcibly brought up, traffic cannot be forwarded properly; when a copper transceiver module is inserted into the 10GE fiber port forcibly brought up, the traffic cannot be forwarded properly. To enable such an interface to forward traffic properly, use the undo port up-mode command on the interface. |
Examples
# Forcibly bring up fiber port GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] port up-mode
speed auto
Syntax
speed auto { 10 | 100 | 1000 } *
undo speed
View
100-Mbps or Gigabit Layer 2 Ethernet interface view
Default level
2: System level
Parameters
10: Sets 10 Mbps as an option for speed auto negotiation.
100: Sets 100 Mbps as an option for speed auto negotiation.
1000: Sets 1000 Mbps as an option for speed auto negotiation.
Description
Use the speed auto command to set options for speed auto negotiation.
Use the undo speed command to restore the default.
By default, interface rate options for auto negotiation include 10 Mbps, 100 Mbps, and 1000 Mbps.
The speed command and the speed auto command supersede each other, and the one configured last takes effect.
For example, if you configure speed 100 after configuring speed auto 100 1000 on an interface, the interface speed is set to 100 Mbps by force without negotiation. If you configure speed auto 100 1000 after configuring speed 100 on the interface, the interface negotiates with its peer, and the negotiated speed is either 100 Mbps or 1000 Mbps.
|
NOTE: · The speed auto command is available only for copper Ethernet interfaces. · To avoid negotiation failure, make sure that at least one speed option is supported at both ends. |
Examples
# Configure the port GigabitEthernet 3/0/1 to use 10 Mbps and 1000 Mbps for speed negotiation.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] speed auto 10 1000
unicast-suppression
Syntax
unicast-suppression { kbps max-kbps | pps max-pps }
undo unicast-suppression
View
Layer 2 Ethernet interface view, port group view
Default level
2: System level
Parameters
kbps max-kbps: Specifies the maximum number of kilobits of unknown unicast traffic that the Ethernet interface can forward per second. For a GE port, the value ranges from 1 to 1,000,000 kbps. For a 10-GE port, the value ranges from 1 to 10,000,000 kbps.
pps max-pps: Specifies the maximum number of unknown unicast packets that the Ethernet interface can forward per second. For a GE port, the value ranges from 1 to 1,488,100 pps. For a 10-GE port, the value ranges from 1 to 14,881,000 pps.
Description
Use the unicast-suppression command to set the unknown unicast suppression threshold on an Ethernet interface or a group of Ethernet interfaces.
Use the undo unicast-suppression command to restore the default.
By default, Ethernet interfaces do not suppress unknown unicast traffic.
· If you execute this command in Ethernet interface, the configurations take effect only on the interface.
· If you execute this command in port group view, the configurations take effect on all ports in the port group.
When unknown unicast traffic exceeds the threshold you configure, the system discards unknown unicast packets until the unknown unicast traffic drops below the threshold.
Examples
# Set the unknown unicast suppression threshold to 2000 pps on GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] unicast-suppression pps 2000
Layer 3 Ethernet interface and subinterface configuration commands
mtu
Syntax
mtu size
undo mtu
View
Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view
Default level
2: System level
Parameters
size: Sets the maximum transmission unit (MTU) in bytes, which ranges from 64 to 9198.
|
NOTE: Do not set the size argument to a value greater than 8146 on the interface of an LST1XP16LEB1 or LST1XP16LEC1 card. |
Description
Use the mtu command to set the MTU for an Ethernet interface or subinterface.
Use the undo mtu command to restore the default.
By default, the MTU of an Ethernet interface or subinterface is 1500 bytes.
Examples
# Set the MTU to 1430 bytes for the Layer 3 Ethernet interface GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] port link-mode route
[Sysname-GigabitEthernet3/0/1] mtu 1430
# Set the MTU to 1680 bytes for the Layer 3 Ethernet subinterface GigabitEthernet 3/0/1.1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1.1
[Sysname-GigabitEthernet3/0/1.1] mtu 1680