03-Port Commands
Chapters Download (214.69 KB)
Table of Contents
Syntax
broadcast-suppression { ratio | pps max-pps }
undo broadcast-suppression
View
Ethernet port view, port group view, OLT port view
Default Level
2: System level
Parameters
ratio: Maximum percentage of broadcast traffic to the total transmission capability of a port. The smaller the ratio, the less broadcast traffic is allowed to pass through the interface. This argument ranges from 1 to 100. The system default is 100.
pps max-pps: Specifies the maximum number of broadcast packets that can be forwarded on a port, in the range 1 to 1488100 (in pps, representing packets per second). Note that:
l When a suppression granularity larger than 1 is specified on the device, the value of the pps keyword should be no smaller than and an integral multiple of the granularity. The broadcast suppression threshold value configured through this keyword on a port may not be the one that actually takes effect. To display the actual broadcast suppression threshold value on a port, you can use the display interface command.
l When no suppression granularity is specified or the suppression granularity is set to 1, the value of the pps keyword should be no smaller than 1, and the broadcast suppression threshold value is the one that actually takes effect on the port.
Description
Use the broadcast-suppression command to set a broadcast traffic threshold on one or multiple Ethernet ports or an OLT port.
Use the undo broadcast-suppression command to restore the default.
By default, broadcast traffic is not suppressed.
If you execute this command in Ethernet port/OLT port view, the configuration takes effect only on the current port. If you execute this command in port-group view, the configuration takes effect on all the ports in the port group.
When broadcast traffic exceeds the broadcast traffic threshold, the system begins to discard broadcast packets until the broadcast traffic drops below the threshold to ensure operation of network services.
Note that, for a 1000 Mbps port, if you have configured its rate as 100 Mbps or it has negotiated its rate to 100 Mbps, after you use the broadcast suppression command to configure the broadcast suppression ratio on the port, the ratio is the maximum amount of allowed broadcast traffic to 100 Mbps, the total transmission capacity of the port.
If you set different suppression ratios in Ethernet port view or port-group view for multiple times, the latest configuration takes effect.
Examples
# For Ethernet port GigabitEthernet 1/1/1, allow broadcast traffic equivalent to 20% of the total transmission capability of GigabitEthernet 1/1/1 to pass.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1/1
[Sysname-GigabitEthernet1/1/1] broadcast-suppression 20
# For all the 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> system-view
[Sysname] port-group manual group1
[Sysname-port-group manual group1] group-member gigabitethernet 1/1/1
[Sysname-port-group manual group1] group-member gigabitethernet 1/1/3
[Sysname-port-group manual group1] broadcast-suppression 20
# For OLT port OLT1/0/1, allow broadcast traffic equivalent to 30% of the total transmission capability of OLT1/0/1 to pass.
<Sysname> system-view
[Sysname] interface olt 1/0/1
[Sysname-Olt1/0/1] broadcast-suppression 30
Syntax
description text
undo description
View
Ethernet port view, OLT port view, ONU port view
Default Level
2: System level
Parameters
Parameters
text: Description of a port, 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 set the description string of the current interface.
Use the undo description command to restore the default.
By default, the description of an interface is the interface name followed by the “interface” string, GigabitEthernet 1/1/1 Interface for example.
Related commands: display interface.
Examples
# Configure the description string of interface GigabitEthernet 1/1/1 as lanswitch-interface.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1/1
[Sysname-GigabitEthernet1/1/1] description lanswitch-interface
Syntax
display brief interface [ interface-type [ interface-number] ] [ | { 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.
|: 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 the brief information of interfaces.
<Sysname> display brief interface
<Sysname> display brief interface
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
NULL0 UP UP(spoofing) NULL --
Vlan1 UP UP ETHERNET 10.10.1.1
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
GE1/1/1 UP 1G(a) full(a) access 1
GE1/1/2 ADM DOWN auto auto access 2
GE1/1/3 DOWN auto auto access 1
GE1/1/4 ADM DOWN auto auto access 1
Olt1/0/1 DOWN -- -- hybrid 1
Olt1/0/2 DOWN -- -- hybrid 1
# Display the information of interfaces beginning with the string “spoof”.
<Sysname> display brief interface | begin spoof
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
NULL0 UP UP(spoofing) NULL --
Vlan1 UP UP ETHERNET 10.1.1.1
# Display the brief information of all UP interfaces.
<Sysname> display brief interface | include UP
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
NULL0 UP UP(spoofing) NULL --
Vlan999 UP UP ETHERNET 10.1.1.1
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
GE1/1/1 UP 1G(a) full(a) access 1
# Display the brief information of all interfaces excluding Ethernet ports.
<Sysname> display brief interface | exclude Eth
Sysname> display brief interface | exclude GE
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
NULL0 UP UP(spoofing) NULL --
Vlan1 UP UP ETHERNET 10.1.1.1
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
Olt1/0/1 DOWN -- -- hybrid 1
Olt1/0/2 DOWN -- -- hybrid 1
Table 1-1 display brief interface command output description
Field |
Description |
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 |
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 |
Syntax
display interface [ interface-type [ interface-number ] ]
View
Any view
Default Level
1: Monitor level
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 GigabitEthernet 1/1/1 and related information.
<Sysname> display interface gigabitethernet 1/1/1
GigabitEthernet1/1/1 current state: UP
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3030-3046-2d45
Description: GigabitEthernet1/1/1 Interface
Loopback is not set
Media type is twisted pair
Port hardware type is 1000_BASE_T
1000Mbps-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 1536
Broadcast MAX-ratio: 100%
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 1
Mdi type: auto
Link delay is 0(sec)
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Port priority: 0
Peak value of input: 441 bytes/sec, at 2009-01-06 11:12:39
Peak value of output: 63 bytes/sec, at 2009-01-06 11:15:34
Last 300 seconds input: 3 packets/sec 331 bytes/sec 0%
Last 300 seconds output: 0 packets/sec 61 bytes/sec 0%
Input (total): 67935 packets, 6285304 bytes
1510 unicasts, 47412 broadcasts, 19013 multicasts
Input (normal): 67935 packets, - bytes
1510 unicasts, 47412 broadcasts, 19013 multicasts
Input: 0 input errors, 0 runts, 0 giants, 0 throttles
0 CRC, 0 frame, - overruns, 0 aborts
- ignored, - parity errors
Output (total): 1427 packets, 281643 bytes
794 unicasts, 3 broadcasts, 630 multicasts, 0 pauses
Output (normal): 1427 packets, - bytes
794 unicasts, 3 broadcasts, 630 multicasts, 0 pauses
Output: 0 output errors, - underruns, - buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
0 lost carrier, - no carrier
Table 1-2 display interface command (in bridge mode) output description
Field |
Description |
GigabitEthernet1/1/1 current state |
Current physical link state of the Ethernet port |
IP Packet Frame Type |
Frame type of the Ethernet port |
Description |
Description of the interface |
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. |
The Maximum Frame Length |
The maximum frame length allowed on an interface |
Broadcast MAX-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) |
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 |
Peak value of input |
Peak value of inbound traffic, in bytes/sec. |
Peak time of input |
Time of peak inbound traffic |
Peak value of output |
Peak value of outbound traffic, in bytes/sec. |
Peak time of output |
Time of peak outbound traffic |
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): 0 packets, 0 bytes - unicasts, 0 broadcasts, 0 multicasts Input (normal): 0 packets, - bytes 0 unicasts, 0 broadcasts, 0 multicasts Input: 0 input errors, 0 runts, 0 giants, 0 throttles 0 CRC, 0 frame, - overruns, 0 aborts - ignored, - parity errors |
Error and packet statistics on the inbound and outbound directions of the interface, where “-“ indicates that the corresponding entry is not supported. The statistics entries include: l Input errors: Input packets with errors l Runts: Packets that are discarded because they are smaller than the medium's minimum packet size. l Giants: Packets that are discarded because they exceed the medium’s maximum packet size. l Throttles: Corrupt or incomplete packets l CRC: Packets that contain corrupted data (checksum error) l Frame: Framing errors l Overruns: Packets that were dropped because the network interface card was overwhelmed. l Aborts: Packets that were dropped due to incorrect descriptors l Output errors: Output packets with errors l Underruns: Packets that were dropped because the network interface card failed to receive packets fast enough l Buffer failures l Aborts: Packet that were dropped l Deferred: Delayed packets l Collisions: Packets retransmitted due to Ethernet collisions l Late collisions: Collisions that were detected late in the transmission of packets Lost carrier: Number of times the carrier signal was lost during transmission |
Output (total): 0 packets, 0 bytes - unicasts, 0 broadcasts, 0 multicasts, 0 pauses Output (normal): 0 packets, - bytes 0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses Output: 0 output errors, - underruns, 0 buffer failures 0 aborts, 0 deferred, 0 collisions, 0 late collisions 0 lost carrier, - no carrier |
Syntax
display optics-parameters interface interface-type interface-number
View
Any view
Default Level
1: Monitor level
Parameters
interface-type: Port type, which can be OLT.
interface-number: OLT port number.
Description
Use the display optics-parameters interface command to display the optical parameter information of the OLT port.
Examples
# Display the optical parameter information of the OLT port.
<Sysname> display optics-parameters interface olt 1/0/1
Configuration source: HOST
AGC lock time(TQ): 11
EPON AGC gate offset(8-nanosecond units): 18
EPON AGC discovery offset(8-nanosecond units): 18
EPON AGC duration(8-nanosecond units): 0
EPON AGC polarity: low
CDR lock time(TQ): 13
EPON CDR gate offset(8-nanosecond units): 26
EPON CDR discovery offset(8-nanosecond units): 26
EPON CDR duration(8-nanosecond units): 0
EPON CDR polarity: high
CDR end of grant gate offset(8-nanosecond units): 36
CDR end of grant duration(8-nanosecond units): 2
CDR end of grant polarity: low
Optics end of grant gate offset(8-nanosecond units):36
Optics end of grant duration(8-nanosecond units): 2
Optics end of grant polarity: low
Discovery re-locking: disable
Laser Rx loss signal polarity: low
EPON optics transmission signal polarity: low
Optics dead zone(8-nanosecond units): 8
Use optics signal loss: false
EPON port link indication polarity: low
CNI port link indication polarity: high
EPON tbc polarity: low
Discovery laser on time(TQ): 32
Discovery laser off time(TQ): 32
EPON Tx signal: enable
Table 1-3 display optics-parameters interface command output description
Field |
Description |
Configuration source: HOST |
Source of the optics configuration settings |
AGC lock time: 14 |
PON upstream data AGC lock time, in TQ |
EPON AGC gate offset: 18 |
AGC reset activation offset before normal grant CDR reset activation |
EPON AGC discovery offset: 18 |
AGC reset activation offset before discovery CDR reset activation |
EPON AGC duration: 0 |
Specific duration, or reference mode |
EPON AGC polarity: low |
AGC reset pulse polarity |
CDR lock time: 20 |
PON Rx signal synchronization time |
EPON CDR gate offset: 32 |
CDR reset activation offset before start of normal grant |
EPON CDR discovery offset: 32 |
CDR reset activation offset before start of discovery window |
EPON CDR duration: 0 |
Specific CDR reset pulse duration, or lock to reference mode |
EPON CDR polarity: high |
CDR reset pulse polarity |
CDR end of grant gate offset: 36 |
End of grant reset activation offset(CDR) |
CDR end of grant duration: 2 |
End of grant reset pulse duration(CDR) |
CDR end of grant polarity: low |
End of grant reset pulse polarity(CDR) |
Optics end of grant gate offset: 36 |
End of grant reset activation offset (Optics) |
Optics end of grant duration: 2 |
End of grant reset pulse duration (Optics) |
Optics end of grant polarity: low |
End of grant reset pulse duration (Optics) |
Discovery re-locking: disable |
Whether to disable or enable the Rx PHY re-locking mechanism during discovery window |
Laser Rx loss signal polarity: low |
Laser Rx loss signal polarity |
EPON optics transmission signal polarity: low |
PON optics transmission signal polarity |
Optics dead zone: 10 |
Minimal length between the end of a grant to the start of the other |
Use optics signal loss: false |
Whether to use the optics signal loss signal provided by the OLT line status state machine: false: Do not use signal true: Use signal |
EPON port link indication polarity: low |
Polarity of the PON port link indication clock |
CNI port link indication polarity: high |
Polarity of the CNI (System) port link indication clock |
EPON tbc polarity: low |
Polarity of output TBC clock for the TBI bus |
Discovery laser on time: 32 |
Laser on time adjustment to the ONUs during the discovery process, if any |
Discovery laser off time: 32 |
Laser off time adjustment to the ONUs during the discovery process, if any |
EPON Tx signal: disable |
The OLT PON Tx signal (disable or enable) When the signal is disabled, no data is transmitted on the PON |
Syntax
display port combo
View
Any view
Default Level
1: Monitor level
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/1/1 GigabitEthernet1/1/2
2 GigabitEthernet1/1/3 GigabitEthernet1/1/4
Table 1-4 display port combo command output description
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 smaller port number is active by default. The port number varies with device models. 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.
Syntax
display port-group manual [ all | name port-group-name ]
View
Any view
Default Level
2: System level
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 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 the 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 group1:
GigabitEthernet1/1/1 GigabitEthernet1/1/2 GigabitEthernet1/1/3
GigabitEthernet1/1/4
Member of group2:
None
# Display details of the port group named group1.
Member of group1:
GigabitEthernet1/1/1 GigabitEthernet1/1/2 GigabitEthernet1/1/3
GigabitEthernet1/1/4
Table 1-5 display port-group manual command output description
Field |
Description |
Member of group |
Member of the manual port group |
Syntax
display uni-information uni-number
View
ONU port view
Default Level
1: Monitor level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
Description
Use the display uni-information command to display the state information about the current UNI.
This command takes effect on H3C ONUs only.
Examples
# Display the state information about UNI 1 of the ONU.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] display uni-information 1
uni-number : 1
=========================================================
Configuration :
PHY admin state for ethernet port : UP
Flow-control : closed
Auto-negotiation state : enable
Port-isolate : disable
Mid-type : auto
port-policy :
inbound :
CIR : 102400
Bucket depth : 0
Extra burst size : 0
outbound :
CIR : 102400
Vlan-configuration :
Current-vlan-mode : transparent
Multicast-vlan : none
Multicast-group-number : 64
Multicast-strip-tag : disable
=========================================================
Current Status :
Link-state : UP
Auto-negotiation local technology ability :
100BASE-TX
Full duplex 100BASE-TX
Full duplex 10BASE-T
10BASE-T
Symmetric PAUSE operation for full duplex links
Asymmetric PAUSE operation for full duplex links
Auto-negotiation advertised technology ability :
100BASE-TX
Full duplex 100BASE-TX
10BASE-T
Full duplex 10BASE-T
100Mbps-speed mode, Full-duplex mode
Link speed type is autonegotiation, Link duplex type is autonegotiation
Input(total): 377617755 packets, 1147922332952 bytes
377617754 broadcasts, 0 multicasts, 0 unicasts, 0 pauses
Input: 1 input errors, 0 runts, 0 giants, 1 InRxErr, 0 CRC
0 buffer failures
Output(total): 869387401 packets, 1354546539631 bytes
3681155582 broadcasts, 866864 multicasts, 1482332251 unicasts, 0 pause
s
Output: 0 output errors, 0 deferred, 0 collisions, 0 InTxErr
Table 1-6 display uni-information command output description
Field |
Description |
uni-number : 1 |
UNI port number |
Configuration : |
Configuration information of the UNI port |
PHY admin state for ethernet port : UP |
Administrative state of the port, which can be: l UP: The port is brought up with the undo shutdown command. l DOWN: The port is manually shut down. |
Flow-control : closed |
Flow control state, which can be: l open: Flow control is enabled. l closed: Flow control is disabled. |
Auto-negotiation state : enable |
Auto-negotiation state, which can be: l enable: Auto-negotiation is enabled. l disable: Auto-negotiation is disabled. |
Port-isolate : disable |
Whether the port joins a port isolation group: l enable: The port has joined a port isolation group. l disable: The port has not joined a port isolation group. |
Mid-type : auto |
Cable type supported by the UNI port, which can be: l across: Crossover cables. l auto: Both crossover cables and straightthrough cables l normal: Straightthrough cables |
port-policy : inbound : CIR : 102400 Bucket depth : 0 Extra burst size : 0 outbound : CIR : 102400 |
Upstream/downstream traffic policing parameters of the UNI: l inbound: Upstream traffic policing parameters l outbound: Downstream traffic policing parameters |
Vlan-configration : Current-vlan-mode : transparent |
VLAN mode |
Multicast-vlan : none Multicast-group-number : 64 |
Number of multicast groups supported by the UNI |
Multicast-strip-tag : disable |
Whether it is enabled to strip the VLAN tag off the downstream multicasts on the UNI |
Current Status |
Display the current status |
Link-state : UP |
Layer-2 link state |
Auto-negotiation local technology ability : 100BASE-TX Full duplex 100BASE-TX Full duplex 10BASE-T 10BASE-T Symmetric PAUSE operation for full duplex links Asymmetric PAUSE operation for full duplex links |
Auto-negotiation capability of the local port: l 100BASE-TX l Full duplex 100BASE-TX l Full duplex 10BASE-T l 10BASE-T l Symmetric PAUSE frames for full duplex links Asymmetric PAUSE frames for full duplex links |
Auto-negotiation advertised technology ability : 100BASE-TX Full duplex 100BASE-TX 10BASE-T Full duplex 10BASE-T |
Auto-negotiation advertisement capability: l 100BASE-TX l Full duplex 100BASE-TX l 10BASE-T l Full duplex 10BASE-T |
Input(total): 377617755 packets, 1147922332952 bytes 377617754 broadcasts, 0 multicasts, 0 unicasts, 0 pauses |
Totally, 377617755 packets (1147922332952 bytes) are received. Among these packets, there are 377617754 broadcast packets, 0 multicast packets, 0 unicast packets, and 0 pause frames. |
Input: 1 input errors, 0 runts, 0 giants, 1 InRxErr, 0 CRC 0 buffer failures |
1 error frames, 0 runts, and 0 giants are received. There are 0 buffer failures. |
Output(total): 869387401 packets, 1354546539631 bytes 3681155582 broadcasts, 866864 multicasts, 1482332251 unicasts, 0 pause |
Totally, 869387401 packets (1354546539631 bytes) are sent, including 3681155582 broadcast packets, 866864 multicast packets, 1482332251 unicast packets, and 0 pause frames. |
Output: 0 output errors, 0 deferred, 0 collisions, 0 InTxErr |
There are 0 output errors, 0 deferred packets, 0 collisions, and 0 error packets in transmission. |
l A runt is a frame that has a length less than 64 bytes in a correct format and contains a valid CRC field.
l A giant is a frame that has a valid length greater than 1518 bytes (without VLAN tag) or 1522 bytes (with VLAN tag).
l Buffer failures indicate the number of packets discarded due to insufficient transmit buffer on the port.
l A deferred packet means a packet whose transmission is delayed upon detection of a collision before the transmission.
l A collision frame refers to a packet whose transmission is stopped upon detection of a collision during the packet transmission.
Syntax
duplex { auto | full | half }
undo duplex
View
Ethernet port 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. The optical interface of a Combo port does not support the half keyword.
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.
Related commands: speed.
Examples
# Configure the interface GigabitEthernet 1/1/1 to work in full-duplex mode.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1/1
[Sysname-GigabitEthernet1/1/1] duplex full
Syntax
flow-control
undo flow-control
View
Ethernet port view, OLT port view
Default Level
2: System level
Parameters
None
Description
Use the flow-control command to enable flow control on a port.
Use the undo flow-control command to disable flow control on a port.
By default, flow control on a port is disabled.
The flow control function takes effect on the local port only when it is enabled on both the local and peer devices.
Examples
# Enable flow control on Ethernet port GigabitEthernet 1/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1/1
[Sysname-GigabitEthernet1/1/1] flow-control
# Enable flow control on OLT port OLT 1/0/1.
<Sysname> system-view
[Sysname] interface olt 1/0/1
[Sysname-Olt1/0/1] flow-control
Syntax
flow-interval interval
undo flow-interval
View
Ethernet port view
Default Level
2: System level
Parameters
interval: Interval at which the port collects statistics. It ranges from 5 to 300 seconds and must be a multiple of 5. The default value is 300.
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 gigabitethernet 1/1/1
[Sysname-GigabitEthernet1/1/1] flow-interval 100
Syntax
group-member interface-list
undo group-member interface-list
View
Port group view
Default Level
2: System level
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 assign an Ethernet port or a list of Ethernet ports to the manual port group.
Use the undo group-member command to remove an Ethernet port or a list of Ethernet ports from the manual port group.
By default, there is no Ethernet port in a manual port group.
Examples
# Add port GigabitEthernet 1/1/1 to the manual port group named group1.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group-manual-group1] group-member gigabitethernet 1/1/1
Syntax
interface interface-type interface-number
View
System view
Default Level
2: System level
Parameters
interface-type: Interface type, which can be Bridge-Aggregation, GigabitEthernet, LoopBack, NULL, OLT, ONU, or VLAN-interface.
interface-number: Interface number. The value of this argument varies with interface types.
Description
Use the interface command to enter port view.
Note that, before entering ONU port view by running the interface command, you need to first run the using onu command in OLT port view to create the corresponding ONU port. For details about these commands, see related configuration and command manuals for the EPON system.
Examples
# Enter GigabitEthernet 1/1/1 port view.
<Sysname> system-view
[Sysname] interface gigabitethernet1/1/1
[Sysname-GigabitEthernet1/1/1]
Syntax
jumboframe enable [ value ]
undo jumboframe enable
View
Ethernet port view, port group view
Default Level
2: System level
Parameters
value: Maximum length of Ethernet frames that are allowed to pass through, in the range 1536 to 9216 bytes, the default value is 1536.
Description
Use the jumboframe enable command to allow jumbo frames with the specified length to pass through an Ethernet port.
Use the undo jumboframe enable command to prevent jumbo frames from passing through an Ethernet port.
By default, the maximum length of Ethernet frames allowed to pass through an Ethernet port is 1536 bytes.
You can configure length of jumbo frames on Ethernet port view or port-group view to allow them to pass through Ethernet ports.
l Execution of this command under Ethernet port view will only apply the configurations to the current Ethernet port.
l Execution of this command under port group view will apply the configurations to the Ethernet port(s) in the port group.
The latest configuration takes effect if you configure the value argument for multiple times in system view, Ethernet port view, or port-group view.
Examples
# Enable jumbo frames to pass through all the Ethernet ports in the manual port group named group1.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group manual group1] group-member gigabitethernet 1/1/1
[Sysname-port-group manual group1] jumboframe enable
# Enable jumbo frames to pass through GigabitEthernet 1/1/3.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1/3
[Sysname-GigabitEthernet1/1/1] jumboframe enable
Syntax
link-delay delay-time
undo link-delay
View
Ethernet port view, ONU port view
Default Level
2: System level
Parameters
delay-time: Up/down suppression time for the physical connection of a port (in seconds), in the range 0 to 3000..
Description
Use the link-delay command to configure the suppression time of physical-link-state changes on a port.
Use the undo link-delay command to restore the default suppression time.
The default suppression time of physical-link-state changes on a port is 0 second.
Examples
# Set the up/down suppression time of the physical connection of an Ethernet port to 8 seconds.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1/1
[Sysname-GigabitEthernet1/1/1] link-delay 8
# Set the up/down suppression time of the physical connection of an ONU port to 10 seconds.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] link-delay 10
Syntax
linktest [ frame-number value | frame-size value | delay { on | off } | vlan-tag
{ on [ vlan-priority value | vlan-id value ] | off } ] *
View
ONU port view
Default Level
2: System level
Parameters
frame-number value: Specifies the number of test frames. The value argument ranges from 1 to 250 and defaults to 20.
frame-size value: Specifies the test frame size in bytes. The value argument ranges from 60 to 1514 and defaults to 1000.
delay: Specifies whether or not to enable delay test. The on keyword enables delay test. The off keyword disables delay test.
vlan-tag: Specifies whether or not to insert VLAN tags in test frames. The on keyword specifies to insert VLAN tags in test frames. The off keyword specifies not to insert VLAN tags to test frames. By default, test frames contain VLAN tags.
vlan-priority value: Specifies the VLAN priority of test frames. The value argument ranges from 0 to 7, with value 0 representing the lowest priority, and value 7 representing the highest priority.
vlan-id value: Specifies the VLAN ID of test frames. The value argument ranges from 1 to 4094 and defaults to 1.
Description
Use the linktest command to test the connectivity of the optical link between the OLT and the ONU.
Make sure the ONU is online before you perform the link connectivity test.
Examples
# Set the number of test frames to 100 to test the link between the OLT and ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] linktest frame-number 100
It may affect data transmission, continue?[Y/N]:y
Maximum delay(in TQ): 26408
Mean delay(in TQ) : 24777
Minimum delay(in TQ): 19922
Sent frames : 100
Received frames : 100
Error frames : 0
If The link is disconnected! is displayed, it means that the ONU sent some frames successfully but no correct frames are received, namely, the value of the Received frames field is 0.
Syntax
loopback { external | internal }
undo loopback
View
Ethernet port view, ONU port view
Default Level
2: System level
Parameters
external: Enables external loopback testing on a port.
internal: Enables internal loopback testing on a port.
Description
Use the loopback command to enable port loopback testing.
Use the undo loopback command to disable port loopback testing.
By default, port loopback testing is disabled.
l Port loopback testing should be enabled while testing certain functionalities, such as during the initial identification of any network failure.
l While enabled, port loopback testing will work in full-duplex mode. The port will return to its original state upon completion of the loopback testing.
Examples
# Enable loopback testing on GigabitEthernet 1/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1/1
[Sysname-GigabitEthernet1/1/1] loopback internal
# Enable loopback testing on ONU 1/0/1:1.
<Sysname> system-view
[Sysname] interface Onu 1/0/1:1
[Sysname-Onu1/0/1:1] loopback internal
Syntax
loopback enable
undo loopback enable
View
Default Level
2: System level
Parameters
None
Use the loopback enable command to enable MAC loopback for the ONU.
Use the undo loopback enable command to cancel loopback.
By default, MAC loopback is not enabled for an ONU.
l Use this command only when necessary as enabling MAC loopback for an ONU may affect the device performance.
l You need to use the undo loopback enable command to cancel the loopback, which does not end automatically.
Examples
# Enable MAC loopback on ONU 1/0/1:1, and cancel the loopback one minute later.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1]loopback enable
Warning: enable loopback will affect system performance and business, are you sure?(Y/N)y
[Sysname-Onu1/0/1:1]undo loopback enable
Syntax
mdi { across | auto | normal }
undo mdi
View
Ethernet port view
Default Level
2: System level
Parameters
across: Specifies the MDI mode as across.
auto: Specifies the MDI mode as auto.
normal: Specifies the MDI mode as normal.
Description
Use the mdi command to configure the MDI mode for an Ethernet port.
Use the undo mdi command to restore the system default.
By default, the MDI mode of an Ethernet port is auto, that is, the Ethernet port determines the physical pin roles (transmit or receive) through negotiation.
The command is not applicable to Combo ports operating as optical ports.
Examples
# Set the MDI mode of GigabitEthernet 1/1/1 to across.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/1/1
[Sysname-GigabitEthernet1/1/1] mdi across
Syntax
multicast-suppression { ratio | pps max-pps }
undo multicast-suppression
View
Ethernet port view, port group view, OLT port view
Default Level
2: System level
Parameters
ratio: Maximum percentage of multicast traffic to the total transmission capability of a port, in the range 1 to 100. The smaller the ratio is, the less multicast traffic is allowed to pass through the interface.
pps max-pps: Specifies the maximum number of multicast packets allowed on a port per second. The max-pps argument ranges from 1 to 1488100 in pps, representing packets per second.
Note that:
l When a suppression granularity larger than 1 is specified on the device, the value of the pps keyword should be no smaller than and an integral multiple of the granularity. The multicast suppression threshold value configured through this keyword on a port may not be the one that actually takes effect. To display the actual multicast suppression threshold value on a port, you can use the display interface command.
l When no suppression granularity is specified or the suppression granularity is set to 1, the value of the pps keyword should be no smaller than 1, and the multicast suppression threshold value is the one that actually takes effect on the port.
Description
Use the multicast-suppression command to configure multicast storm suppression ratio on a port.
Use the undo multicast-suppression command to restore the default multicast suppression ratio.
By default, multicast traffic is not suppressed.
If you execute this command in Ethernet port/OLT port view, the configurations take effect only on the current port. 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 maximum value configured, the system will discard the extra packets so that the multicast traffic ratio can drop below the limit to ensure that the network functions properly.
Note that, for a 1000 Mbps port, if you have configured its rate as 100 Mbps or it has negotiated its rate to 100 Mbps, after you use the multicast suppression command to configure the multicast suppression ratio on the port, the ratio is the maximum amount of allowed multicast traffic to 100 Mbps, the total transmission capacity of the port.
If you set different suppression ratios in Ethernet port view or port-group view for multiple times, the latest configuration takes effect.
Examples
# For Ethernet port GigabitEthernet1/1/1, allow multicast traffic equivalent to 20% of the total transmission capability of GigabitEthernet1/1/1 to pass.
<Sysname> system-view
[Sysname] interface GigabitEthernet1/1/1
[Sysname-GigabitEthernet1/1/1] multicast-suppression 20
# For all the ports of the manual port group group1, allow multicast traffic equivalent to 20% of the total transmission capability of each port to pass.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group manual group1] group-member GigabitEthernet1/1/1
[Sysname-port-group manual group1] group-member GigabitEthernet1/1/3
[Sysname-port-group manual group1] multicast-suppression 20
# For OLT port OLT 1/0/1, allow multicast traffic equivalent to 30% of the total transmission capability of OLT 1/0/1 to pass.
<Sysname> system-view
[Sysname] interface Olt 1/0/1
[Sysname-Olt1/0/1] multicast-suppression 30
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: Specifies name of a manual port group, a string of 1 to 32 characters.
Description
Use the port-group manual command to create a manual port group and enter manual port 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]
Syntax
reset counters interface [ interface-type [ interface-number ] ]
View
User view
Default Level
2: System level
Parameters
interface-type: Interface type.
interface-number: Interface number.
Description
Use the reset counters interface command to clear the statistics of a port.
Before sampling network traffic within a specific period of time on a port, 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 number are specified, this command clears the statistics of the specified interface.
Examples
# Clear the statistics of GigabitEthernet 1/1/1.
<Sysname> reset counters interface GigabitEthernet 1/1/1
# Clear the statistics of ONU port ONU1/0/1:1.
<Sysname> reset counters interface Onu 1/0/1:1
Syntax
reset counters uni [ uni-number ]
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the maximum number of UNI ports supported by the ONU. By default, the maximum number is 80.
Description
Use the reset counters uni command to clear the counter information of the specified UNI port.
If no UNI is specified, the counter information of all the UNIs of the ONU is cleared.
l This command takes effect on H3C ONUs only.
l To use this command, make sure the ONU is up.
Examples
# Clear the counter information of UNI port 1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] reset counters uni 1
Syntax
shutdown
undo shutdown
View
Ethernet port view, OLT port view, ONU port view
Default Level
2: System level
Parameters
None
Description
Use the shutdown command to shut down a port.
Use the undo shutdown command to bring up a port.
By default, a port 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.
Note that in case of a double Combo port, only one interface (either the optical port or the electrical port) is active at a time. That is, once the optical port is active (after you execute the undo shutdown command), the electrical port will be inactive automatically, and vice versa.
Examples
# Shut down interface GigabitEthernet 1/1/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/1/1
[Sysname- GigabitEthernet1/1/1] shutdown
# Bring up interface GigabitEthernet 1/1/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/1/1
[Sysname-GigabitEthernet1/1/1] undo shutdown
Syntax
speed { 10 | 100 | 1000 | auto }
undo speed
View
Ethernet port view
Default Level
2: System level
Parameters
10: Specifies the interface rate as 10 Mbps. The optical interface of a Combo port does not support the 10 keyword.
100: Specifies the interface rate as 100 Mbps. The optical interface of a Combo port does not support the 100 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 port data rate.
Use the undo speed command to restore Ethernet port data rate.
By default, the rate of an Ethernet port is determined through auto negotiation..
Related commands: duplex, speed auto.
Examples
# Configure the port rate as 100 Mbps for port GigabitEthernet 1/1/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/1/1
[Sysname-GigabitEthernet1/1/1] speed 100
Syntax
speed auto [ 10 | 100 | 1000 ] *
undo speed
View
Ethernet port view
Default Level
2: System level
Parameters
10: Specifies the interface auto-negotiation rate as 10 Mbps.
100: Specifies the interface auto-negotiation rate as 100 Mbps.
1000: Specifies the interface auto-negotiation rate as 1000 Mbps.
Description
Use the speed auto command to configure the auto-negotiation rate range of the current Ethernet port.
Use the undo speed command to restore the default.
The default value of the command varies with your device models.
If you repeatedly use the speed command and the speed auto command to configure the rate of an interface, only the latest configuration takes effect. For example, if you configure speed 100 after configuring speed auto 100 1000 on an interface, the rate is 100 Mbps by force, with no negotiation performed between the interface and the peer end; if you configure speed auto 100 1000 after configuring speed 100 on the interface, the rate through negotiation can be either 100 Mbps or 1000 Mbps only.
Note that:
l If the auto negotiation rate range specified on the local port and that on the peer do not overlap, for example, 10 Mbps and 100 Mbps are specified on one end while 1000 Mbps is specified on the other, the auto negotiation of interface rate will fail.
l If the auto negotiation rate range specified on the local port and that on the peer overlap, for example, 10 Mbps and 100 Mbps are specified on one end while 100 Mbps and 1000 Mbps are specified on the other, the result of the interface rate auto negotiation is the overlapped part, that is, 100 Mbps in the example.
l If the auto negotiation rate range specified on the local port and that on the peer are the same, for example, 100 Mbps and 1000 Mbps are specified on both ends, the result of the interface rate auto negotiation is the larger value, that is, 1000 Mbps in the example.
This function is available for auto-negotiation-capable Gigabit Ethernet electrical ports only.
Examples
# Set the auto-negotiation rate of interface GigabitEthernet 1/1/1 to 10 Mbps or 1000 Mbps.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1/1
[Sysname-GigabitEthernet1/1/1] speed auto 10 1000
Syntax
unicast-suppression { ratio | pps max-pps }
undo unicast-suppression
View
Ethernet port view, port group view, OLT port view
Default Level
2: System level
Parameters
ratio: Maximum percentage of unicast traffic to the total transmission capability of a port, in the range of 1 to 100. The smaller the ratio is, the less unicast traffic is allowed through the interface.
pps max-pps: Specifies the maximum number of unknown unicast packets passing through a port per second. The max-pps argument ranges from 1 to 148,8100, in pps, representing packets per second. Note that:
l When a suppression granularity larger than 1 is specified on the device, the value of the pps keyword should be no smaller than and an integral multiple of the granularity. The unicast suppression threshold value configured through this keyword on a port may not be the one that actually takes effect. To display the actual unicast suppression threshold value on a port, you can use the display interface command.
l When no suppression granularity is specified or the suppression granularity is set to 1, the value of the pps keyword should be no smaller than 1, and the unicast suppression threshold value is the one that actually takes effect on the port.
Description
Use the unicast-suppression command to configure a unicast storm suppression ratio.
Use the undo unicast-suppression command to restore the default unicast suppression ratio.
By default, unicast traffic is not suppressed.
If you execute this command in Ethernet port/OLT port view, the configurations take effect only on the current port. If you execute this command in port-group view, the configurations take effect on all ports in the port group
When unicast traffic exceeds the maximum value configured, the system will discard the extra packets so that the unknown unicast traffic ratio can drop below the limit to ensure that the network functions properly.
Note that, for a 1000 Mbps port, if you have configured its rate as 100 Mbps or it has negotiated its rate to 100 Mbps, after you use the unicast suppression command to configure the unknown unicast suppression ratio on the port, the ratio is the maximum amount of allowed unknown unicast traffic to 100 Mbps, the total transmission capacity of the port.
If you set different suppression ratios in Ethernet port view or port-group view repeatedly, the latest configuration takes effect.
Examples
# For Ethernet port GigabitEthernet 1/1/1, allow unknown unicast traffic equivalent to 20% of the total transmission capability of the interface to pass and suppress the excessive unknown unicast packets.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/1/1
[Sysname-GigabitEthernet1/1/1] unicast-suppression 20
# For all the ports of the manual port group group1, allow unknown unicast traffic equivalent to 20% of the total transmission capability of each port to pass and suppress excessive unknown unicast packets.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group manual group1] group-member GigabitEthernet 1/1/1
[Sysname-port-group manual group1] group-member GigabitEthernet 1/1/3
[Sysname-port-group manual group1] unicast-suppression 20
# For OLT port OLT 1/0/1, allow unknown unicast traffic equivalent to 30% of the total transmission capability of the interface to pass and suppress the excessive unknown unicast packets.
<Sysname> system-view
[Sysname] interface Olt 1/0/1
[Sysname-Olt 1/0/1] unicast-suppression 30
Syntax
uni uni-number auto-negotiation
undo uni uni-number auto-negotiation
View
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
Description
Use the uni auto-negotiation command to enable auto-negotiation on a UNI port.
Use the undo uni auto-negotiation command to disable auto-negotiation on a UNI port.
By default, auto-negotiation is enabled on a UNI port.
When auto-negotiation is enabled on a UNI port, you cannot configure the duplex state, MDI mode, or rate of the UNI port.
Examples
# Enable auto-negotiation on UNI port 1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 auto-negotiation
Syntax
uni uni-number description text
undo uni uni-number description
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number of an ONU, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
text: String of 1 to 40 characters describing the UNI.
Description
Use the uni description command to configure a description for a UNI.
Use the undo uni uni-number description command to restore the default.
By default, no description is configured for a UNI.
Examples
# Configure the description of UNI 1 as Test.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 description Test
Syntax
uni uni-number duplex { full | half | auto }
undo uni uni-number duplex
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
full: Specifies the port to be in full duplex mode.
half: Specifies the port to be in half duplex mode.
auto: Specifies the duplex mode of the port to be auto-negotiation.
Description
Use the uni duplex command to set the duplex mode for UNIs.
Use the undo uni duplex command to restore the duplex mode on the current port to the default value.
By default, the duplex mode on UNIs is full.
This command takes effect on H3C ONUs only.
Examples
# Configure UNI 1 to operate in the auto-negotiation mode.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 duplex auto
Syntax
uni uni-number flow-control
undo uni uni-number flow-control
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
Description
Use the uni flow control command to enable flow control for a UNI.
Use the undo uni flow-control command to disable flow control.
By default, flow control is disabled on a UNI.
Examples
# Enable flow control for UNI 1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 flow-control
Syntax
uni uni-number mdi { across | auto | normal }
undo uni uni-number mdi
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
across: Specifies the cable type to be crossover.
auto: Specifies to auto-sense the cable type.
normal: Specifies the cable type to be straight-through.
Description
Use the uni mdi command to set the MDI mode for UNIs.
Use the undo uni uni-number mdi command to restore the MDI mode for UNIs to the default value.
By default, the MDI mode for UNIs is auto, that is, the UNIs of the ONU can recognize the cable type automatically.
This command takes effect on H3C ONUs only.
Examples
# Set the MDI mode of UNI 1 to auto.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 mdi auto
Syntax
uni uni-number restart auto-negotiation
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
Description
Use the uni restart auto-negotiation command to force a UNI port to restart the auto-negotiation.
Note that this command takes effect only when auto-negotiation is enabled on the UNI port.
Examples
# Force UNI 1 to restart the auto-negotiation.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 restart auto-negotiation
Syntax
uni uni-number shutdown
undo uni uni-number shutdown
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
Description
Use the uni shutdown command to disable the UNIs.
Use the undo uni shutdown command to enable the UNIs.
By default, all the UNIs are disabled.
Examples
# Disable UNI 1.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 shutdown
Syntax
uni uni-number speed { 10 | 100 | auto }
undo uni uni-number speed
View
ONU port view
Default Level
2: System level
Parameters
uni-number: UNI number, in the range 1 to the number of UNI ports of the current ONU. The number of UNIs can be up to 80.
10: Specifies the port speed to 10 Mbps.
100: Specifies the port speed to 100 Mbps.
auto: Specifies the port speed to be auto-negotiated.
Description
Use the uni uni-number speed command to set the operating speed for a UNI.
Use the undo uni uni-number speed command to restore the default operating speed for a UNI.
By default, the operating speed of a UNI port is 100Mbps.
This command takes effect on H3C ONUs only.
Examples
Specify the speed for UNI 1 to 10 Mbps.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 speed 10
Syntax
uni uni-number virtual-cable-test
View
ONU port view
Default Level
2: System level
Parameters
uni-number: Number of an UNI on the ONU, in the range 1 to number of current ONU UNIs. The number of UNIs can be up to 80.
Description
Use the uni virtual-cable-test command to test the cable connected to the specified UNI port of the ONU once and to display the testing result.
Note that:
l When the cable is functioning properly, the OLT does not display the length of the cable connected to the specified UNI port of the ONU under test in the test result; instead, the OLT displays – metres for the corresponding field.
l When the cable is not functioning properly, the cable length in the test result represents the length from the current interface to the failed position.
l This operation will re-enable an up UNI port link.
l The test result is for your information only. The maximum error in the tested cable length is 10 m. A hyphen “-” indicates that the corresponding test item is not supported.
l Support for the uni virtual-cable-test command depends on your ONU model.
Examples
# Use the uni virtual-cable-test command to test the cable connected to UNI 1 of the ONU specified by ONU 1/0/1:1 on the OLT once and to display the testing result.
<Sysname> system-view
[Sysname] interface onu 1/0/1:1
[Sysname-Onu1/0/1:1] uni 1 virtual-cable-test
Cable status: abnormal(open), 5 metres
Pair Impedance mismatch: -
Pair skew: - ns
Pair swap: -
Pair polarity: -
Insertion loss: - db
Return loss: - db
Near-end crosstalk: - db
Table 1-7 uni virtual-cable-test command output description
Field |
Description |
Cable status |
Cable state, which can be normal, abnormal, abnormal(open), abnormal(short), or failure. |
Pair Impedance mismatch |
Pair impedance mismatch. The hyphen “-” indicates that the test item is not supported. |
Pair skew |
Pair skew. The hyphen “-” indicates that the test item is not supported. |
Pair swap |
Pair swap. The hyphen “-” indicates that the test item is not supported. |
Pair polarity |
Pair polarity. The hyphen “-” indicates that the test item is not supported. |
Insertion loss |
Insertion loss. The hyphen “-” indicates that the test item is not supported. |
Return loss |
Return loss. The hyphen “-” indicates that the test item is not supported. |
Near-end crosstalk |
Near-end crosstalk. The hyphen “-” indicates that the test item is not supported. |
Syntax
using onu { onu-number1 [ to onu-number2 ] } &<1-10>
undo using onu { onu-number1 [ to onu-number2 ] } &<1-10>
View
OLT port view
Default Level
2: System level
Parameters
onu-number1: ONU port number, in the range 1 to 64.
to onu-number2: Specifies an ONU port range. onu-number2 is an ONU port number, in the range 1 to 64.
&<1-10>: Indicates that you can specify up to 10 ONU port numbers/port ranges.
Description
Use the using onu command to create virtual ONU port(s) for the current OLT port.
Use the undo using onu command to remove the specified ONU port(s) under the current OLT port.
By default, no ONU port is created for any OLT port when the device is started up.
To use the interface command to enter ONU port view, use the using onu command to create the corresponding ONU port first.
Examples
# Create ONU 1/0/1:5 whose sub-channel number is 5 for OLT 1/0/1.
<Sysname> system-view
[Sysname] interface olt 1/0/1
[Sysname-Olt1/0/1] using onu 5
Please wait…Done.
# Create ONU ports whose sub-channel numbers are 1 to 5 for OLT 1/0/1.
<Sysname> system-view
[Sysname] interface olt 1/0/1
[Sysname-Olt1/0/1] using onu 1 to 5
Please wait….Done.
[Sysname-Olt1/0/1] display brief interface onu
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
Onu1/0/1:1 DOWN -- -- access 1
Onu1/0/1:2 DOWN -- -- access 1
Onu1/0/1:3 DOWN -- -- access 1
Onu1/0/1:4 DOWN -- -- access 1
Onu1/0/1:5 DOWN -- -- access 1