- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 5303(V1.01)
- 00-1Cover
- 01-Login Commands
- 02-VLAN Commands
- 03-IP Addressing and Performance Commands
- 04-QinQ-BPDU Tunneling Commands
- 05-Port Correlation Configuration Commands
- 06-Link Aggregation Commands
- 07-MAC Address Table Management Commands
- 08-IP Source Guard Commands
- 09-MSTP Commands
- 10-IPv6 Commands
- 11-Routing Overview Commands
- 12-IPv4 Routing Commands
- 13-BFD-GR Commands
- 14-IPv6 Routing Commands
- 15-Multicast Protocol Commands
- 16-802.1x-HABP-MAC Authentication Commands
- 17-AAA-RADIUS-HWTACACS Commands
- 18-ARP Commands
- 19-DHCP Commands
- 20-ACL Commands
- 21-QoS Commands
- 22-Port Mirroring Commands
- 23-Cluster Management Commands
- 24-UDP Helper Commands
- 25-SNMP-RMON Commands
- 26-NTP Commands
- 27-DNS Commands
- 28-File System Management Commands
- 29-Information Center Commands
- 30-System Maintaining and Debugging Commands
- 31-NQA Commands
- 32-VRRP Commands
- 33-SSH Commands
- 34-MCE Commands
- 35-OAM Commands
- 36-DLDP Commands
- 37-RRPP Commands
- 38-SSL-HTTPS Commands
- 39-PKI Commands
- 40-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
05-Port Correlation Configuration Commands | 108.54 KB |
Table of Contents
Chapter 1 Port Correlation Configuration Commands
1.1 Port Correlation Configuration Commands
1.1.5 display loopback-detection
1.1.8 display port-group manual
1.1.16 loopback-detection control enable
1.1.17 loopback-detection enable
1.1.18 loopback-detection interval-time
1.1.19 loopback-detection per-vlan enable
1.1.22 reset counters interface
Chapter 2 Port Isolation Configuration Commands
2.1 Port Isolation Configuration Commands
2.1.1 display port-isolate group
2.1.3 port-isolate uplink-port
Chapter 1 Port Correlation Configuration Commands
1.1 Port Correlation Configuration Commands
1.1.1 broadcast-suppression
Syntax
broadcast-suppression ratio
undo broadcast-suppression
View
Ethernet port view, port group view
Parameters
ratio: Maximal ratio of broadcast traffic to the total transmission capability of an Ethernet port, in the range 1 to 100 . The smaller the ratio, the less broadcast traffic is allowed to pass through the interface. The system default is 100.
Description
Use the broadcast-suppression command to configure the broadcast storm suppression ratio for one or multiple ports.
Use the undo broadcast-suppression command to restore the default broadcast storm suppression ratio.
By default, all broadcast traffic is allowed to pass through an Ethernet port, that is, broadcast traffic is not suppressed.
If you execute this command in Ethernet port view, the configurations take effect only on the current interface. If you execute this command in port-group view, the configurations take effect on all ports in the port group.
Note that when broadcast traffic exceeds the maximum value configured, the system will discard the extra packets so that the broadcast traffic ratio falls below the limit to ensure that the network functions properly.
& Note:
If you set suppression ratios repeatedly for an Ethernet port belonging to a port group in Ethernet port view and port-group view, the latest configuration takes effect.
Examples
# Allow broadcast traffic equivalent to 20% of the total transmission capability of Ethernet 1/0/1 to pass and suppress the excessive broadcast packets.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] broadcast-suppression 20
# On all ports of the manual port group named group1, allow broadcast traffic equivalent to 20% of the total transmission capability of each port to pass and suppress excessive broadcast packets.
[Sysname-Ethernet1/0/1] quit
[Sysname] port-group manual group1
[Sysname-port-group manual group1] group-member ethernet 1/0/5
[Sysname-port-group manual group1] group-member ethernet 1/0/6
[Sysname-port-group manual group1] group-member ethernet 1/0/7
[Sysname-port-group manual group1] broadcast-suppression 20
1.1.2 description
Syntax
description text
undo description
View
Ethernet port view
Parameters
text: Description of an Ethernet port, a string of 1 to 80 characters.
Description
Use the description command to configure the description of an Ethernet port.
Use the undo description command to remove the description.
By default, the description of an Ethernet port is the interface name followed by the interface string.
Examples
# Configure the description of interface Ethernet 1/0/1 as lanswitch-interface.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] description lanswitch-interface
1.1.3 display brief interface
Syntax
display brief interface [ interface-type [ interface-number ] ] [ | { begin | include | exclude } text ]
View
Any view
Parameters
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
|: Uses a regular expression to filter output information.
begin: Displays all the configuration information in the line that contains the specified string and all the lines after this line.
include: Displays information that contains the specified string.
exclude: Displays information that does not contain the specified string.
text: Regular expression, in the range of 1 to 256 characters, excluding spaces.
Table 1-1 Special characters used in regular expressions
Character |
Meaning |
Notes on Use |
^ |
Boundary matcher for the beginning of a line. This character specifies a string with which a line begins. |
The regular expression “^user” matches lines that begin with the string “user”. Lines that don t begin with the string “user”, for example, “Auser”, are not matched. |
$ |
Boundary matcher for the end of a line. This character specifies a string with which a line ends. |
The regular expression “user$” matches lines that end with the string “user”. Lines that do not end with the string, for example, “userA”, are not matched. |
. |
Full stop, used as the wildcard character, which matches any single character, including space. |
None |
* |
Star, which matches the occurrences of the character to the left for zero or multiple times |
zo* matches z and zoo. |
+ |
Plus, which matches one or multiple occurrences of the character to the left |
zo+ matches zo and zoo, but not z. |
- |
Hypen, which is used to connect two numbers or characters. Note that the number to the left of this character need to be larger than the one to the right. When used in a “[“ and “]” pair, it represents a range. |
”1-9” represent a range from 1 to 9 (“1” and “9” included), and a-h represent a range from “a” to “h” (“a” and “h” included). |
[ ] |
Specifies a range. |
[1-36A] matches a character, which can be a number in the range 1 to 36 or character A. |
( ) |
Specifies a grouyp of characters. Usually used with “+” and “*”. |
(123A) specifies the string “123A”. 408(12)+ matchers “40812” or “408121212” (but not “408”). That is, “12” can appear for multiple times. |
Description
Use the display brief interface command to display brief interface information, including simple interface name, link state, protocol link state, protocol type, and main IP address.
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
Loop0 UP UP(spoofing) LOOP 10.1.1.1
NULL0 UP UP(spoofing) NULL --
Tun0 DOWN DOWN TUNNEL --
Vlan1 DOWN DOWN ETHERNET 2.2.2.2
Vlan2 DOWN DOWN ETHERNET 1.1.1.1
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
Eth1/0/1 DOWN auto auto access 1
Eth1/0/2 UP 100M(a) full(a) access 1
Eth1/0/3 DOWN auto auto access 1
Eth1/0/4 DOWN auto auto access 1
Eth1/0/5 DOWN auto auto access 1
Eth1/0/6 DOWN auto auto access 1
Eth1/0/7 DOWN auto auto access 1
(The following information is omitted)
# 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
Loop0 UP UP(spoofing) LOOP 10.1.1.1
NULL0 UP UP(spoofing) NULL --
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
Eth1/0/2 UP 100M(a) full(a) access 1
Table 1-2 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 |
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 |
The brief information of interface(s) under bridge mode: |
Brief information of interface(s) in bridge mode |
Speed |
Interface rate, in bps |
Duplex |
Duplex mode, which can be half (half duplex), full (full duplex), or auto (auto-negotiation). |
PVID |
Default VLAN ID |
Table 1-3 Acronyms for different types of Interface
Interface name |
Acronyms |
Ethernet |
Eth |
GigabitEthernet |
GE |
Ten-GigabitEthernet |
XGE |
1.1.4 display interface
Syntax
display interface [ interface-type [ interface-number ] ]
View
Any view
Parameters
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
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 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 the current state of port Ethernet 1/0/1 and related information.
<Sysname> display interface ethernet 1/0/1
Ethernet1/0/1 current state: DOWN
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e200-2200
Description: Ethernet1/0/1 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 1552
Broadcast MAX-ratio: 100%
PVID: 1
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Port priority: 0
Last 300 seconds input: 0 packets/sec 0 bytes/sec
Last 300 seconds output: 0 packets/sec 0 bytes/sec
Input (total): - packets, - bytes
- broadcasts, - multicasts
Input (normal): 0 packets, 0 bytes
0 broadcasts, 0 multicasts
Input: 0 input errors, 0 runts, 0 giants, - throttles
0 CRC, 0 frame, 0 overruns, 0 aborts
- ignored, - parity errors
Output (total): - packets, - bytes
- broadcasts, - multicasts, - pauses
Output (normal): 0 packets, 0 bytes
0 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
Table 1-4 Description on the fields of the display interface command (in bridge mode)
Field |
Description |
Ethernet1/0/1 current state |
Current physical link state of the Ethernet port |
IP Packet Frame Type |
Frame type of the Ethernet port |
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) |
PVID |
Default VLAN ID |
Mdi type |
Cable type |
Port link-type |
Interface link type, which could be access, trunk, and hybrid. |
Tagged VLAN ID |
Identify the VLANs that need Tag markers |
Untagged VLAN ID |
Identify the VLANs that do not need Tag markers |
Last 300 seconds input: |
Average input rate over the last 300 seconds |
Last 300 seconds output |
Average output rate over the last 300 seconds |
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 |
1.1.5 display loopback-detection
Syntax
display loopback-detection
View
Any view
Parameters
None
Description
Use the display loopback-detection command to display loopback detection information on a port
If loopback detection is already enabled, this command will also display the detection interval and information on the ports currently detected with a loopback.
Examples
# Display loopback detection information on a port.
<Sysname> display loopback-detection
Loopback-detection is running
Detection interval time is 30 seconds
There is no port existing loopback link
Table 1-5 Description on the fields of the display loopback-detection command.
Field |
Description |
Loopback-detection is running |
Loopback-detection is running |
Detection interval time is 30 seconds |
Detection interval is 30 seconds |
There is no port existing loopback link |
No port is currently being detected with a loopback |
1.1.6 display port
Syntax
display port { hybrid | trunk }
View
Any view
Parameters
hybrid: Displays the current Hybrid port(s).
trunk: Displays the current Trunk port(s).
Description
Use the display port command to display information on the current ports of a specified type, including port name, default VLAN ID, and the VLAN ID of VLANs that the ports can pass through.
Examples
# Display the current Hybrid ports.
<Sysname> display port hybrid
Interface PVID VLAN passing
Eth1/0/4 2 Tagged: 2
Untagged:4-8
# Display the current Trunk ports.
<Sysname> display port trunk
Interface PVID VLAN passing
Eth1/0/6 1 1, 3-6
Table 1-6 Description on the fields of the display port command.
Field |
Description |
Interface |
Interface name |
PVID |
Default VLAN ID of the interface |
VLAN passing |
VLAN ID of VLANs that the ports can pass through |
1.1.7 display port combo
Syntax
display port combo
View
Any view
Parameters
None
Description
Use the display port combo command to display the Combo ports of a device and the corresponding optical ports and electrical ports.
Examples
# Display the Combo ports of the device and the corresponding optical ports and electrical ports.
<Sysname> display port combo
Combo-group Active Inactive
1 GigabitEthernet1/0/21 GigabitEthernet1/0/25
2 GigabitEthernet1/0/22 GigabitEthernet1/0/26
3 GigabitEthernet1/0/23 GigabitEthernet1/0/27
4 GigabitEthernet1/0/24 GigabitEthernet1/0/28
Table 1-7 Description on the fields of the display port combo command
Field |
Description |
Combo-group |
Combo ports of the device, represented by Combo port number, which is generated by the system |
Active |
Ports of the Combo ports that are active |
Inactive |
Ports of the Combo ports that are inactive |
As for the optical port and the electrical port of a Combo port, the one with the less port number is active by default. You can determine whether a port is an optical port or an electrical port by checking the “Media type is” field of the display interface command.
1.1.8 display port-group manual
Syntax
display port-group manual [all | name port-group-name ]
View
Any view
Parameters
all: Specifies all the manual port groups.
name port-group-name: Specifies the name of a manual port group, a string of 1 to 32 characters.
Description
Use the display port-group manual command to display the information about a manual port group or all the manual port groups.
l If you provide the port-group-name argument, this command displays the details for a specified manual port group, including its name and the Ethernet port ports included.
l If you provide the all keyword, this command displays the details for all manual port groups, including their names and the Ethernet ports included.
l Absence of parameters indicates that the names of all port groups will be displayed.
Examples
# Display the names of all the port groups.
<Sysname> display port-group manual
The following manual port group exist(s):
group1 group2
# Display details of all the manual port groups.
<Sysname> display port-group manual all
Member of 1:
Ethernet1/0/4 Ethernet1/0/5 Ethernet1/0/6
Ethernet1/0/7 Ethernet1/0/8 Ethernet1/0/9
Ethernet1/0/10
Member of 2:
None
# Display details of the port group named group 1.
<Sysname> display port-group manual name group1
Member of group1:
Ethernet1/0/4 Ethernet1/0/5 Ethernet1/0/6
Ethernet1/0/7 Ethernet1/0/8 Ethernet1/0/9
Ethernet1/0/10
Table 1-8 Description on the fields of the display port-group manual command
Field |
Description |
Member of group |
Member of the manual port group |
1.1.9 duplex
Syntax
duplex { auto | full | half }
undo duplex
View
Ethernet port view
Parameters
auto: Indicates that the port is in an auto-negotiation state.
full: Indicates that the port is in a full-duplex state.
half: Indicates that the port is in a half-duplex state.
Description
Use the duplex command to configure the duplex mode for an Ethernet port.
Use the undo duplex command to restore the duplex mode for an Ethernet port to the default.
By default, the duplex mode for an Ethernet port is auto. For a small form-factor pluggable (SFP) port that uses a 100-Mbps module, the default duplex mode is full. For a SFP port that uses a 1000-Mbps module, the default duplex mode is auto.
Related commands: speed.
& Note:
For a SFP port that uses a 100-Mbps module, the duplex mode can only be configured as full; for a SFP port that uses a 1000-Mbps module, the duplex mode can only be configured as auto or full.
Examples
# Configure the Ethernet 1/0/1 to work in full-duplex mode.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] duplex full
1.1.10 flow-control
Syntax
flow-control
undo flow-control
View
Ethernet port view
Parameters
None
Description
Use the flow-control command to enable flow control on an Ethernet port.
Use the undo flow-control command to disable flow control on an Ethernet port.
By default, flow control on an Ethernet port is disabled.
& Note:
The flow control function takes effect on the local Ethernet port only when it is enabled on both the local and peer devices.
Examples
# Enable flow control on Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] flow-control
1.1.11 flow-interval
Syntax
flow-interval interval
undo flow-interval
View
Ethernet port view
Parameters
interval: Time interval at which port statistics is collected, a multiple of 5 in the range of 5 to 300 (in seconds). The system default is 300 seconds.
Description
Use the flow-interval command to configure the time interval for collecting port statistics.
Use the undo flow-interval command to restore the default interval.
Examples
# Set the time interval for collecting port statistics to 100 seconds.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] flow-interval 100
1.1.12 group-member
Syntax
group-member interface-list
undo group-member interface-list
View
Port group view
Parameters
interface-list: Ethernet port 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 port or port ranges
Description
Use the group-member command to add an Ethernet port to a specified manual port group.
Use the undo group-member command to remove a specified Ethernet port from a manual port group.
By default, a manual port group is empty, that is, there is no Ethernet port in it.
Examples
# Add Ethernet 1/0/1 to the manual port group named group 1.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group-manual-group1] group-member ethernet 1/0/1
1.1.13 interface
Syntax
interface interface-type interface-number
View
System view
Parameters
interface-type interface-number: Port type and port number.
Description
Use the interface command to enter the related port view.
Examples
# Enter Ethernet 1/0/1 port view.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1]
1.1.14 jumboframe enable
Syntax
jumboframe enable
undo jumboframe enable
View
System view
Parameters
None
Description
Use the jumboframe enable command to enable the forwarding of jumbo frames. For fast Ethernet ports, the maximum frame size allowed is 1552 bytes; for GigabitEthernet ports, the maximum frame size allowed is 10240 bytes.
Use the undo jumboframe enable command to set the maximum frame size allowed on all the Ethernet ports to 1522 bytes.
By default, the forwarding of jumbo frames is enabled.
Examples
# Set the maximum frame size allowed on all the Ethernet ports to 1522 bytes.
<Sysname> system-view
[Sysname] undo jumboframe enable
1.1.15 loopback
Syntax
loopback { external | internal }
undo loopback
View
Ethernet port view
Parameters
external: Enables external loopback testing on an Ethernet port.
internal: Enables internal loopback testing on an Ethernet port.
Description
Use the loopback command to enable Ethernet port loopback testing.
Use the undo loopback command to disable Ethernet port loopback testing.
By default, Ethernet port loopback testing is disabled.
& Note:
l Ethernet port loopback testing should be enabled while testing certain functionalities, such as during the initial identification of any network failure.
l While enabled, Ethernet port loopback testing will work in a full-duplex mode. The port will return to its original state upon completion of the loopback testing.
Examples
# Enable loopback testing on Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] loopback internal
1.1.16 loopback-detection control enable
Syntax
loopback-detection control enable
undo loopback-detection control enable
View
Ethernet port view
Parameters
None
Description
Use the loopback-detection control enable command to enable loopback detection for a Trunk port or Hybrid port.
Use the undo loopback-detection control enable command to restore the default.
By default, loopback detection for a Trunk port or Hybrid port is disabled.
l When the loopback detection is enabled, if a port has been detected with loopback, it will be shutdown. A Trap message will be sent to the terminal and the corresponding MAC address forwarding entries will be deleted.
l When the loopback detection is disabled, if a port has been detected with loopback, a Trap message will be sent to the terminal. The port is still working properly.
By default, loopback detection for Trunk port and Hybrid port is disabled.
Note that this command is inapplicable to an Access port as its loopback detection is enabled by default.
Examples
# Enable loopback detection for the trunk port Ethernet 1/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type trunk
[Sysname-Ethernet1/0/1] loopback-detection enable
[Sysname-Ethernet1/0/1] loopback-detection control enable
1.1.17 loopback-detection enable
Syntax
loopback-detection enable
undo loopback-detection enable
View
System view, Ethernet port view
Parameters
None
Description
Use the loopback-detection enable command to enable loopback detection globally or on a specified port.
Use the undo loopback-detection enable command to disable loopback detection globally or on a specified port.
By default, loopback detection is disabled for an Access, Trunk, or Hybrid port.
l If an Access port has been detected with loopback, it will be shutdown. A Trap message will be sent to the terminal and the corresponding MAC address If a Trunk port or Hybrid port has been detected with loopback, a Trunk message will be sent to the terminal. They will be shutdown if the loopback testing function is enabled on them. In addition, a Trap message will be sent to the terminal and the corresponding MAC address forwarding entries will be deleted.
Related commands: loopback-detection control enable.
Caution:
l Loopback detection on a given port is enabled only after the loopback-detection enable command has been issued in both system view and the port view of the port.
l Loopback detection on all ports will be disabled after the issuing of the undo loopback-detection enable command under system view.
Examples
# Enable loopback detection on Ethernet 1/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] loopback-detection enable
1.1.18 loopback-detection interval-time
Syntax
loopback-detection interval-time time
undo loopback-detection interval-time
View
System view
Parameters
time: Time interval for performing port loopback detection, in the range 5 to 300 (in seconds).
Description
Use the loopback-detection interval-time command to configure time interval for performing port loopback detection.
Use the undo loopback-detection interval-time command to restore the default time interval for port loopback detection, which is 30 seconds.
Related commands: display loopback-detection.
Examples
# Set the time interval for performing port loopback detection to 10 seconds.
<Sysname> system-view
[Sysname] loopback-detection interval-time 10
1.1.19 loopback-detection per-vlan enable
Syntax
loopback-detection per-vlan enable
undo loopback-detection per-vlan enable
View
Ethernet port view
Parameters
None
Description
Use the loopback-detection per-vlan enable command to enable loopback detection in all VLANs with Trunk ports or Hybrid ports.
Use the undo loopback-detection per-vlan enable command to enable loopback detection in the default VLAN with Trunk ports or Hybrid ports.
By default, loopback detection is only enabled in the default VLAN(s) with Trunk ports or Hybrid ports.
Note that the loopback-detection per-vlan enable command is not applicable to access ports.
Examples
# Enable loopback detection in all the VLANs to which the hybrid port Ethernet 1/0/1 belongs.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] loopback-detection enable
[Sysname-Ethernet1/0/1] port link-type trunk
[Sysname-Ethernet1/0/1] loopback-detection per-vlan enable
1.1.20 mdi
Syntax
mdi { across | auto | normal }
undo mdi
View
Ethernet port view
Parameters
across: Specifies cross-over cables for the Ethernet port.
auto: Configures the Ethernet port to be auto-sensing for the cable type.
normal: Specifies straight-through cables for the Ethernet port.
Description
Use the mdi command to configure the cable type that can be sensed by an Ethernet port.
Use the undo mdi command to restore the system default.
By default, an Ethernet port senses the type of the network cable connected to it automatically.
& Note:
These two commands are not applicable to Combo ports operating as optical ports.
Examples
# Configure Ethernet 1/0/1 to use cross over cable.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] mdi across
1.1.21 port-group
Syntax
port-group { manual port-group-name | aggregation agg-id }
undo port-group manual port-group-name
View
System view
Parameters
manual port-group-name: Specifies the name of a manual port group, a string of 1 to 32 characters.
aggregation agg-id: Specifies the ID of an existing aggregation group. You can use the display link-aggregation summary command to display brief information of all existing port aggregation groups.
Description
Use the port-group manual command to create a manual port group and enter manual port group view.
Use the port-group aggregation command to enter aggregation group view.
Use the undo port-group manual command to remove a manual port group.
By default, no manual port group is created.
Examples
# Create a manual port group named group1.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group-manual-group1]
1.1.22 reset counters interface
Syntax
reset counters interface [ interface-type [ interface-number ] ]
View
User view
Parameters
interface-type: Port type.
interface-number: Port number.
Description
Use the reset counters interface command to reset statistics for a specified port.
To sample network traffic within a period of time for a port, you need to reset the original port statistics.
l If neither port type nor port number is specified, all port information will be reset;
l If only port type is specified, then only information of this particular type of port will be reset.
l If both port type and port number are specified, then only information of the specified port will be reset.
Examples
# Clear the statistics on Ethernet 1/0/1.
<Sysname> reset counters interface ethernet 1/0/1
1.1.23 shutdown
Syntax
shutdown
undo shutdown
View
Ethernet port view
Parameters
None
Description
Use the shutdown command to shut down an Ethernet port.
Use the undo shutdown command to turn on Ethernet port.
In certain circumstances, modification to the port parameters does not immediately take effect, and therefore, you need to shut down the relative port to make the modification work.
Examples
# Shut down Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] shutdown
# Bring up Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] undo shutdown
1.1.24 speed
Syntax
speed { 10 | 100 | 1000 | auto }
undo speed
View
Ethernet port view
Parameters
10: Specifies the port rate as 10 Mbps.
100: Specifies the port rate as 100 Mbps.
1000: Specifies the port rate as 1,000 Mbps. This keyword is available only in 1000-Mbps Ethernet port view.
auto: Specifies to determine the port rate through auto-negotiation.
Description
Use the speed command to configure the Ethernet port rate.
Use the undo speed command to restore the default.
By default, Ethernet port data rate is automatically negotiated between peer Ethernet ports. For a SFP port that uses a 100-Mbps module, the default data rate is 100 Mbps. For a SFP port that uses a 1000-Mbps module, the default data rate is 1000 Mbps.
Related commands: duplex.
& Note:
For a SFP port that uses a 100-Mbps module, the port rate can only be configured as 100 Mbps; for a SFP port that uses a 1000-Mbps module, the port rate can be determined through auto negotiation or be 1000 Mbps, but cannot be configured as 10 or 100 Mbps.
Examples
# Configure the port rate as 100 Mbps for Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] speed 100
1.1.25 virtual-cable-test
Syntax
virtual-cable-test
View
Ethernet port view
Parameters
None
Description
Use the virtual-cable-test command to enable the virtual cable test for an Ethernet port and to display the testing result. The tested items include:
l Cable status: Could be normal, abnormal, abnormal-open, abnormal-short, and failure;
l Cable length;
l Pair Impedance mismatch;
l Pair skew;
l Pair swap;
l Pair polarity;
l Insertion loss;
l Return loss;
l Near-end crosstalk.
By default, virtual cable test is disabled.
Note:
l When the cable is functioning properly, the cable length in the test result represents the total cable length;
l When the cable is not functioning properly, the cable length in the test result represents the length from the current port to the failed position.
& Note:
l The optical port of a Combo port does not support this command.
l A link in the up state goes down and then up automatically if you execute this command on one of the Ethernet ports forming the link.
Examples
# Enable the virtual cable test for Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] virtual-cable-test
Cable status: abnormal(open), 0 metres
Pair Impedance mismatch: no
Pair skew: - ns
Pair swap: -
Pair polarity: -
Insertion loss: - db
Return loss: - db
Near-end crosstalk: - db
Chapter 2 Port Isolation Configuration Commands
2.1 Port Isolation Configuration Commands
2.1.1 display port-isolate group
Syntax
display port-isolate group
View
Any view
Parameters
None
Description
Use the display port-isolate group command to display information of the default Isolation group (that is, isolation group 1).
Examples
# Display information of the isolation group.
<Sysname> display port-isolate group
Port-isolate group information:
Uplink port support: YES
Group ID: 1
Uplink port: Ethernet1/0/3
Ethernet1/0/4 Ethernet1/0/5
Table 2-1 Description on the output information of the display port-isolate group command
Field |
Description |
Port-isolate group information |
Display information of a port-isolation group |
Uplink port support |
Whether support uplink port |
Group ID |
Isolation group number |
Uplink port: Ethernet1/0/3 |
Uplink port of the isolation group |
Ethernet1/0/4 Ethernet1/0/5 |
Ordinary ports (non-uplink ports) in the isolation group |
2.1.2 port-isolate enable
Syntax
port-isolate enable
undo port-isolate enable
View
Ethernet port view, port group view
Parameters
None
Description
Use the port-isolate enable command to add a port to the isolation group as ordinary port only.
Use the undo port-isolate enable command to remove the port from the isolation group.
This command adds a port to the default Isolation group.
Configured in Ethernet port view, the setting is effective on the current port only; configured in port group view, the setting is effective on all ports in the port group.
& Note:
For the same port, only one of the port-isolate enable command and the port-isolate uplink-port command is available. That is, a port cannot be configured as an ordinary port and an uplink port at the same time in the isolation group.
Examples
# Add port Ethernet 1/0/1 to the isolation group.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port-isolate enable
# Add all the ports in the port group named aa to the isolation group.
<Sysname> system-view
[Sysname] port-group manual aa
[Sysname-port-group-manual-aa] group-member ethernet 1/0/5
[Sysname-port-group-manual-aa] group-member ethernet 1/0/6
[Sysname-port-group-manual-aa] port-isolate enable
2.1.3 port-isolate uplink-port
Syntax
port-isolate uplink-port
undo port-isolate uplink-port
View
Ethernet port view
Parameters
None
Description
Use the port-isolate uplink-port command to configure the specified port as the uplink port of the isolation group.
Use the undo port-isolate uplink-port command to remove the specified port as the uplink port of the isolation group.
Caution:
For the same port, only one of the port-isolate enable command and the port-isolate uplink-port command is available, that is, a port cannot be configured as an ordinary port and an uplink port at the same time in the isolation group.
Examples
# Configure the port Ethernet 1/0/1 as the uplink port of the isolation group.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port-isolate uplink-port