- Table of Contents
-
- 01-Access Volume
- 01-CPOS Interface Commands
- 02-POS Interface Commands
- 03-Ethernet Interface Commands
- 04-WAN Interface Commands
- 05-Frame Relay Commands
- 06-HDLC Commands
- 07-PPP Commands
- 08-Logical Interface Commands
- 09-Modem Management Commands
- 10-ATM Interface Commands
- 11-ATM Commands
- 12-E-CPOS Interface Commands
- 13-VLAN Termination Commands
- 14-Port Mirroring Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
03-Ethernet Interface Commands | 99.6 KB |
Table of Contents
1 Ethernet Interface Configuration Commands
General Ethernet Interface/Subinterface Configuration Commands
Layer 3 Ethernet Interface/Subinterface Configuration Commands
VE Interface Configuration Commands
display interface virtual-ethernet
General Ethernet Interface/Subinterface Configuration Commands
combo enable
Syntax
combo enable { copper | fiber }
View
Ethernet interface view (the port should be a Combo Port)
Default Level
2: System level
Parameters
copper: Specifies the Combo port to operate as an electrical port.
fiber: Specifies the Combo port to operate as an optical port.
Description
Use the combo enable command to specify the state of a Combo port. When one port is enabled, the other will be automatically disabled.
By default, a Combo port operates as an electrical port.
Examples
# Specify GigabitEthernet 1/0 to operate as an electrical port (assuming that the port is a Combo port).
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0
[Sysname-GigabitEthernet1/0] combo enable copper
# Specify GigabitEthernet 1/0 to operate as an optical port (assuming that the port is a Combo port).
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0
[Sysname-GigabitEthernet1/0] combo enable fiber
description
Syntax
description text
undo description
View
Ethernet interface view, Ethernet subinterface view
Default Level
2: System level
Parameters
text: Description of an Ethernet interface, a string of 1 to 80 characters. Currently, the device supports the following types of characters or symbols: standard English characters (numbers and case-sensitive letters), special English characters, spaces, and other characters or symbols that conform to the Unicode standard.
l A port description can be the mixture of English characters and other Unicode characters. The mixed description cannot exceed the specified length.
l To use a type of Unicode characters or symbols in a port description, you need to install the corresponding Input Method Editor (IME) and log in to the device through remote login software that supports this character type.
l Each Unicode character or symbol (non-English characters) takes the space of two regular characters. 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 configure the description of the current Ethernet interface/subinterface.
Use the undo description command to restore the default.
By default, the description of an Ethernet interface is the interface name followed by the word interface, GigabitEthernet1/0 Interface for example.
Related commands: display interface.
Examples
# Configure the description of Ethernet subinterface GigabitEthernet 1/0.1 as l2-subinterface1/0.1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0.1
[Sysname-GigabitEthernet1/0.1] description l2-subinterface1/0.1
display brief interface
Syntax
display brief interface [ interface-type [ interface-number | interface-number.subnumber ] ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
interface-number.subnumber: Subinterface number, where interface-number is an interface number; subnumber is the number of a subinterface created under the interface. The value range of subnumber is 1 to 4094.
|: Uses a regular expression to filter output information. For detailed description on regular expression, refer to Basic System Configuration in the System Volume.
begin: Displays the line that matches the regular expression and all the subsequent lines.
exclude: Displays the lines that do not match the regular expression.
include: Displays the lines that match the regular expression.
regular-expression: Regular expression, a string of 1 to 256 characters. Note that this argument is case-sensitive.
Description
Use the display brief interface command to display brief interface information.
l If neither interface type nor interface number is specified, all interface information will be displayed;
l If only interface type is specified, then only information of this particular type of interface will be displayed.
l If both interface type and interface number are specified, then only information of the specified interface will be displayed.
Related commands: interface.
Examples
# Display brief information of interface(s).
<Sysname> display brief interface
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
GE1/0 UP DOWN ETHERNET --
GE1/1 UP DOWN ETHERNET --
NULL0 UP UP(spoofing) NULL --
S2/0 DOWN DOWN PPP --
S2/1 DOWN DOWN PPP --
# Display brief interface information that contains the string “UP”.
<Sysname> display brief interface | include UP
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
GE0/1/0 UP DOWN ETHERNET --
GE0/1/1 UP DOWN ETHERNET --
NULL0 UP UP(spoofing) NULL --
Table 1-1 Description on the fields of the display brief interface command
Field |
Description |
The brief information of interface(s) under route mode: |
Brief information of interface(s) in route mode |
Interface |
Abbreviated interface name |
Link |
Interface physical link state, which can be up or down |
Protocol-link |
Interface protocol link state, which can be up or down |
Protocol type |
Interface protocol type |
Main IP |
Main IP |
display interface
Syntax
display interface [ interface-type [ interface-number | interface-number.subnumber ] ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
interface-number.subnumber: Subinterface number, where interface-number is an interface number; subnumber is the number of a subinterface created under the interface. The value of subnumber ranges from 1 to 4094.
Description
Use the display interface command to display the current state of a specified interface and related information.
l If neither interface type nor interface number is specified, all interface information is displayed;
l If only interface type is specified, then only information of this particular type of interface is displayed.
l If both interface type and interface number are specified, then only information of the specified interface is displayed.
Related commands: interface.
Examples
# Display the current state of Layer 3 interface GigabitEthernet 1/0 and related information.
<Sysname> display interface GigabitEthernet 1/0
GigabitEthernet1/0 current state: Administratively DOWN
Line protocol current state: DOWN
Description: GigabitEthernet1/0 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet protocol processing : disabled
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e200-0000
IPv6 Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e200-0000
Media type is twisted pair, loopback not set, promiscuous mode not set
1000Mb/s, Full-duplex, link type is autonegotiation
Output flow-control is disabled, input flow-control is disabled
Output queue : (Urgent queuing : Size/Length/Discards) 0/50/0
Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0
Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0
Last clearing of counters: Never
Last 300 seconds input rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec
Last 300 seconds output rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec
Input: 0 packets, 0 bytes, 0 buffers, 0 no buffers
0 broadcasts, 0 multicasts, 0 pauses
0 errors, 0 runts, 0 giants
0 crc, 0 align errors, 0 overruns
0 dribbles, 0 drops
Output:0 packets, 0 bytes, 0 buffers
0 broadcasts, 0 multicasts, 0 pauses
Table 1-2 display interface (in route mode) command output description
Field |
Description |
GigabitEthernet1/0 current state |
Interface physical link state |
Line protocol current state |
Interface protocol link state |
Description |
The description of an Ethernet interface |
The Maximum Transmit Unit |
The Maximum Transmit Unit (MTU) |
Hold timer is |
Hold timer of link state |
Internet protocol processing |
IP packet processing: disabled indicates that IP packets cannot be processed. For an interface configured with an IP address, this field is Internet Address is. |
IP Packet Frame Type, Hardware Address |
IP packet frame type, hardware address |
IPv6 Packet Frame Type, Hardware Address |
IPv6 packet frame type, hardware address |
Output queue (Urgent queue : Size/Length/Discards) |
Output queue (current message number in the urgent queue/ maximum number of messages allowed in the urgent queue/number of discarded messages) |
Output queue (Protocol queue : Size/Length/Discards) |
Output queue (current message number in the protocol queue/ maximum number of messages allowed in the protocol queue/number of discarded messages) |
Output queue (FIFO queuing : Size/Length/Discards) |
Output queue (current message number in the FIFO queue/ maximum number of messages allowed in the FIFO queue/number of discarded messages) |
Last 300 seconds input rate |
Average input rate over the last 300 seconds: bytes/sec, bits/sec, packets/sec |
Last 300 seconds output rate |
Average output rate over the last 300 seconds: bytes/sec, bits/sec, packets/sec |
Input |
Input packets |
Output |
Output packets |
# Display the current state of Layer 2 interface Ethernet 1/0 and related information.
<Sysname> display interface ethernet 1/0
Ethernet1/0 current state: DOWN
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e200-8048
Description: Ethernet1/0 Interface
Loopback is not set
Media type is twisted pair, port hardware type is 100_BASE_TX
Unknown-speed mode, unknown-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 9022
Broadcast MAX-ratio: 100%
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 100
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 100
Port priority: 0
Last 300 seconds input: 6 packets/sec 678 bytes/sec 20%
Last 300 seconds output: 1 packets/sec 179 bytes/sec 17%
Input (total): 61745144 packets, 12152212250 bytes
47519150 broadcasts, 12121681 multicasts
Input (normal): 61745144 packets, - bytes
47519150 broadcasts, 12121681 multicasts
Input: 0 input errors, 0 runts, 0 giants, 0 throttles
0 CRC, 0 frame, - overruns, 0 aborts
- ignored, - parity errors
Output (total): 1395522 packets, 183608303 bytes
13 broadcasts, 1273860 multicasts, 0 pauses
Output (normal): 1395522 packets, - bytes
13 broadcasts, 1273860 multicasts, 0 pauses
Output: 0 output errors, - underruns, 1 buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
0 lost carrier, - no carrier
Table 1-3 display interface command (in bridge mode) output description
Field |
Description |
Ethernet1/0 current state |
Current physical link state of the Ethernet interface |
IP Packet Frame Type |
Frame type of the Ethernet interface |
Hardware address |
Hardware address |
Description |
Description of the interface |
Loopback is not set |
Loopback is not configured. |
Unknown-speed mode |
Unknown-speed mode, in which mode speed is negotiated between the current host and the peer. |
unknown-duplex mode |
Unknown-duplex mode, in which mode speed is negotiated between the current host and the peer. |
Link speed type is autonegotiation |
Link speed type is autonegotiation. |
link duplex type is autonegotiation |
Link duplex type is autonegotiation. |
Flow-control is not enabled |
Flow-control is not enabled. |
The Maximum Frame Length |
The maximum frame length allowed on an interface |
Broadcast-suppression ratio(%) |
Broadcast storm suppression ratio (the maximum ratio of allowed number of broadcast packets to overall traffic through an interface) |
Unicast MAX-ratio |
Unicast storm suppression ratio (the maximum ratio of allowed number of unknown unicast packets to overall traffic over an interface) |
Multicast MAX-ratio |
Multicast storm suppression ratio (the maximum ratio of allowed number of multicast packets to overall traffic through an interface) |
Allow jumbo frame to pass |
Allow jumbo frame to pass through |
PVID |
Default VLAN ID |
Mdi type |
Cable type |
Port link-type |
Interface link type, which could be access, trunk, and hybrid. |
Tagged VLAN ID |
VLANs whose packets are sent through the port with VLAN tag kept. |
Untagged VLAN ID |
VLANs whose packets are sent through the port with VLAN tag stripped off. |
Last 300 seconds input: |
Average input rate over the last 300 seconds, among which: l packets/sec indicates the average input rate in terms of the average number of the packets received per second. l bytes/sec indicates the average input rate in terms of the average number of bytes received per second. l x% indicates the percentage of the average input rate to the total bandwidth, where - indicates that the rate is greater than the maximum value that can be displayed. |
Last 300 seconds output |
Average output rate over the last 300 seconds, among which: l packets/sec indicates the average output rate in terms of the average number of the packets output per second. l bytes/sec indicates the average output rate in terms of the average number of bytes output per second. l x% indicates the percentage of the average output rate to the total bandwidth, where - indicates that the rate is greater than the maximum value that can be displayed. |
Input (total): Input (normal): Input: Output (total): Output (normal): Output: |
Error statistics on the interface inbound and outbound packets, underscore indicates that the corresponding entry is invalid. |
# Display the information about Layer 2 Ethernet subinterface Ethernet 1/0.1.
<Sysname> system-view
[Sysname] interface ethernet 1/0.1
[Sysname-Ethernet1/0.1]
[Sysname-Ethernet1/0.1] display interface ethernet 1/0.1
ethernet 1/0.1 current state: DOWN
IP Sending Frames' Format: PKTFMT_ETHNT_2, Hardware Address: 000f-e245-7911
Description: ethernet 1/0.1 Interface
Broadcast MAX-ratio: 100%
PVID: 1
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
0 packets input, 0 bytes, 0 drops
0 packets output, 0 bytes, 0 drops
Table 1-4 display interface command (in Layer 2 subinterface mode) output description
Field |
Description |
Ethernet1/0.1 current state |
Current state of the Ethernet subinterface |
IP Sending Frames' Format |
Frame type of the Ethernet subinterface |
Hardware Address |
Interface hardware address |
Broadcast MAX-ratio |
Broadcast storm suppression ratio |
PVID |
Default VLAN ID |
Port link-type |
Interface link type |
Tagged VLAN ID |
VLANs whose packets are sent through the port with VLAN tag kept. |
Untagged VLAN ID |
VLANs whose packets are sent through the port with the VLAN tag stripped off. |
0 packets input, 0 bytes, 0 drops |
Statistics on the packets received |
0 packets output, 0 bytes, 0 drops |
Statistics on the packets sent |
duplex
Syntax
duplex { auto | full | half }
undo duplex
View
Ethernet interface view
Default Level
2: System level
Parameters
auto: Indicates that the interface is in auto-negotiation state.
full: Indicates that the interface is in full-duplex state.
half: Indicates that the interface is in half-duplex state. Combo ports operating as optical ports do not support this keyword.
Description
Use the duplex command to configure the duplex mode for an Ethernet interface.
Use the undo duplex command to restore the duplex mode for an Ethernet interface to the default.
By default, the duplex mode for an Ethernet interface is auto.
Related commands: speed.
Examples
# Configure the interface GigabitEthernet 1/0 to work in full-duplex mode.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0
[Sysname-GigabitEthernet1/0] 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: Value of J0/J1 bytes, a string of 1 to 15 characters.
Description
Use the flag sdh command to set a value for the overhead bytes J0/J1 in Synchronous Digital Hierarchy (SDH) frames when the 10GE interface works in WAN mode.
Use the undo flag command to restore the default value of J0/J1 bytes.
By default, the value of all J0/J1 bytes is all 0s.
Related commands: port-mode.
This command is valid only when the 10GE interface works in WAN mode.
Examples
# Set J0 bytes in SDH frames to Sysname.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/1
[Sysname-Ten-GigabitEthernet1/1] port-mode wan
[Sysname-Ten-GigabitEthernet1/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 flow control on an Ethernet interface.
Use the undo flow-control command to disable flow control on an Ethernet interface.
By default, flow control on an Ethernet interface is disabled.
The flow control function takes effect on the local Ethernet interface only when it is enabled on both the local and peer devices.
Examples
# Enable flow control on interface GigabitEthernet 1/0.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0
[Sysname-GigabitEthernet1/0] flow-control
interface
Syntax
interface interface-type { interface-number | interface-number.subnumber }
View
System view
Default Level
2: System level
Parameters
interface-type { interface-number | interface-number.subnumber }: Interface type and interface number. As for the interface-number.subnumber argument, interface-number is an interface number; subnumber is the number of a subinterface created under the interface. The subnumber argument ranges from 1 to 4094.
Description
Use the interface command to enter interface/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.
Examples
# Enter GigabitEthernet 2/0 interface view (assuming that the interface is a Layer 3 Ethernet interface).
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0
[Sysname-GigabitEthernet2/0]
# Create Ethernet subinterface GigabitEthernet 2/0.1 and enter GigabitEthernet 2/0.1 subinterface view (assuming that Ethernet 2/0 is an Layer 3 Ethernet interface and the subinterface does not exist).
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0.1
[Sysname-GigabitEthernet2/0.1]
loopback
Syntax
loopback { external | internal }
undo loopback
View
Ethernet interface view
Default Level
2: System level
Parameters
external: Enables external loopback testing on an Ethernet interface.
internal: Enables internal loopback testing on an Ethernet interface.
Description
Use the loopback command to enable Ethernet interface loopback testing.
Use the undo loopback command to disable Ethernet interface loopback testing.
By default, Ethernet interface loopback testing is disabled.
l Ethernet interface loopback testing should be enabled while testing certain functionalities, such as during the initial identification of any network failure.
l While enabled, Ethernet interface loopback testing will work in full-duplex mode. The interface will return to its original state upon completion of the loopback testing.
Examples
# Enable loopback testing on GigabitEthernet 1/0.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0
[Sysname-GigabitEthernet1/0] loopback internal
port-mode
Syntax
port-mode { lan | wan }
undo port-mode
View
Ten-GigabitEthernet interface view
Default Level
2: System level
Parameters
lan: Specifies the LAN mode.
wan: Specifies the WAN mode.
Description
Use the port-mode command to configure a 10GE interface to work in LAN or WAN mode.
Use the undo port-mode command to restore the default.
By default, a 10GE interface operates in LAN mode.
Examples
Configure the 10GE 1/1 to operate in the WAN mode.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/1
[Sysname-Ten-GigabitEthernet1/1] port-mode wan
reset counters interface
Syntax
reset counters interface [ interface-type [ interface-number | interface-number.subnumber ] ]
View
User view
Default Level
2: System level
Parameters
interface-type: Interface type.
interface-number: Interface number.
interface-number.subnumber: Subinterface number, where interface-number is an interface number; subnumber is the number of a subinterface created under the interface. The value of subnumber ranges from 1 to 4094.
Description
Use the reset counters interface command to clear the statistics of an interface/subinterface.
Before sampling network traffic within a specific period of time on an interface, you need to clear the existing statistics.
l If neither interface type nor interface number is specified, this command clears the statistics of all the interfaces.
l If only the interface type is specified, this command clears the statistics of the interfaces that are of the interface type specified.
l If both the interface type and interface/subinterface number are specified, this command clears the statistics of the specified interface/subinterface.
Examples
# Clear the statistics of GigabitEthernet 1/0.
<Sysname> reset counters interface gigabitethernet 1/0
# Clear the statistics of subinterface Ethernet 1/0.1.
<Sysname> reset counters interface gigabitethernet 1/0.1
shutdown
Syntax
shutdown
undo shutdown
View
Ethernet interface view, Ethernet subinterface view
Default Level
2: System level
Parameters
None
Description
Use the shutdown command to shut down an Ethernet interface/subinterface.
Use the undo shutdown command to bring up an Ethernet interface/subinterface.
By default, an Ethernet interface/subinterface is in the up state.
In certain circumstances, modification to the interface parameters does not immediately take effect, and therefore, you need to shut down the relative interface to make the modification work.
Examples
# Shut down interface GigabitEthernet 1/0.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0
[Sysname-GigabitEthernet1/0] shutdown
# Shut down subinterface GigabitEthernet1/0.1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0.1
[Sysname-GigabitEthernet1/0.1] shutdown
# Bring up interface GigabitEthernet 1/0.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0
[Sysname-GigabitEthernet1/0] undo shutdown
speed
Syntax
speed { 10 | 100 | 1000 | auto }
undo speed
View
Ethernet interface view
Default Level
2: System level
Parameters
10: Specifies the interface rate as 10 Mbps. Combo ports operating as electrical ports do not support configuring this keyword.
100: Specifies the interface rate as 100 Mbps. Combo ports operating as electrical ports do not support configuring this keyword.
1000: Specifies the interface rate as 1,000 Mbps.
auto: Specifies to determine the interface rate through auto-negotiation.
Description
Use the speed command to configure Ethernet interface data rate.
Use the undo speed command to restore Ethernet interface data rate.
By default, Ethernet interface data rate is automatically negotiated between peer Ethernet interfaces.
Related commands: duplex.
Examples
# Configure the interface rate as 100 Mbps for interface GigabitEthernet 1/0.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0
[Sysname-GigabitEthernet1/0] speed 100
Layer 3 Ethernet Interface/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: Maximum Transmission Unit (MTU) in bytes, in the range 46 to 1580. The system default is 1500.
Description
Use the mtu command to set the MTU of an Ethernet interface/subinterface.
Use the undo mtu command to restore the default.
The default MRU of an Ethernet interface/subinterface is 1500 bytes.
l As the size of MTU decreases, the number of fragments grows. When setting MTU for an interface, you should consider QoS queue lengths (for example, the default FIFO queue length is 75) to avoid a too small MTU causing packet drop in QoS queuing. To achieve the best result, you can tune MTU with the mtu command or QoS queue lengths with the qos fifo queue-length command. For detailed configurations, see QoS Commands in the QoS Volume.
l The MTU you configure for an RT-MIM-2GBE-H3 interface module should not exceed 1500 bytes. Otherwise, packets may not be transmitted successfully.
Examples
# Set the MTU to 1430 bytes for GigabitEthernet 2/0.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0
[Sysname-GigabitEthernet2/0] mtu 1430
# Set the MTU to 1400 bytes for subinterface GigabitEthernet 2/0.1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0.1
[Sysname-GigabitEthernet2/0.1] mtu 1400
sub-interface rate-statistic
Syntax
sub-interface rate-statistic
undo sub-interface rate-statistic
View
Layer 3 Ethernet interface view
Default Level
2: System level
Parameters
None
Description
Use the sub-interface rate-statistic command to enable the collecting of rate statistics of the subinterfaces on an Ethernet interface.
Use the undo sub-interface rate-statistic command to restore the default.
By default, the collecting of rate statistics of the subinterfaces on an Ethernet interface is disabled.
l Because this feature may take a large amount of the system resource, use this command with caution.
l All interfaces that support subinterfaces support this feature.
Examples
# Enable the collecting of rate statistics of the subinterfaces on GigabitEthernet 2/0.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0
[Sysname-GigabitEthernet2/0] sub-interface rate-statistic
Warning: This configuration may make a negative effect on the performance. Are you sure to continue? [Y/N]: Y
[Sysname-GigabitEthernet2/0]
timer hold
Syntax
timer hold seconds
undo timer hold
View
Layer 3 Ethernet interface view
Default Level
2: System level
Parameters
seconds: Time interval in seconds for link suppression, in the range of 0 to 32767. A value 0 indicates that the link test is disabled.
Description
Use the timer hold command to set the link-layer-state change suppression time for a Layer 3 Ethernet interface.
Use the undo timer hold command to restore the default.
By default, the link-layer-state change suppression time of a Layer 3 Ethernet interface is 10 seconds. The link-layer-state change suppression time settings of both sides of a connection need to be the same. A value of 0 disables link-layer-state change suppression.
You can increase the polling interval to reduce negative effect on network traffic due to network time delay or heavy congestion.
Examples
# Set the link state change suppression time to 20 seconds for interface GigabitEthernet 2/0.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0
[Sysname-GigabitEthernet2/0] timer hold 20
VE Interface Configuration Commands
display interface virtual-ethernet
Syntax
display interface virtual-ethernet [ interface-number ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-number: Virtual Ethernet (VE) interface number, which can be the number of any existing Layer 3 VE interface.
Description
Use the display interface virtual-ethernet command to view information about a VE interface. If you do not provide the interface-number argument, this command displays information about all existing VE interfaces.
Related commands: interface virtual-ethernet.
Examples
# Display information about interface Virtual-Ethernet 2.
<Sysname> display interface virtual-ethernet 2
Virtual-Ethernet2 current state: DOWN
Line protocol current state: DOWN
Description: Virtual-Ethernet2 Interface
The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 00e0-fc98-7654
IPv6 Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 00e0-fc98-7654
Table 1-5 display interface virtual-ethernet command output description
Field |
Description |
current state |
Physical state of the interface (up or down) |
Line protocol current state |
State of the data link layer protocol (up or down) |
Description |
Description of the interface |
The Maximum Transmit Unit |
MTU of the interface |
Internet protocol processing |
State of the network layer protocol (enabled or disabled) |
IP Packet Frame Type |
Encapsulation format for IPv4 packets |
IPv6 Packet Frame Type |
Encapsulation format for IPv6 packets |
interface virtual-ethernet
Syntax
interface virtual-ethernet interface-number
undo interface virtual-ethernet interface-number
View
System view
Default Level
2: System level
Parameters
interface-number: VE interface number, ranging from 0 to 1023.
Description
Use the interface virtual-ethernet command to create a VE interface or enter VE interface view.
Use the undo interface virtual-ethernet command to remove a VE interface.
You cannot remove a VE interface that has been associated with a PVC.
Examples
# Create interface Virtual-Ethernet 2.
[Sysname] interface virtual-ethernet 2
[Sysname-Virtual-Ethernet2]
mac-address
Syntax
mac-address mac-address
undo mac-address
View
VE interface view
Default Level
2: System level
Parameters
mac-address: MAC address, in the form of H-H-H.
Description
Use the mac-address command to assign a MAC address to a VE interface.
Use the undo mac-address command to restore the default.
The default MAC address for a VE interface depends on your device model.
VE interfaces are logical interfaces, which can only be created or removed manually. Normally, when a VE interface is created, it borrows the MAC address of a certain physical port. As this physical port is fixed for all VE interfaces on your device, the VE interfaces share the same MAC address. When multiple VE interfaces are connected through different PVCs to a DHCP server that assigns IP addresses to the interfaces through static address binding, you must configure different MAC addresses for the interfaces with the mac-address command. For more information about static address binding of DHCP, refer to DHCP Configuration in the IP Services Volume.
Examples
# Assign MAC address 0001-0001-0001 to interface Virtual-Ethernet 1.
<Sysname> system-view
[Sysname] interface virtual-ethernet 1
[Sysname-Virtual-Ethernet1] mac-address 1-1-1