Contents

EPON commands ············································································1 OLT commands ························································································································· 1 alarm device-fatal-error enable ······························································································· 1 alarm oam critical-event enable ······························································································ 1 alarm oam dying-gasp enable ································································································ 2 alarm oam local-link-fault enable ···························································································· 3 alarm onu-laser always-on enable ··························································································· 3 alarm onu-over-limit enable ··································································································· 4 alarm registration-error enable ······························································································· 5 authentication-mode ············································································································ 5 dba-parameters ·················································································································· 6 dba-report queue-set-id queue-id threshold ··············································································· 7 dba-report queue-set-number ································································································ 8 display epon authentication-mode ··························································································· 8 display epon fiber-backup group ····························································································· 9 display epon oam ·············································································································· 10 display epon onu-event ······································································································· 11 display epon optics-parameters ···························································································· 11 display epon parameter ······································································································ 12 display epon statistics ········································································································ 13 display epon version ·········································································································· 13 display epon workmode ······································································································ 14 display interface ················································································································ 15 encryption update-time ······································································································· 21 fiber-backup group ············································································································· 22 ftth ································································································································· 23 grant-filtering enable ·········································································································· 23 interface ·························································································································· 23 max-rtt ···························································································································· 24 member ··························································································································· 24 monitor enable ·················································································································· 25 multicast call-detail-record cache-limit ···················································································· 26 multicast call-detail-record enable ························································································· 26 multicast call-detail-record record-delay ················································································· 27 multicast call-detail-record report-interval ················································································ 27 multicast call-detail-record send ··························································································· 28 oam-discovery-timeout ······································································································· 29 olt-mode ·························································································································· 29 onu invalid-address mode ··································································································· 30 onu snmp port-limit ············································································································ 31 port fiber-backup group ······································································································· 32 port switch-over ················································································································ 33 port-type ·························································································································· 33 timer monitor ···················································································································· 34 vendor-compatible ············································································································· 35 ONU remote management commands ·························································································· 36 alarm enable ···················································································································· 36 bandwidth-downstream ······································································································· 42 bandwidth-downstream policy enable ···················································································· 43 bind onu-id ······················································································································· 43 deregister onu ·················································································································· 44 display dhcp-client ············································································································· 45 display epon multicast ········································································································ 45 display onu ······················································································································ 46 display onu loid ················································································································· 48 display onu mac-address ···································································································· 49 display onu protocol ··········································································································· 49

i display onu protocol smart-link uni-bind information ·································································· 51 display onu protocol transparent-multicast ·············································································· 51 display serial-information ···································································································· 52 display uni ······················································································································· 52 display vendor-specific information ························································································ 56 encryption enable ·············································································································· 58 forward-error-correction ······································································································ 59 ip address ························································································································ 59 management-vlan ·············································································································· 60 multicast mode ················································································································· 61 multicast vlan-id ip ············································································································· 61 multicast-control host-aging-time ·························································································· 62 onu authentication-domain ·································································································· 63 onu bind auto ··················································································································· 64 onu bind batch ·················································································································· 65 onu bind one-to-one ··········································································································· 66 onu event ························································································································ 67 onu mac-address timer ······································································································· 68 onu multicast fast-leave enable ···························································································· 68 onu port-isolate enable ······································································································· 69 onu protocol enable ··········································································································· 70 onu protocol igmp-snooping timer ························································································· 70 onu protocol igmp-snooping suppression ················································································ 71 onu protocol loopback-detection action ·················································································· 72 onu protocol smart-link flush enable ······················································································ 73 onu protocol smart-link uni-bind enable ·················································································· 73 onu protocol transparent-multicast ························································································ 74 onu statistics enable ·········································································································· 75 qos cos-local-precedence-map ····························································································· 75 reboot onu ······················································································································· 76 reset counters serial ··········································································································· 77 reset counters uni ·············································································································· 77 serial databit ····················································································································· 78 serial parity ······················································································································ 78 serial session protocol-type ································································································· 79 serial speed ····················································································································· 80 serial stopbit ····················································································································· 81 shutdown management-vlan-interface···················································································· 82 -txpower ··········································································································· 82 uni auto-negotiation ··········································································································· 83 uni classification-marking ···································································································· 84 uni description ·················································································································· 86 uni duplex ························································································································ 86 uni flow-control ················································································································· 87 uni igmp-snooping fast-leave ······························································································· 88 uni mac-address max-mac-count ·························································································· 88 uni mdix-mode ·················································································································· 89 uni mirroring-port ··············································································································· 90 uni monitor-port ················································································································· 91 uni multicast vlan ··············································································································· 91 uni multicast-control multicast-address ··················································································· 92 uni multicast-group-number ································································································· 93 uni multicast-strip-tag enable ······························································································· 94 uni port-isolate ·················································································································· 95 uni port-policy inbound ······································································································· 95 uni port-policy outbound ······································································································ 96 uni qinq ··························································································································· 97 uni restart auto-negotiation ·································································································· 97 uni shutdown ···················································································································· 98 uni speed ························································································································· 99 uni statistics enable ··········································································································· 99 uni transparent-multicast ··································································································· 100

ii uni virtual-cable-test ········································································································· 101 uni vlan-mode ················································································································· 102 update onu filename ········································································································ 104 update onu type ·············································································································· 105 upstream-sla ·················································································································· 107 using onu ······················································································································· 107 voip-port shutdown ·········································································································· 108 BCMP proxy commands ·········································································································· 109 bcmp-proxy enable ·········································································································· 109 bcmp-proxy server address ······························································································· 109 bcmp-proxy server port ····································································································· 110 bcmp-proxy vlan ·············································································································· 110

iii

EPON commands

The device supports the following EPON cards: • 10G-EPON cards: LSQM1XPT12TSFD0 interface cards. • 1G-EPON cards: LSQM1PT8TSSC0 and LSQM1PT24TSSC0 interface cards. Unless otherwise specified, interfaces on 1G-EPON cards are used in this document. OLT commands alarm device-fatal-error enable

Use alarm device-fatal-error enable to enable the device fatal error alarm. Use undo alarm device-fatal-error enable to disable the device fatal error alarm. Syntax alarm device-fatal-error enable undo alarm device-fatal-error enable Default The device fatal error alarm is enabled. Views FTTH view OLT port view Predefined user roles network-admin Usage guidelines This alarm is sent if an error that causes system unavailability occurs, such as memory leak and high memory usage. If you configure this alarm in OLT port view, the configuration takes effect only on the OLT port. If you configure this alarm in FTTH view, the configuration takes effect on all OLT ports. If you configure this alarm in both OLT port view and FTTH view, the most recent configuration takes effect on the OLT port. Examples # Enable the device fatal error alarm on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] alarm device-fatal-error enable alarm oam critical-event enable

Use alarm oam critical-event enable to enable the critical event alarm. Use undo alarm oam critical-event enable to disable the critical event alarm.

1

Syntax alarm oam critical-event enable undo alarm oam critical-event enable Default The critical event alarm is enabled. Views FTTH view OLT port view Predefined user roles network-admin Usage guidelines This alarm is sent if the local link fault or dying gasp alarm is sent. If you configure this alarm in OLT port view, the configuration takes effect only on the OLT port. If you configure this alarm in FTTH view, the configuration takes effect on all OLT ports. If you configure this alarm in both OLT port view and FTTH view, the most recent configuration takes effect on the OLT port. Examples # Enable the critical event alarm on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] alarm oam critical-event enable alarm oam dying-gasp enable

Use alarm oam dying-gasp enable to enable the dying gasp alarm. Use undo alarm oam dying-gasp enable to disable the dying gasp alarm. Syntax alarm oam dying-gasp enable undo alarm oam dying-gasp enable Default The dying gasp alarm is enabled. Views FTTH view OLT port view Predefined user roles network-admin Usage guidelines This alarm is sent if an irrecoverable error occurs, such as a system error and a data loading error. If you configure this alarm in OLT port view, the configuration takes effect only on the OLT port. If you configure this alarm in FTTH view, the configuration takes effect on all OLT ports.

2

If you configure this alarm in both OLT port view and FTTH view, the most recent configuration takes effect on the OLT port. Examples # Enable the dying gasp alarm on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] alarm oam dying-gasp enable alarm oam local-link-fault enable

Use alarm oam local-link-fault enable to enable the local link fault alarm. Use undo alarm oam local-link-fault enable to disable the local link fault alarm. Syntax alarm oam local-link-fault enable undo alarm oam local-link-fault enable Default The local link fault alarm is enabled. Views FTTH view OLT port view Predefined user roles network-admin Usage guidelines This alarm is sent if a fault occurs in the inbound direction on the OLT. If you configure this alarm in OLT port view, the configuration takes effect only on the OLT port. If you configure this alarm in FTTH view, the configuration takes effect on all OLT ports. If you configure this alarm in both OLT port view and FTTH view, the most recent configuration takes effect on the OLT port. Examples # Enable the local link fault alarm on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] alarm oam local-link-fault enable alarm onu-laser always-on enable

Use alarm onu-laser always-on enable to enable the ONU laser always on alarm. Use undo alarm onu-laser always-on enable to disable the ONU laser always on alarm. Syntax alarm onu-laser always-on enable undo alarm onu-laser always-on enable

3

Default The ONU laser always on alarm is enabled. Views FTTH view OLT port view Predefined user roles network-admin Usage guidelines This alarm is sent if an ONU keeps sending optical signals for a long period of time. OLT ports on 10G-EPON cards do not support the ONU laser always on alarm. If you configure this alarm in OLT port view, the configuration takes effect only on the OLT port. If you configure this alarm in FTTH view, the configuration takes effect on all OLT ports. If you configure this alarm in both OLT port view and FTTH view, the most recent configuration takes effect on the OLT port. Examples # Enable the ONU laser always on alarm on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] alarm onu-laser always-on enable alarm onu-over-limit enable

Use alarm onu-over-limit enable to enable the ONU over limit alarm. Use undo alarm onu-over-limit enable to disable the ONU over limit alarm. Syntax alarm onu-over-limit enable undo alarm onu-over-limit enable Default The ONU over limit alarm is enabled. Views FTTH view OLT port view Predefined user roles network-admin Usage guidelines This alarm is sent if the number of ONUs connected to the OLT reaches the upper limit. If you configure this alarm in OLT port view, the configuration takes effect only on the OLT port. If you configure this alarm in FTTH view, the configuration takes effect on all OLT ports. If you configure this alarm in both OLT port view and FTTH view, the most recent configuration takes effect on the OLT port.

4

Examples # Enable the ONU over limit alarm on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] alarm onu-over-limit enable alarm registration-error enable

Use alarm registration-error enable to enable the registration error alarm. Use undo alarm registration-error enable to disable the registration error alarm. Syntax alarm registration-error enable undo alarm registration-error enable Default The registration error alarm is enabled. Views FTTH view OLT port view Predefined user roles network-admin Usage guidelines This alarm is sent if an error occurs during ONU registration. If you configure this alarm in OLT port view, the configuration takes effect only on the OLT port. If you configure this alarm in FTTH view, the configuration takes effect on all OLT ports. If you configure this alarm in both OLT port view and FTTH view, the most recent configuration takes effect on the OLT port. Examples # Enable the registration error alarm on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] alarm registration-error enable authentication-mode

Use authentication-mode to set the ONU authentication mode. Use undo authentication-mode to delete ONU authentication mode settings. Syntax authentication-mode { mac | loid | loid-password } * undo authentication-mode [ mac | loid | loid-password ] * Default An OLT port uses the MAC mode for ONU authentication.

5

Views OLT port view FTTH view Predefined user roles network-admin Parameters mac: Specifies the MAC mode. In this mode, an OLT port authenticates ONUs based on the MAC address. loid: Specifies the logical ONU identifier (LOID) mode. In this mode, an OLT port authenticates ONUs based on the LOID. loid-password: Specifies the LOID-password mode. In this mode, an OLT port authenticates ONUs based on the LOID and LOID password. Usage guidelines The LOID mode and the LOID-password mode are mutually exclusive. You cannot use them together. If you execute this command in OLT port view, the configuration takes effect only on the OLT port. If you execute this command in FTTH view, the configuration takes effect on all OLT ports. An OLT port preferentially uses the port-specific ONU authentication mode. If no port-specific ONU authentication mode is available, the OLT port uses the ONU authentication mode configured in FTTH view. You can execute this command multiple times to add ONU authentication mode settings. To restore the default, do not specify any keyword when you execute the undo authentication-mode command. To delete an ONU authentication mode setting, specify the corresponding keyword when you execute the undo authentication-mode command. If no ONU authentication mode setting is available in the view of an OLT port and in FTTH view, the OLT port uses the default setting. Examples # Set the ONU authentication mode to MAC and LOID in FTTH view. system-view [Sysname] ftth [Sysname-ftth] authentication-mode mac loid dba-parameters

Use dba-parameters to set ONU discovery parameters. Use undo dba-parameters to restore the default. Syntax dba-parameters { discovery-frequency frequency | discovery-length length } * undo dba-parameters { discovery-frequency | discovery-length } * Default An OLT port initiates ONU discovery at an interval of 500 milliseconds, and each ONU discovery process lasts for 3076 TQ. Views OLT port view

6

Predefined user roles network-admin Parameters discovery-frequency frequency: Specifies the ONU discovery interval at which the OLT port broadcasts discovery GATE messages, in the range of 100 to 60000. The unit of the frequency argument is 0.1 millisecond. discovery-length length: Specifies the duration of each ONU discovery, in the range of 200 to 10240. The unit of the length argument is time quantum (TQ). 1 TQ is equal to 16 ns. Usage guidelines Incorrect DBA settings might interrupt services. Make sure you are fully aware of the impact of this command when you use it on a live network. Examples # Set the ONU discovery interval to 300 milliseconds on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] dba-parameters discovery-frequency 3000 dba-report queue-set-id queue-id threshold

Use dba-report queue-set-id queue-id threshold to configure the threshold for a queue. Use undo dba-report queue-set-id to restore the default. Syntax dba-report queue-set-id queue-set-id queue-id queue-id { active | inactive } threshold threshold-value undo dba-report queue-set-id queue-set-id Default The default thresholds are as follows: • 0 for queues 1 through 3, and the threshold is activated. • 65535 for queues 4 and 5, and the threshold is activated. • 0 for queues 6 through 8, and the threshold is not activated. Views ONU port view Predefined user roles network-admin Parameters queue-set-id: Specifies a queue set ID in the range of 1 to 3. queue-id: Specifies a queue ID in the range of 1 to 8. threshold-value: Specifies a threshold in the range of 0 to 65535. active: Activates the threshold. inactive: Does not activate the threshold.

7

Examples # Set the threshold to 200 for queue 1 in queue set 1 and activate the threshold on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] dba-report queue-set-id 1 queue-id 1 active threshold 200 dba-report queue-set-number

Use dba-report queue-set-number to set the number of queue sets that ONU REPORT messages support. Use undo dba-report queue-set-number to restore the default. Syntax dba-report queue-set-number queue-set-number undo dba-report queue-set-number Default ONU REPORT messages support two queue sets. Views ONU port view Predefined user roles network-admin Parameters queue-set-number: Specifies the number of queue sets, in the range of 2 to 4. Examples # Set the number of queue sets to 2 for ONU REPORT messages on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] dba-report queue-set-number 2 display epon authentication-mode

Use display epon authentication-mode to display ONU authentication mode settings. Syntax display epon authentication-mode [ interface interface-type interface-number ] Views Any view Predefined user roles network-admin network-operator

8

Parameters interface: Specifies an OLT port. If you do not specify an OLT port, this command displays all ONU authentication mode settings, including the settings configured in FTTH view and all port-specific settings. interface-type: Specifies an interface type. The value of this argument must be olt. interface-number: Specifies an interface number. Examples # Display all ONU authentication mode settings. display epon authentication-mode Ftth authentication mode:- Interface Authentication-mode Olt1/0/1 mac and loid Table 1 Command output

Field Description ONU authentication mode configured in FTTH view: • If the ONU authentication mode is not configured in FTTH view, this field displays a hyphen (-). In this situation, the default setting applies. • If the ONU authentication mode is configured in FTTH view, this field displays the configured mode settings. Available values are as follows:

{ mac—Authenticates ONUs based on the MAC address.

Ftth authentication mode { loid—Authenticates ONUs based on the LOID.

{ loid-password—Authenticates ONUs based on the LOID and LOID password.

{ mac and loid—Authenticates ONUs based on the MAC address or the LOID.

{ mac and loid-password—Authenticates ONUs based on the MAC address, or the LOID and LOID password. Port-specific ONU authentication mode: • If the ONU authentication mode is not configured for an OLT port, the OLT port is not displayed. • If the ONU authentication mode is configured for an OLT port, this field displays the configured authentication mode settings. Available values are as follows:

{ mac—Authenticates ONUs based on the MAC address. Authentication-mode { loid—Authenticates ONUs based on the LOID.

{ loid-password—Authenticates ONUs based on the LOID and LOID password.

{ mac and loid—Authenticates ONUs based on the MAC address or the LOID.

{ mac and loid-password—Authenticates ONUs based on the MAC address, or the LOID and LOID password. display epon fiber-backup group

Use display epon fiber-backup group to display information about fiber backup groups. Syntax display epon fiber-backup group { group-number | all }

9

Views Any view Predefined user roles network-admin network-operator Parameters group-number: Specifies a fiber backup group number in the range of 1 to 80. all: Specifies all fiber backup groups. Examples # Display information about fiber backup group 1. display epon fiber-backup group 1 Fiber backup group 1 information: Member Role State OLT1/0/1 Master Active OLT1/0/2 Standby Ready Table 2 Command output

Field Description OLT port role: Role • Master—Master port. • Standby—Subordinate port. OLT port status: • Active—The master port is active. (The chip is active and the EPON transceiver module is plugged in.) State • Ready—The subordinate port is ready, and a master/subordinate switchover can be performed. • Other—Any other condition. display epon oam

Use display epon oam to display Operations, Administration and Maintenance (OAM) information for an ONU port. Syntax display epon oam interface interface-type interface-number Views Any view Predefined user roles network-admin network-operator Parameters interface-type: Specifies an interface type. The value of this argument must be onu. interface-number: Specifies an interface number.

10

Examples # Display OAM information for ONU 1/0/1:1. display epon oam interface onu 1/0/1:1 OAM information: OAM version: 1 Multiplexer action: Discard non-OAM PDUs Parser action : Forward non-OAM PDUs to higher layer Sending variable-length OAM response PDUs: Not supported Interpreting link events : Not supported OAM mode : Active Unidirectional support: Disabled Loopback support : Disabled Maximal PDU size : 494 bytes Identifier : 433348 display epon onu-event

Use display epon onu-event to display ONU registration and deregistration records for an ONU port. Syntax display epon onu-event interface interface-type interface-number Views Any view Predefined user roles network-admin network-operator Parameters interface-type: Specifies an interface type. The value of this argument must be onu. interface-number: Specifies an interface number. Examples # Display ONU registration and deregistration records for ONU 1/0/1:1. display epon onu-event interface onu 1/0/1:1 Date Time ONU Event ONU Status 2015/06/24 14:41:18 Registration Up 2015/06/24 14:41:59 Deregistration Down 2015/06/24 14:42:02 Registration Up 2015/06/24 14:42:49 Deregistration Down display epon optics-parameters

Use display epon optics-parameters to display optical parameters for an OLT port. Syntax display epon optics-parameters interface interface-type interface-number

11

Views Any view Predefined user roles network-admin network-operator Parameters interface-type: Specifies an interface type. The value of this argument must be olt. interface-number: Specifies an interface number. Examples # Display optical parameters for OLT 1/0/1. display epon optics-parameters interface olt 1/0/1 Optical parameters: Temperature :37.50 °C Voltage :3.27 V Bias :1.74 mA Transmitter power :4.36 dBm Table 3 Output description

Field Description Bias current. Bias For OLT ports on 10G-EPON cards, this field becomes Bias(1G/10G) and displays the bias currents for both 1G-EPON interfaces and 10G-EPON interfaces, for example, 24.36 mA/80.72 mA. Transmit power. Transmitter power For OLT ports on 10G-EPON cards, this field becomes Transmitter power(1G/10G) and displays the transmit powers for both 1G-EPON interfaces and 10G-EPON interfaces, for example, 4.48 dBm/3.44 dBm. display epon parameter

Use display epon parameter to display EPON system parameters. Syntax In standalone mode: display epon parameter slot slot-number In IRF mode: display epon parameter chassis chassis-number slot slot-number Views Any view Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies a card by its slot number. (In standalone mode.)

12

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.) Examples # Display EPON system parameters for the specified slot. display epon parameter slot 1 Parameters: OUI: 111111 OAM version:3.0 OUI: 111111 OAM version:2.1 OUI: 111111 OAM version:2.0 OUI: 111111 OAM version:1.3 OUI: 111111 OAM version:1(default) Key update timer : 10 seconds OAM discovery timeout timer : 3.0 seconds display epon statistics

Use display epon statistics to display packet error rates on an ONU port. Syntax display epon statistics interface interface-type interface-number Views Any view Predefined user roles network-admin network-operator Parameters interface-type: Specifies an interface type. The value of this argument must be onu. interface-number: Specifies an interface number. Usage guidelines You can view packet error rates of an ONU port only when the port is up. This command displays the average error rates for the last sampling interval. An error rate value less than 1e-9 is displayed as 0. Examples # Display packet error rates on ONU 1/0/1:1. display epon statistics interface onu 1/0/1:1 ONU statistics: Bit error rate(in 1e-9 unit) : 0 Frame error rate(in 1e-9 unit): 0 display epon version

Use display epon version to display version information for an OLT or ONU port.

13

Syntax display epon version interface interface-type interface-number Views Any view Predefined user roles network-admin network-operator Parameters interface-type: Specifies an interface type. The value of this argument must be olt or onu. interface-number: Specifies an interface number. Usage guidelines You can view version information for an OLT or ONU port only when the port is up. Examples # Display version information for OLT 1/0/1. display epon version interface olt 1/0/1 OLT version information: Firmware major version: 0 Firmware minor version: 3 Hardware major version: 1 Hardware minor version: 1 Supported LLIDs : 63 # Display version information for ONU 1/0/1:1. display epon version interface onu 1/0/1:1 ONU version information: Hardware major version: A Hardware minor version: 0 Supported LLIDs : 1 MAC type of UNI port : MII CTC version : 2.1 display epon workmode

Use display epon workmode to display the operation mode of an OLT or ONU port. Syntax display epon workmode interface interface-type interface-number Views Any view Predefined user roles network-admin network-operator Parameters interface-type: Specifies an interface type. The value of this argument must be olt or onu.

14

interface-number: Specifies an interface number. Usage guidelines If you specify an OLT port, this command also displays the port's MAC address and DBA algorithm. You can view the operation mode of an ONU port only when the port has been bound to an ONU. Examples # Display the operation mode of OLT 1/0/1. display epon workmode interface olt 1/0/1 Port status: Open MAC address: 000f-e2a1-1027 DBA mode : Internal # Display the operation mode of ONU 1/0/1:1. display epon workmode interface onu 1/0/1:1 Port status: Open FEC mode : Disabled Table 4 Command output

Field Description Port status: • Open. • Closed. Port status • Resetting—The chip is resetting. This value is available for OLT ports. • Pending—The ONU has been registered but fails the authentication. This value is available for ONU ports. • Unknown. MAC address of the OLT port. MAC address All OLT ports on a device use the same MAC address. DBA algorithm of the OLT port: DBA mode • Internal—Internal DBA algorithm. • External—External DBA algorithm. display interface

Use display interface to display OLT or ONU port information. Syntax display interface [ interface-type [ interface-number ] ] [ brief [ description | down ] ] Views Any view Predefined user roles network-admin network-operator

15

Parameters interface-type: Specifies a port type, which can be olt or onu. If you do not specify an interface type, this command displays information about all interfaces. interface-number: Specifies an OLT or ONU port number. If you specify an interface type but do not specify an interface number, this command displays information about all interfaces of the specified type. brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information. description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of each interface description. down: Displays information about interfaces in down state and the causes. If you do not specify this keyword, the command displays information about interfaces in all states. Usage guidelines When you display detailed information about an OLT port on a 10G-EPON card, the following rules apply: • The Input/Output fields display packet statistics of 1G-EPON interfaces of the OLT port. • The 10G-EPON Input/Output fields display packet statistics of 10G-EPON interfaces of the OLT port. Examples # Display information about OLT 1/0/1. display interface Olt 1/0/1 Olt1/0/1 Current state: UP IP packet frame type: II, hardware address: 00e0-fc00-511e Description: Olt1/0/1 Interface Maximum frame length: 1500 Port hardware type is 1000_BASE_PX_SFP Flow-control is not enabled Broadcast max-ratio: 100% Multicast max-ratio: 100% Unicast max-ratio: 100% PVID: 1 Port link-type: Hybrid Tagged VLANs: None Untagged VLANs: 1(default vlan) Last clearing of counters: Never Last 300 second input: - packets/sec - bytes/sec -% Last 300 second output: - packets/sec - bytes/sec -% Input (total): 0 packets, 0 bytes - unicasts, - broadcasts, - multicasts, 0 pauses Input (normal): 0 packets, 0 bytes - unicasts, - broadcasts, - multicasts, 0 pauses Input: 0 input errors, 0 runts, 0 giants, - throttles 0 CRC, - frame, - overruns, - aborts - ignored, - parity errors Output (total): 100000 packets, 12800000 bytes - unicasts, - broadcasts, - multicasts, 0 pauses

16

Output (normal): 100000 packets, 12800000 bytes - unicasts, - broadcasts, - multicasts, 0 pauses Output: 0 output errors, - underruns, - buffer failures - aborts, - deferred, - collisions, - late collisions - lost carrier, - no carrier 10G-EPON input (normal): 100000 packets, 12893588 bytes - unicasts, - broadcasts, - multicasts, 0 pauses 10G-EPON input: 0 input errors, 0 runts, 0 giants, 0 CRC 10G-EPON output (normal): 100000 packets, 12845974 bytes - unicasts, - broadcasts, - multicasts, 0 pauses 10G-EPON output: 0 output errors # Display detailed information about ONU 1/0/1:1. display interface Onu 1/0/1:1 Onu1/0/1:1 Current state: DOWN IP packet frame type: Ethernet II, hardware address: 00e0-fc00-511e Description: Onu1/0/1:1 Interface Maximum frame length: 1500 Loopback is not set Port hardware type is 1000M_SFF_NO_CONNECTOR Broadcast max-ratio: 100% Multicast max-ratio: 100% Unicast max-ratio: 100% PVID: 1 Port link-type: Access Tagged VLANs: None Untagged VLANs: 1 Last clearing of counters: Never Last 300 second input: - packets/sec - bytes/sec -% Last 300 second output: - packets/sec - bytes/sec -% Input (total): 0 packets, 0 bytes - unicasts, 0 broadcasts, - multicasts, - pauses Input (normal): - packets, - bytes - unicasts, - broadcasts, - multicasts, - pauses Input: 0 input errors, - runts, 0 giants, - throttles 0 CRC, 0 frame, - overruns, - aborts - ignored, - parity errors Output (total): 0 packets, 0 bytes - unicasts, 0 broadcasts, - multicasts, - pauses Output (normal): - packets, - bytes - unicasts, - broadcasts, - multicasts, - pauses Output: - output errors, - underruns, 0 buffer failures - aborts, - deferred, - collisions, - late collisions - lost carrier, - no carrier # Display brief information about all OLT ports. display interface Olt brief Brief information on interfaces in bridge mode: Link: ADM - administratively down; Stby - standby

17

Speed: (a) - auto Duplex: (a)/A - auto; H - half; F - full Type: A - access; T - trunk; H - hybrid Interface Link Speed Duplex Type PVID Description Olt1/0/1 UP -- -- H 1 Olt1/0/2 DOWN -- -- H 1 ... Table 5 Command output

Field Description Physical link state of the interface: • Administratively DOWN—The interface has been shut down by using the shutdown command. Current state • DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed). • UP—The interface is both administratively and physically up. IP packet frame type IPv4 packet framing format. hardware address MAC address of the interface. Maximum length of Ethernet frames allowed to pass through the Maximum frame length interface. Generic flow control is disabled on the interface. This field Flow-control is not enabled depends on your configuration and the link parameter negotiation result. Broadcast storm suppression threshold in ratio, pps, or kbps. The Broadcast max- unit of the threshold depends on your configuration. Multicast storm suppression threshold in ratio, pps, or kbps. The Multicast max- unit of the threshold depends on your configuration. Unknown unicast storm suppression threshold in ratio, pps, or Unicast max- kbps. The unit of the threshold depends on your configuration. PVID Port VLAN ID (PVID) of the interface. Link type of the interface: • access. Port link-type • trunk. • hybrid. VLANs for which the interface sends packets without removing Tagged VLANs VLAN tags. VLANs for which the interface sends packets after removing Untagged VLANs VLAN tags.

Time when the reset counters interface command was last used to clear the interface statistics. This field displays Last clearing of counters Never if the reset counters interface command has never been used on the interface since device startup. Last 300 second input: - packets/sec - Average inbound or outbound traffic rate (in pps and Bps) in the bytes/sec -% last 300 seconds, and the ratio of the actual rate to the interface Last 300 second output: - packets/sec - bandwidth. bytes/sec -% A hyphen (-) indicates that the statistical item is not supported.

Input (total): 0 packets, 0 bytes The two fields on the first line represent the inbound traffic

18

Field Description - unicasts, 0 broadcasts, - statistics (in packets and bytes) for the interface. All inbound multicasts, - pauses normal packets, abnormal packets, and normal pause frames were counted. The four fields on the second line represent: • Number of inbound unicast packets. • Number of inbound broadcasts. • Number of inbound multicasts. • Number of inbound pause frames. A hyphen (-) indicates that the statistical item is not supported. The two fields on the first line represent the inbound normal traffic and pause frame statistics (in packets and bytes) for the interface. The four fields on the second line represent: Input (normal): 0 packets, 0 bytes • Number of inbound normal unicast packets. 0 unicasts, 0 broadcasts, 0 • Number of inbound normal broadcasts. multicasts, 0 pauses • Number of inbound normal multicasts. • Number of inbound normal pause frames. A hyphen (-) indicates that the statistical item is not supported. Input Statistics of inbound abnormal packets. input errors Number of inbound errors packets. Runts Number of inbound runts. Giants Number of inbound giants. Number of inbound frames that had a non-integer number of throttles bytes. Number of inbound frames that had a normal length, but CRC contained CRC errors. Number of inbound frames that contained CRC errors and a frame non-integer number of bytes. Number of packets dropped because the input rate of the port overruns exceeded the queuing capability. Total number of illegal inbound packets: • Fragment frames—CRC error frames shorter than 64 bytes. aborts • Jabber frames—CRC error frames greater than the maximum frame length supported on the interface. • Symbol error frames—Frames that contained a minimum of one undefined symbol. Number of inbound frames dropped because the receiving buffer ignored of the port ran low. parity errors Number of frames with parity errors. The two fields on the first line represent the outbound traffic statistics (in packets and bytes) for the interface. All outbound normal packets, abnormal packets, and normal pause frames were counted. Output(total): 0 packets, 0 bytes The four fields on the second line represent: 0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses • Number of outbound unicast packets. • Number of outbound broadcasts. • Number of outbound multicasts. • Number of outbound pause frames.

19

Field Description A hyphen (-) indicates that the statistical item is not supported. The two fields on the first line represent the outbound normal traffic and pause frame statistics (in packets and bytes) for the interface. Output(normal): 0 packets, 0 bytes The four fields on the second line represent: • Number of outbound normal unicast packets. 0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses • Number of outbound normal broadcasts. • Number of outbound normal multicasts. • Number of outbound normal pause frames. A hyphen (-) indicates that the statistical item is not supported. Output Statistics of outbound abnormal packets. output errors Number of outbound packets with errors. Number of packets dropped because the output rate of the underruns interface exceeded the output queuing capability. Number of packets dropped because the transmitting buffer of the buffer failures interface ran low. Number of packets that failed to be transmitted, for example, aborts because of collisions. Number of frames that the interface deferred to transmit because deferred of detected collisions. Number of frames that the interface stopped transmitting because collisions collisions were detected during transmission. Number of frames that the interface deferred to transmit after late collisions transmitting their first 512 bits because of detected collisions. Number of carrier losses during transmission. This counter lost carrier increases by one when a carrier is lost, and applies to serial WAN interfaces. Number of times that the port failed to detect the carrier when attempting to send frames. This counter increases by one when a no carrier port failed to detect the carrier, and applies to serial WAN interfaces. The two fields on the first line represent the inbound traffic statistics (in packets and bytes) for the 10G-EPON interface. All inbound normal packets, abnormal packets, and normal pause frames were counted. 10G-EPON input (normal): 100000 packets, 12893588 bytes The four fields on the second line represent: • Number of inbound unicast packets. - unicasts, - broadcasts, - multicasts, 0 pauses • Number of inbound broadcasts. • Number of inbound multicasts. • Number of inbound pause frames. A hyphen (-) indicates that the statistical item is not supported. Statistics of inbound abnormal packets for the 10G-EPON interface, including: • input errors—Number of inbound errors packets. 10G-EPON input: 0 input errors, 0 runts, • runts—Number of inbound runts. 0 giants, 0 CRC • giants—Number of inbound giants. • CRC—Number of inbound frames that had a normal length, but contained CRC errors. 10G-EPON output (normal): 100000 The two fields on the first line represent the outbound traffic

20

Field Description packets, 12845974 bytes statistics (in packets and bytes) for the 10G-EPON interface. All - unicasts, - broadcasts, - outbound normal packets, abnormal packets, and normal pause multicasts, 0 pauses frames were counted. The four fields on the second line represent: • Number of inbound unicast packets. • Number of inbound broadcasts. • Number of inbound multicasts. • Number of inbound pause frames. A hyphen (-) indicates that the statistical item is not supported. Number of outbound packets with errors for the 10G-EPON 10G-EPON output: 0 output errors interface. Brief information on interfaces in bridge Brief information about Layer 2 interfaces. mode: Interface Interface name. Physical link state of the interface: • UP—The interface is physically up. • DOWN—The interface is physically down. Link • ADM—The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. • Stby—The interface is a backup interface in standby state. Speed Speed of the interface, in bps. Duplex Duplex mode of the interface. Link type of the interface: • A—Access. Type • H—Hybrid. • T—Trunk. PVID Port VLAN ID. encryption update-time

Use encryption update-time to set the LLID key update interval. Use undo encryption update-time to restore the default. Syntax In standalone mode: encryption slot slot-number update-time update-time undo encryption slot slot-number update-time In IRF mode: encryption chassis chassis-number slot slot-number update-time update-time undo encryption chassis chassis-number slot slot-number update-time Default The LLID key update interval is 10 seconds.

21

Views FTTH view Predefined user roles network-admin Parameters slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.) update-time update-time: Specifies the LLID key update interval in the range of 1 to 255 seconds. Examples # Set the LLID key update interval to 100 seconds for the specified slot. system-view [Sysname] ftth [Sysname-ftth] encryption slot 1 update-time 100 fiber-backup group

Use fiber-backup group to create a fiber backup group, or enter the view of an existing fiber backup group. Use undo fiber-backup group to delete a fiber backup group. Syntax fiber-backup group group-number undo fiber-backup group group-number Default No fiber backup groups exist. Views FTTH view Predefined user roles network-admin Parameters group-number: Specifies a fiber backup group number in the range of 1 to 80. Examples # Create fiber backup group 1 and enter its view. system-view [Sysname] ftth [Sysname-ftth] fiber-backup group 1 Related commands member port fiber-backup group

22 ftth

Use ftth to enter FTTH view. Syntax ftth Views System view Predefined user roles network-admin Examples # Enter FTTH view. system-view [Sysname] ftth [Sysname-ftth] grant-filtering enable

Use grant-filtering enable to enable grant filtering on an OLT port. Use undo grant-filtering enable to disable grant filtering on an OLT port. Syntax grant-filtering enable undo grant-filtering enable Default Grant filtering is enabled on an OLT port. Views OLT port view Predefined user roles network-admin Examples # Enable grant filtering on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] grant-filtering enable interface

Use interface to enter OLT port or ONU port view. Syntax interface interface-type interface-number Views System view

23

Predefined user roles network-admin Parameters interface-type: Specifies an interface type. The value of this argument must be olt or onu. interface-number: Specifies an interface number. Examples # Enter the view of OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] # Enter the view of ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] max-rtt

Use max-rtt to set the maximum ONU-OLT RTT. Use undo max-rtt to restore the default. Syntax max-rtt max-rtt-value undo max-rtt Default The maximum ONU-OLT RTT is 15000 TQ. Views OLT port view Predefined user roles network-admin Parameters max-rtt-value: Specifies an RTT in the range of 2000 to 32000 TQ. 1 TQ is equal to 16 ns. Usage guidelines Make sure you are fully aware of the impact of this command when you use it on a live network. Examples # Set the maximum ONU-OLT RTT to 25000 TQ on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] max-rtt 25000 member

Use member to assign an OLT port to a fiber backup group. Use undo member to remove an OLT port from a fiber backup group.

24

Syntax member olt interface-number undo member olt interface-number Default A fiber backup group does not contain any OLT ports. Views Fiber backup group view Predefined user roles network-admin Parameters olt interface-number: Specifies an OLT port by its number. Usage guidelines A fiber backup group contains a maximum of two OLT ports. An OLT port can be assigned to only one fiber backup group. The OLT port assigned first acts as the master port, and the other OLT port acts as the subordinate port. Only the master OLT port forwards traffic. To assign an OLT port to a fiber backup group in OLT port view, use the port fiber-backup group command. Examples # Assign OLT 1/0/1 to fiber backup group 1. system-view [Sysname] ftth [Sysname-ftth] fiber-backup group 1 [Sysname-fiber-group1] member olt 1/0/1 Related commands fiber-backup group port fiber-backup group monitor enable

Use monitor enable to enable alarm monitoring. Use undo monitor enable to disable alarm monitoring. Syntax monitor enable undo monitor enable Default Alarm monitoring is enabled. Views FTTH view Predefined user roles network-admin

25

Examples # Enable alarm monitoring. system-view [Sysname] ftth [Sysname-ftth] monitor enable Related commands timer monitor multicast call-detail-record cache-limit

Use multicast call-detail-record cache-limit to set the upper limit for the Call Detail Record (CDR) buffer. Use undo multicast call-detail-record cache-limit to restore the default. Syntax multicast call-detail-record cache-limit number undo multicast call-detail-record cache-limit Default The CDR buffer can save a maximum of 32 records. Views FTTH view Predefined user roles network-admin Parameters number: Specifies an upper limit in the range of 16 to 1024. Usage guidelines If the CDR buffer upper limit is reached, the OLT automatically sends the CDR records to the information center module and clears the CDR buffer. Examples # Set the upper limit of the CDR buffer to 16. system-view [Sysname] ftth [Sysname-ftth] multicast call-detail-record cache-limit 16 multicast call-detail-record enable

Use multicast call-detail-record enable to enable CDR. Use undo multicast call-detail-record enable to disable CDR. Syntax multicast call-detail-record enable undo multicast call-detail-record enable Default CDR is disabled.

26

Views FTTH view Predefined user roles network-admin Usage guidelines CDR takes effect only on ONUs in multicast control mode. Examples # Enable CDR. system-view [Sysname] ftth [Sysname-ftth] multicast call-detail-record enable Related commands multicast mode multicast call-detail-record record-delay

Use multicast call-detail-record record-delay to set the CDR generation delay. Use undo multicast call-detail-record record-delay to restore the default. Syntax multicast call-detail-record record-delay delay-time undo multicast call-detail-record record-delay Default The CDR generation delay is 30 seconds. Views FTTH view Predefined user roles network-admin Parameters delay-time: Specifies a delay time in the range of 10 to 600 seconds. Usage guidelines After CDR is enabled, the OLT periodically checks the online duration of users. If the online duration of a user is longer than the CDR generation delay, the OLT generates a CDR record and saves it to the CDR buffer. Examples # Set the CDR generation delay to 20 seconds. system-view [Sysname] ftth [Sysname-ftth] multicast call-detail-record record-delay 20 multicast call-detail-record report-interval

Use multicast call-detail-record report-interval to set the CDR sending interval.

27

Use undo multicast call-detail-record report-interval to restore the default. Syntax multicast call-detail-record report-interval interval undo multicast call-detail-record report-interval Default The CDR sending interval is 30 seconds. Views FTTH view Predefined user roles network-admin Parameters interval: Specifies an interval in the range of 30 to 600 seconds. Usage guidelines The OLT sends CDR records to the information center module and clears the CDR buffer at the CDR sending interval. Examples # Set the CDR sending interval to 40 seconds. system-view [Sysname] ftth [Sysname-ftth] multicast call-detail-record report-interval 40 multicast call-detail-record send

Use multicast call-detail-record send to manually send CDR records. Syntax multicast call-detail-record send Views FTTH view Predefined user roles network-admin network-operator Usage guidelines This command allows you to manually send CDR records to the information center module and clears the CDR buffer. You can set CDR record output rules, including output destinations. For more information about using the information center, see Network Management and Monitoring Configuration Guide. Examples # Manually send CDR records. system-view [Sysname] ftth [Sysname-ftth] multicast call-detail-record send

28 oam-discovery-timeout

Use oam-discovery-timeout to set the timeout timer for extended OAM discovery. Use undo oam-discovery-timeout to restore the default. Syntax In standalone mode: oam-discovery-timeout slot slot-number value value undo oam-discovery-timeout slot slot-number value In IRF mode: oam-discovery-timeout chassis chassis-number slot slot-number value value undo oam-discovery-timeout chassis chassis-number slot slot-number value Default The timeout timer for extended OAM discovery is 3 seconds. Views FTTH view Predefined user roles network-admin Parameters slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.) value value: Specifies a timeout period in the range of 30 to 2550. The unit of the value argument is 100 milliseconds. Usage guidelines The timeout timer for extended OAM discovery determines the timeout period for extended OAM messages during extended OAM discovery. As a best practice, use the default setting for this timer. Increase this timer on the slot that hosts an OLT port if an ONU connected to the OLT and bound to an ONU port remains down. Examples # Set the timeout timer for extended OAM discovery to 10 seconds for the specified slot. system-view [Sysname] ftth [Sysname-ftth] oam-discovery-timeout slot 1 value 100 olt-mode

Use olt-mode to set the OLT operating mode. Use undo olt-mode to restore the default. Syntax In standalone mode:

29

olt-mode slot slot-number { 64-onu | 128-onu } undo olt-mode slot slot-number In IRF mode: olt-mode chassis chassis-number slot slot-number { 64-onu | 128-onu } undo olt-mode chassis chassis-number slot slot-number Default The OLT operating mode is 64-ONU. Views FTTH view Predefined user roles network-admin Parameters slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.) 64-onu: Specifies the 64-ONU mode. In this mode, up to 64 ONU ports can be created on an OLT port in the specified slot. 128-onu: Specifies the 128-ONU mode. In this mode, up to 128 ONU ports can be created on an OLT port in the specified slot. Usage guidelines Only 10G-EPON cards support this command. After you change the OLT operating mode for a slot, you must reboot the slot or the whole device to make the OLT operating mode change take effect. • If the slot is rebooted, all OLT ports in the slot are restored to the default settings, and the ONU ports created on the OLT ports are deleted. • If the whole device is rebooted and the running configuration is saved, ONU ports numbered from 1 to 64 and OLT ports are not affected. When the OLT operating mode is changed from 128-ONU to 64-ONU, ONU ports numbered more than 64 are deleted. Examples # Set the OLT operating for slot 1 to 128-ONU. system-view [Sysname] ftth [Sysname-ftth] olt-mode slot 1 128-onu Related commands using onu onu invalid-address mode

Use onu invalid-address mode to set the processing mode for frames with an invalid source MAC address. Use undo onu invalid-address mode to restore the default.

30

Syntax onu invalid-address mode { abandon | broadcast | unicast } undo onu invalid-address mode Default The abandon mode is enabled for frames with an invalid source MAC address. Views FTTH view Predefined user roles network-admin Parameters abandon: Specifies the abandon mode. In this mode, the OLT drops frames with an invalid source MAC address. broadcast: Specifies the broadcast mode. In this mode, the OLT forwards frames sourced from an invalid MAC address without learning the source MAC address. When the OLT receives a frame with an invalid destination MAC address, it floods the frame to all interfaces in the frame's VLAN except for the incoming interface. unicast: Specifies the unicast mode. In this mode, the OLT forwards frames sourced from an invalid MAC address and generates a unicast MAC address entry for the invalid MAC address. The OLT uses the entry for forwarding frames destined for the invalid MAC address. Usage guidelines An invalid MAC address is a MAC address whose seventh bit of the first byte is 1, for example, 02-10-94-00-00-02 (the first byte is 00000010). The processing mode for frames with an invalid source MAC address does not take effect on the following interfaces: • OLT ports on 10G-EPON cards. • GE interfaces that are changed from EPON fiber interfaces. For more information about changing the type of a fiber interface, see the port-type command. Examples # Set the processing mode to broadcast for frames with an invalid source MAC address. system-view [Sysname] ftth [Sysname-ftth] onu invalid-address mode broadcast onu snmp port-limit

Use onu snmp port-limit to set the maximum number of ONU E1/UNI/VoIP ports that can be queried by SNMP. Use undo onu snmp port-limit to restore the default. Syntax onu snmp port-limit { e1 e1-count | uni uni-count | voip voip-count }* undo onu snmp port-limit

31

Default The maximum number of UNI ports that can be queried by SNMP is 4. The maximum number of E1/VoIP ports that can be queried by SNMP is 0. Views FTTH view Predefined user roles network-admin Parameters e1 e1-count: Specifies the maximum number of ONU E1 ports in the range of 0 to 16. uni uni-count: Specifies the maximum number of ONU UNI ports in the range of 1 to 79. voip voip-count: Specifies the maximum number of ONU VoIP ports in the range of 0 to 64. Usage guidelines By decreasing the maximum number of ONU E1/UNI/VoIP ports that can be queried by SNMP, you can reduce the resource consumption of the device. This command is only for administrators. As a best practice, do not use this feature as a common user. This command applies to all ONU ports of all OLT ports, and takes effect only on offline ONU ports of ONUs. Examples # Set the maximum number of ONU UNI ports that can be queried by SNMP to 63. system-view [Sysname] ftth [Sysname-ftth] onu snmp port-limit uni 63 port fiber-backup group

Use port fiber-backup group to assign an OLT port to a fiber backup group. Use undo port fiber-backup group to restore the default. Syntax port fiber-backup group group-number undo port fiber-backup group Default An OLT port is not assigned to a fiber backup group. Views OLT port view Predefined user roles network-admin Parameters group-number: Specifies a fiber backup group number in the range of 1 to 80. The fiber backup group must already exist.

32

Usage guidelines A fiber backup group contains a maximum of two OLT ports. An OLT port can be assigned to only one fiber backup group. The OLT port assigned first acts as the master port, and the other OLT port acts as the subordinate port. Only the master OLT port forwards traffic. To assign an OLT port to a fiber backup group in fiber backup group view, use the member command. Examples # Assign OLT 1/0/1 to fiber backup group 1. system-view [Sysname] ftth [Sysname-ftth] fiber-backup group 1 [Sysname-fiber-group1] quit [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] port fiber-backup group 1 Related commands fiber-backup group member port switch-over

Use port switch-over to perform a master/subordinate switchover for a fiber backup group. Syntax port switch-over Views Fiber backup group view Predefined user roles network-admin Usage guidelines For successful command execution, use this command when the subordinate OLT port is in Ready state. Examples # Perform a master/subordinate switchover for fiber backup group 1. system-view [Sysname] ftth [Sysname-ftth] fiber-backup group 1 [Sysname-fiber-group1] port switch-over port-type

Use port-type to change the type of a fiber interface. Use undo port-type to cancel the type change of a fiber interface. Syntax In OLT port view:

33

port-type gigabitethernet undo port-type gigabitethernet In Layer 2 or Layer 3 GigabitEthernet interface view: port-type olt undo port-type olt Default The type of a fiber interface is OLT. Views Layer 2/Layer 3 GigabitEthernet interface view OLT port view Predefined user roles network-admin Parameters gigabitethernet: Changes the OLT port to a GigabitEthernet interface. By default, the GigabitEthernet interface is in Layer 2 mode. olt: Changes the GigabitEthernet interface to an OLT port. Usage guidelines This command is supported only by ports on the LSQM1PT24TSSC0 interface cards. The fiber interfaces are grouped by port number in order, starting from 1. Each group contains four interfaces. To change the type of an interface in a group, you must change the type of all the four interfaces in the group. For the interface type change to take effect, reboot the interface card. If you change the type of an interface, the system automatically removes the original interface and then creates the target interface with the same number as the original interface. Examples # Change GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 to OLT ports. system-view [Sysname] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/4 [Sysname-if-range] port-type olt timer monitor

Use timer monitor to set the alarm monitoring interval. Use undo timer monitor to restore the default. Syntax timer monitor seconds undo timer monitor Default The alarm monitoring interval is 80 seconds. Views FTTH view

34

Predefined user roles network-admin Parameters seconds: Specifies an interval in the range of 1 to 3600 seconds. Examples # Set the alarm monitoring interval to 100 seconds. system-view [Sysname] ftth [Sysname-ftth] timer monitor 100 Related commands monitor enable vendor-compatible

Use vendor-compatible to enable compatibility with third-party ONUs. Use undo vendor-compatible to disable compatibility with third-party ONUs. Syntax In standalone mode: vendor-compatible slot slot-number undo vendor-compatible slot slot-number In IRF mode: vendor-compatible chassis chassis-number slot slot-number undo vendor-compatible chassis chassis-number slot slot-number Default Compatibility with third-party ONUs is enabled. Views FTTH view Predefined user roles network-admin Parameters slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.) Usage guidelines To allow non-H3C ONUs to register with an OLT, enable compatibility with third-party ONUs. If this feature is disabled, only H3C ONUs can register with the OLT. If you bind a non-H3C ONU to an ONU port before this feature is enabled, the non-H3C ONU cannot register with the OLT even if you enable this feature. For successful registration, you must perform one of the following tasks: • Use the deregister onu command to deregister the ONU.

35

• Use the shutdown command to shut down the ONU port and then use the undo shutdown command to bring it up. Examples # Disable compatibility with third-party ONUs on the specified slot. system-view [Sysname] ftth [Sysname-ftth] undo vendor-compatible slot 1 ONU remote management commands

NOTE: Support for ONU remote management commands depends on the ONU model. alarm enable

Use alarm enable to enable ONU alarms. Use undo alarm enable to disable ONU alarms. Syntax alarm enable { onu onu-alarm | pon pon-alarm | uni uni-alarm } [ protocol { auto | ctc2.1 | ctc3.0 } ] [ threshold trigger-value clear-value ] undo alarm enable { onu onu-alarm | pon pon-alarm | uni uni-alarm } Default Only the eth-port-loopback alarm is enabled for an ONU. Views ONU port view Predefined user roles network-admin Parameters onu-alarm: Specifies an ONU device alarm. Table 6 shows available ONU device alarms and alarm threshold value ranges. pon-alarm: Specifies a PON port alarm. Table 7 shows available PON port alarms and alarm threshold value ranges. uni-alarm: Specifies a UNI alarm. Table 8 shows available UNI alarms and alarm threshold value ranges. protocol: Specifies a CTC protocol version. If you do not specify a CTC protocol version, the ONU automatically negotiates the CTC protocol version. auto: Automatically negotiates the CTC protocol version. ctc2.1: Uses CTC v2.1. ctc3.0: Uses CTC v3.0 or later. threshold trigger-value clear-value: Sets the thresholds for the alarm. The trigger-value argument specifies the alarm triggering threshold. The clear-value argument specifies the alarm clearing threshold. The value ranges for the trigger-value and

36

clear-value arguments are shown in Table 6, Table 7, and Table 8. When you set the thresholds, follow these restrictions and guidelines: • If an alarm does not support threshold configuration, the threshold value range for the alarm is N/A. If an alarm supports thresholds, you must set the thresholds. • If the input threshold exceeds the number of decimal places supported by the value range, the exceeding decimal places are ignored. For example, if the value can only be an integer and you input 5.9, the actual value that takes effect is 5. Usage guidelines You can specify only one CTC protocol version on an ONU port. Figure 1 shows the relationships between the triggering threshold trigger-value and clearing threshold clear-value of an alarm. • For a lower limit alarm, for example, temp-low-alarm, the clearing threshold must be higher than or equal to the triggering threshold. For an upper limit alarm, for example, temp-high-alarm, the triggering threshold must be higher than or equal to the clearing threshold. • For a pair of upper limit alarm and lower limit alarm, for example, rx-power-high-alarm and rx-power-low-alarm, the following requirements must be met:

{ The clearing threshold of the upper limit alarm must be higher than or equal to the triggering threshold of the lower limit alarm.

{ The triggering threshold of the upper limit alarm must be higher than or equal to the clearing threshold of the lower limit alarm. Figure 1 Relationships between the triggering thresholds and clearing thresholds

Table 6, Table 7, and Table 8 list the alarms supported by the device. Table 6 ONU device alarms

Threshold Alarm Explanation value range battery-failure The battery cannot be charged. N/A battery-missing The battery is absent. N/A battery-volt-low The battery voltage is low. 0 to 6.55 V equipment-alarm An internal interface failure occurs. N/A Failure of the connection between the internal IAD iad-connection-failure N/A and the SS platform occurs. onu-self-test-failure The ONU fails the self-test. N/A The internal temperature of the ONU reaches the onu-temp-high-alarm -127 to 127°C high-temperature alarm threshold. The internal temperature of the ONU falls below the onu-temp-low-alarm -127 to 127°C low-temperature alarm threshold.

37

Threshold Alarm Explanation value range physical-intrusion-alarm The ONU is intruded. N/A The ONU reports a link failure to the main OLT ponif-switch N/A PON port. power-alarm The power supply is abnormal. N/A sleep-status-update The ONU exits sleep mode and starts operating. N/A

Table 7 PON port alarms

Threshold Alarm Explanation value range downstream-crc-error-frames-al The number of downstream CRC error frames 0 to 4294967295 arm exceeds the alarm threshold. downstream-crc-error-frames-w The number of downstream CRC error frames 0 to 4294967295 arning exceeds the warning threshold. The number of discarded downstream frames downstream-discards-alarm 0 to 4294967295 exceeds the alarm threshold. The number of discarded downstream frames downstream-discards-warning 0 to 4294967295 exceeds the warning threshold. The number of downstream frame loss events downstream-drop-events-alarm 0 to 4294967295 exceeds the alarm threshold. downstream-drop-events-warnin The number of downstream frame loss events 0 to 4294967295 g exceeds the warning threshold. The number of downstream error frames exceeds downstream-errors-alarm 0 to 4294967295 the alarm threshold. The number of downstream error frames exceeds downstream-errors-warning 0 to 4294967295 the warning threshold. The number of downstream fragments exceeds the downstream-fragments-alarm 0 to 4294967295 alarm threshold. The number of downstream fragments exceeds the downstream-fragments-warning 0 to 4294967295 warning threshold. The number of downstream jabber frames exceeds downstream-jabbers-alarm 0 to 4294967295 the alarm threshold. The number of downstream jabber frames exceeds downstream-jabbers-warning 0 to 4294967295 the warning threshold. downstream-oversize-frames-al The number of downstream oversized frames 0 to 4294967295 arm exceeds the alarm threshold. downstream-oversize-frames-w The number of downstream oversized frames 0 to 4294967295 arning exceeds the warning threshold. downstream-undersize-frames- The number of downstream undersized frames 0 to 4294967295 alarm exceeds the alarm threshold. downstream-undersize-frames- The number of downstream undersized frames 0 to 4294967295 warning exceeds the warning threshold. The receive power exceeds the high-power alarm -40.00 to 8.10 rx-power-high-alarm threshold. dBm The receive power exceeds the high-power -40.00 to 8.10 rx-power-high-warning warning threshold. dBm

38

Threshold Alarm Explanation value range The receive power falls below the low-power alarm -40.00 to 8.10 rx-power-low-alarm threshold. dBm The receive power falls below the low-power -40.00 to 8.10 rx-power-low-warning warning threshold. dBm The internal temperature exceeds the temp-high-alarm -127 to 127°C high-temperature alarm threshold. The internal temperature exceeds the temp-high-warning -127 to 127°C high-temperature warning threshold. The internal temperature falls below the temp-low-alarm -127 to 127°C low-temperature alarm threshold. The internal temperature falls below the temp-low-warning -127 to 127°C low-temperature warning threshold. The bias current exceeds the high-current alarm tx-bias-high-alarm 0 to 131 mA threshold. The bias current exceeds the high-current warning tx-bias-high-warning 0 to 131 mA threshold. The bias current falls below the low-current alarm tx-bias-low-alarm 0 to 131 mA threshold. The bias current falls below the low-current warning tx-bias-low-warning 0 to 131 mA threshold. The transmit power exceeds the high-power alarm -40.00 to 8.10 tx-power-high-alarm threshold. dBm The transmit power exceeds the high-power -40.00 to 8.10 tx-power-high-warning warning threshold. dBm The transmit power falls below the low-power alarm -40.00 to 8.10 tx-power-low-alarm threshold. dBm The transmit power falls below the low-power -40.00 to 8.10 tx-power-low-warning warning threshold. dBm upstream-crc-error-frames-alar The number of upstream CRC error frames 0 to 4294967295 m exceeds the alarm threshold. upstream-crc-error-frames-warn The number of upstream CRC error frames 0 to 4294967295 ing exceeds the warning threshold. The number of discarded upstream frames upstream-discards-alarm 0 to 4294967295 exceeds the alarm threshold. The number of discarded upstream frames upstream-discards-warning 0 to 4294967295 exceeds the warning threshold. The number of upstream frame loss events upstream-drop-events-alarm 0 to 4294967295 exceeds the alarm threshold. The number of upstream frame loss events upstream-drop-events-warning 0 to 4294967295 exceeds the warning threshold. The number of upstream error frames exceeds the upstream-errors-alarm 0 to 4294967295 alarm threshold. The number of upstream error frames exceeds the upstream-errors-warning 0 to 4294967295 warning threshold. The number of upstream fragments exceeds the upstream-fragments-alarm 0 to 4294967295 alarm threshold.

39

Threshold Alarm Explanation value range The number of upstream fragments exceeds the upstream-fragments-warning 0 to 4294967295 warning threshold. The number of upstream jabber frames exceeds upstream-jabbers-alarm 0 to 4294967295 the alarm threshold. The number of upstream jabber frames exceeds upstream-jabbers-warning 0 to 4294967295 the warning threshold. upstream-oversize-frames-alar The number of upstream oversized frames 0 to 4294967295 m exceeds the alarm threshold. upstream-oversize-frames-warni The number of upstream oversized frames 0 to 4294967295 ng exceeds the warning threshold. upstream-undersize-frames-alar The number of upstream undersized frames 0 to 4294967295 m exceeds the alarm threshold. upstream-undersize-frames-war The number of upstream undersized frames 0 to 4294967295 ning exceeds the warning threshold. The internal voltage exceeds the high-voltage vcc-high-alarm 0 to 6.55 V alarm threshold. The internal voltage exceeds the high-voltage vcc-high-warning 0 to 6.55 V warning threshold. The internal voltage falls below the low-voltage vcc-low-alarm 0 to 6.55 V alarm threshold. The internal voltage falls below the low-voltage vcc-low-warning 0 to 6.55 V warning threshold.

Table 8 UNI alarms

Threshold Alarm Explanation value range downstream-crc-error-frames-al The number of downstream CRC error frames 0 to 4294967295 arm exceeds the alarm threshold. downstream-crc-error-frames-w The number of downstream CRC error frames 0 to 4294967295 arning exceeds the warning threshold. The number of discarded downstream frames downstream-discards-alarm 0 to 4294967295 exceeds the alarm threshold. The number of discarded downstream frames downstream-discards-warning 0 to 4294967295 exceeds the warning threshold. The number of downstream frame loss events downstream-drop-events-alarm 0 to 4294967295 exceeds the alarm threshold. downstream-drop-events-warnin The number of downstream frame loss events 0 to 4294967295 g exceeds the warning threshold. The number of downstream error frames exceeds downstream-errors-alarm 0 to 4294967295 the alarm threshold. The number of downstream error frames exceeds downstream-errors-warning 0 to 4294967295 the warning threshold. The number of downstream fragments exceeds the downstream-fragments-alarm 0 to 4294967295 alarm threshold.

downstream-fragments-warning The number of downstream fragments exceeds the 0 to 4294967295

40

Threshold Alarm Explanation value range warning threshold. The number of downstream jabber frames exceeds downstream-jabbers-alarm 0 to 4294967295 the alarm threshold. The number of downstream jabber frames exceeds downstream-jabbers-warning 0 to 4294967295 the warning threshold. downstream-oversize-frames-al The number of downstream oversized frames 0 to 4294967295 arm exceeds the alarm threshold. downstream-oversize-frames-w The number of downstream oversized frames 0 to 4294967295 arning exceeds the warning threshold. downstream-undersize-frames- The number of downstream undersized frames 0 to 4294967295 alarm exceeds the alarm threshold. downstream-undersize-frames- The number of downstream undersized frames 0 to 4294967295 warning exceeds the warning threshold. e1-los A loss of signal event occurs on an E1 interface. N/A e1-port-failure E1 interface failure occurs. N/A e1-timing-unlock N/A N/A eth-port-auto-neg-failure Autonegotiation fails on an Ethernet port. N/A eth-port-congestion Congestion is detected on an Ethernet port. N/A eth-port-failure An Ethernet port fails. N/A eth-port-loopback A loop is detected on an Ethernet port. N/A eth-port-los A loss of signal event occurs on an Ethernet port. N/A pots-port-failure A POTS port fails. N/A The number of port status changes exceeds the status-change-times-alarm 0 to 4294967295 alarm threshold. The number of port status changes exceeds the status-change-times-warning 0 to 4294967295 warning threshold. upstream-crc-error-frames-alar The number of upstream CRC error frames 0 to 4294967295 m exceeds the alarm threshold. upstream-crc-error-frames-warn The number of upstream CRC error frames 0 to 4294967295 ing exceeds the warning threshold. The number of discarded upstream frames upstream-discards-alarm 0 to 4294967295 exceeds the alarm threshold. The number of discarded upstream frames upstream-discards-warning 0 to 4294967295 exceeds the warning threshold. The number of upstream frame loss events upstream-drop-events-alarm 0 to 4294967295 exceeds the alarm threshold. The number of upstream frame loss events upstream-drop-events-warning 0 to 4294967295 exceeds the warning threshold. The number of upstream error frames exceeds the upstream-errors-alarm 0 to 4294967295 alarm threshold. The number of upstream error frames exceeds the upstream-errors-warning 0 to 4294967295 warning threshold. upstream-fragments-alarm The number of upstream fragments exceeds the 0 to 4294967295

41

Threshold Alarm Explanation value range alarm threshold. The number of upstream fragments exceeds the upstream-fragments-warning 0 to 4294967295 warning threshold. The number of upstream jabber frames exceeds upstream-jabbers-alarm 0 to 4294967295 the alarm threshold. The number of upstream jabber frames exceeds upstream-jabbers-warning 0 to 4294967295 the warning threshold. upstream-oversize-frames-alar The number of upstream oversized frames exceeds 0 to 4294967295 m the alarm threshold. upstream-oversize-frames-warni The number of upstream oversized frames exceeds 0 to 4294967295 ng the warning threshold. upstream-undersize-frames-alar The number of upstream undersized frames 0 to 4294967295 m exceeds the alarm threshold. upstream-undersize-frames-war The number of upstream undersized frames 0 to 4294967295 ning exceeds the warning threshold.

Examples # Enable the equipment-alarm alarm and configure the ONU to use CTC v3.0 or later on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] alarm enable onu equipment-alarm protocol ctc3.0 bandwidth-downstream

Use bandwidth-downstream to configure the downlink bandwidth limits on an ONU port. Use undo bandwidth-downstream to restore the default maximum downlink bandwidth or default maximum downlink burst buffer on an ONU port. Syntax bandwidth-downstream { max-bandwidth bandwidth | max-burstsize burstsize } * undo bandwidth-downstream { max-bandwidth | max-burstsize } * Default The maximum downlink bandwidth is 999994 Kbps, and the maximum downlink burst buffer is 4194240 bytes on an ONU port. Views ONU port view Predefined user roles network-admin Parameters max-bandwidth bandwidth: Specifies the maximum downlink bandwidth in the range of 0 to 999994 Kbps. For 10G-EPON cards, the value range is 0 to 9999940.

42

max-burstsize burstsize: Specifies the maximum downlink burst buffer in the range of 0 to 4194240 bytes. Usage guidelines For the downlink bandwidth limits to take effect, you must enable the downlink bandwidth allocation policy. The downlink bandwidth limits take effect only on known unicast packets. Examples # Set the maximum downlink bandwidth to 888 Kbps and the maximum downlink burst buffer to 999 bytes on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] bandwidth-downstream max-bandwidth 888 max-burstsize 999 Related commands bandwidth-downstream policy enable bandwidth-downstream policy enable

Use bandwidth-downstream policy enable to enable the downlink bandwidth allocation policy on an ONU port. Use undo bandwidth-downstream policy enable to disable the downlink bandwidth allocation policy on an ONU port. Syntax bandwidth-downstream policy enable undo bandwidth-downstream policy enable Default The downlink bandwidth allocation policy is disabled on an ONU port. Views ONU port view Predefined user roles network-admin Examples # Enable the downlink bandwidth allocation policy on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] bandwidth-downstream policy enable bind onu-id

Use bind onu-id to bind an ONU to an ONU port. Use undo bind onu-id to unbind an ONU from an ONU port. Syntax bind onu-id { mac-address | loid loid | loid-password loid { cipher | simple } password } undo bind onu-id

43

Default No ONU is bound to an ONU port. Views ONU port view Predefined user roles network-admin Parameters mac-address: Specifies an ONU by its MAC address. loid: Specifies an ONU by its LOID. loid-password: Specifies an ONU by its LOID and LOID password. loid: Specifies an LOID, a case-sensitive string of 1 to 24 characters. The LOID cannot contain question marks (?), or begin or end with any of the following characters: • Character string DEL. • One of the following special characters: At sign (@), dot (.), comma (,), exclamation point (!), semi-colon (;), colon (:), back quote (`), and double quotes ("). • A hexadecimal number in the range of 0x0 to 0x20. cipher: Specifies a password in encrypted form. simple: Specifies a password in plaintext form. password: Specifies an LOID password, a case-sensitive string of 1 to 12 characters. The LOID password cannot contain question marks (?), or begin or end with any of the following characters: • Character string DEL. • One of the following special characters: At sign (@), dot (.), comma (,), exclamation point (!), semi-colon (;), colon (:), back quote (`), and double quotes ("). • A hexadecimal number in the range of 0x0 to 0x20. Usage guidelines The ONU attributes (MAC address, LOID, and LOID password) you use for ONU binding are not restricted by the ONU authentication mode set by using the authentication-mode command. An ONU goes offline when you use the undo bind onu-id command to unbind it from its ONU port. If fiber backup is not configured, you can create only one-to-one bindings between ONUs and ONU ports. For a fiber backup group, you can bind an ONU to two ONU ports that are on different member OLT ports. Examples # Bind the ONU with MAC address 11-22-33 to ONU 1/0/2:1. system-view [Sysname] interface onu 1/0/2:1 [Sysname-Onu1/0/2:1] bind onu-id 11-22-33 deregister onu

Use deregister onu to deregister an ONU. Syntax deregister onu

44

Views ONU port view Predefined user roles network-admin Usage guidelines After you deregister an ONU, the ONU will be re-registered. Examples # Deregister the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface ONU 1/0/1:1 [Sysname-Onu1/0/1:1] deregister onu display dhcp-client

Use display dhcp-client to display IP address assignment information for an ONU that acts as a DHCP client. Syntax display dhcp-client Views ONU port view Predefined user roles network-admin network-operator Examples # Display IP address assignment information for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] display dhcp-client DHCP client statistic information : Current machine state : HALT

NOTE: Output of this command varies by ONU model. display epon multicast

Use display epon multicast to display multicast information for an ONU port in multicast control mode. Syntax display epon multicast Views ONU port view

45

Predefined user roles network-admin network-operator Usage guidelines You can view multicast information for an ONU port only when the ONU port is up and in multicast control mode. Examples # Display multicast information for ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] display epon multicast Multicast control information: UNI number 1: Multicast vlan 10 Current channel list: Multicast IP: 225.0.0.2 Status: Permit

Multicast vlan 10 Current channel list: Multicast IP: 225.0.0.3 Status: Preview Preview times: 16 Preview remaining time: 144s Table 9 Command output

Field Description No multicast control entries are generated. The causes are as follows: Multicast-control information: None. • Multicast control is not configured. • Multicast clients do not send multicast membership reports. Multicast control policy: Status • Permit—Users are permitted to access the channel. • Preview—Users can only preview the channel. display onu

Use display onu to display ONU information. Syntax In standalone mode: display onu [ silent [ mac | loid ] ] { interface interface-type interface-number | slot slot-number } In IRF mode: display onu [ silent [ mac | loid ] ] { interface interface-type interface-number | chassis chassis-number slot slot-number }

46

Views Any view Predefined user roles network-admin network-operator Parameters silent: Specifies silent ONUs. mac: Specifies silent ONUs of the MAC address binding type. loid: Specifies silent ONUs of the LOID binding type. interface interface-type interface-number: Specifies an OLT port or ONU port by its number. The value of the interface-type argument must be olt or onu. slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (In IRF mode.) Usage guidelines If you do not specify the mac or loid keyword when you specify the silent keyword, this command displays silent ONUs of the MAC address binding type. If you do not specify the silent keyword, this command displays all ONUs. Examples # Display information about all ONUs on OLT 1/0/1. display onu interface olt 1/0/1 MAC LOID LLID Dist(M) Port Mode l/Version Sft/Epm State Aging 3c8c-40cf-07f2 N/A N/A Onu1/0/1:2 N/A N/A Offline N/A ... # Display information about all ONUs on the specified slot. display onu slot 1 ------Olt1/0/1 ------MAC LOID LLID Dist(M) Port Mode l/Version Sft/Epm State Aging 3c8c-40cf-07f2 N/A N/A Onu1/0/1:2 N/A N/A Offline N/A ------Olt1/0/2 ------The port is down. ... Table 10 Command output

Field Description MAC ONU MAC address. LOID ONU LOID.

LLID LLID assigned to the registered ONU. This field displays N/A if the ONU is not

47

Field Description registered. Actual length (in metres) of the optical fiber between the OLT and the ONU. If Dist(M) the optical fiber is shorter than 1 km, this field displays <1000. If the ONU is not registered, this field displays N/A. Bound ONU port number. This field displays N/A if the ONU is not bound to an Port ONU port. ONU model and PCB version. This field displays N/A if the ONU is not Model/Version registered. ONU software version and EEPROM version. This field displays N/A if the Sft/Epm ONU is not registered. ONU state: • Silent—The ONU is powered on, and it is not bound to an ONU port. • Offline—The ONU is powered off, and it is bound to an ONU port. State • Up—The ONU is powered on, and it is bound to an ONU port. • Down—The ONU is bound to an ONU port, but the ONU port is manually shut down. Remaining MAC address aging time of an ONU in silent state. This field Aging displays N/A if the ONU is not in silent state. The port is down. The OLT port is down. display onu loid

Use display onu loid to display information about a legal ONU by specifying its LOID. Syntax display onu loid loid Views Any view Predefined user roles network-admin network-operator Parameters loid: Specifies an LOID, a case-sensitive string of 1 to 24 characters. The LOID cannot contain question marks (?), or begin or end with any of the following characters: • Character string DEL. • One of the following special characters: At sign (@), dot (.), comma (,), exclamation point (!), semi-colon (;), colon (:), back quote (`), and double quotes ("). • A hexadecimal number in the range of 0x0 to 0x20. Examples # Display information about the legal ONU with LOID test. display onu loid test MAC LOID LLID Dist(M) Port Mode l/Version Sft/Epm State Aging 3c8c-40cf-07f2 test 10 1200 Onu1/0/1:2 BT/BV

48

S/E Up N/A ... For information about the parameters in the command output, see Table 10. display onu mac-address

Use display onu mac-address to display information about a legal ONU by specifying its MAC address. Syntax display onu mac-address mac-address Views Any view Predefined user roles network-admin network-operator Parameters mac-address: Specifies an ONU by its MAC address. Examples # Display information about the legal ONU with MAC address 000f-e200-0031. display onu mac-address 000f-e200-0031 MAC LOID LLID Dist(M) Port Mode l/Version Sft/Epm State Aging 000f-e200-0031 N/A N/A Onu1/0/1:2 N/A N/A Offline N/A --- 1 entry found --- For information about the parameters in the command output, see Table 10. display onu protocol

Use display onu protocol to display information about protocols supported by an ONU. Syntax display onu protocol { dhcp-snooping information | igmp-snooping | loopback-detection | pppoe | smart-link | stp } Views ONU port view Predefined user roles network-admin network-operator Parameters dhcp-snooping information: Specifies DHCP snooping Option 82. igmp-snooping: Specifies IGMP snooping. loopback-detection: Specifies loop detection.

49

pppoe: Specifies PPPoE+. smart-link: Specifies Smart Link. stp: Specifies RSTP. Examples # Display IGMP snooping information for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] display onu protocol igmp-snooping Protocol name: IGMP snooping Protocol status: Enabled Total 4 Multicast groups. Group: 0100-5e01-0140 Port : 9 Group: 0100-5e01-013f Port : 9 Group: 0100-5e01-013e Port : 9 Group: 0100-5e01-013d Port : 9 # Display loop detection information for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] display onu protocol loopback-detection Protocol name: Loopback detection Protocol status: Enabled Loopback action: Semi-block Loopback is detected on following interfaces:UNI 1 UNI 4 Table 11 Command output

Field Description Protocol status: • Enabled. Protocol status • Disabled. • Failed to get. Group Multicast MAC address. Port UNI number. Loop protection action: • Semi-block—If a loop is detected on a UNI, the system disables MAC learning on the UNI and blocks the inbound direction of the UNI. • No-learning—If a loop is detected on a UNI, the system disables MAC learning on the UNI. Loopback action • Shutdown—If a loop is detected on a UNI, the system shuts down the UNI. • No shutdown—If a loop is detected on a UNI, the system does not shut down the UNI. • Failed to get—Failed to get the loop protection action.

Loopback is detected on UNIs where loops were detected.

50

Field Description following interfaces display onu protocol smart-link uni-bind information

Use display onu protocol smart-link uni-bind information to display information about UNI count-based PON port activation for an ONU. Syntax display onu protocol smart-link uni-bind information Views ONU port view Predefined user roles network-admin Examples # Display information about UNI count-based PON port activation for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] display onu protocol smart-link uni-bind information Protocol name: smart-link uni-bind Protocol status: Enabled Related commands onu protocol smart-link uni-bind enable display onu protocol transparent-multicast

Use display onu protocol transparent-multicast to display information about multicast packet transparent transmission on an ONU. Syntax display onu protocol transparent-multicast Views ONU port view Predefined user roles network-admin Examples # Display information about multicast packet transparent transmission on an ONU. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] display onu protocol transparent-multicast Multicast Mac Address VLAN ID 0100-5e00-0033 1000

51

Table 12 Command output

Field Description Multicast MAC address enabled with transparent Multicast Mac Address transmission. VLAN ID VLAN ID corresponding to the multicast MAC address.

Related commands onu protocol transparent-multicast display serial-information

Use display serial-information to display information about a serial interface on an ONU. Syntax display serial-information interface-number Views ONU port view Predefined user roles network-admin Parameters interface-number: Specifies a serial interface by its number in the range of 1 to 10. Examples # Display information about serial interface 1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] display serial-information 1 Description: Serial 1 interface Parameters: Baud:9600 Databits:8 Parity:none Stopbits:1 Statistics: Input total: 0 bytes, Error 0 bytes Output total: 0 bytes, Error 0 bytes display uni

Use display uni to display information about a UNI on an ONU. Syntax display uni uni-number Views ONU port view

52

Predefined user roles network-admin network-operator Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Examples # Display information about UNI 1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] display uni 1 UNI 1 Configuration : Port status : Undo shutdown Flow control : Closed Autonegotiation state: Enable Port isolation : Disable MDI type : Automdix Port policy : Inbound : CIR : 0 Bucket depth : 0 Extra burst size : 0 Outbound : CIR : 0 PIR : 0 Vlan configuration : VLAN mode : Transparent Classification & marking : Multicast VLAN : None Multicast groups : 64 Multicast VLAN untagging : Disable Multicast VLAN forwarding info: Multicast VLAN forwarding index:0 VLAN ID:100 Multicast MAC address:0100-5e00-0002 ======Current Status : Link state : DOWN Local autonegotiation ability : 1000BASE-T UTP PHY Full duplex 1000BASE-T UTP PHY 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

53

Autonegotiation advertisement ability : 1000BASE-T UTP PHY Full duplex 1000BASE-T UTP PHY 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 100Mbps-speed mode, Full-duplex mode Link speed type is autonegotiation, Link duplex type is autonegotiation Input(total): 0 packets, 0 bytes 0 broadcasts, 0 multicasts, 0 unicasts, 0 pauses Input: 0 input errors, 0 runts, 0 giants, 0 InRxErr, 0 CRC 0 buffer failures Output(total): 0 packets, 0 bytes 0 broadcasts, 0 multicasts, 0 unicasts, 0 pauses Output: 0 output errors, 0 deferred, 0 collisions, 0 InTxErr Table 13 Command output

Field Description Port status: • Shutdown—The port has been shut down by using the uni Port status shutdown command. • Undo shutdown—The port is administratively up. MDIX mode: • Automdix. MDI type • Mdi. • Mdix. Traffic policing parameters: • Inbound—Uplink traffic policing parameters, including CIR, bucket depth, and extra burst size. To configure these parameters, use the uni port-policy inbound Port policy command. • Outbound—Downlink traffic policing parameters, including CIR and PIR. To configure these parameters, use the uni port-policy outbound command. VLAN operation mode of the UNI: • Transparent—Transparent mode. • Add-vlan-tag—Tag mode. • Translation—Translation mode. • 802.1q-in-802.1q—QinQ mode. • Trunk—Trunk mode. Vlan configuration • Aggregation—N:1 aggregation mode. Possible fields of the VLAN operation mode are as follows: • PVID—PVID of the port. • Priority—802.1p priority of packets. • Old VLAN—Original VLAN ID of packets. • New VLAN—Translated VLAN ID of packets. • Trunk VLAN—Permitted VLANs of the port.

54

Field Description To configure the VLAN operation mode, use the uni vlan-mode command. Multicast VLAN forwarding info Multicast packet transparent transmission configuration of a UNI. Index of the multicast packet transparent transmission Multicast VLAN forwarding index configuration. VLAN ID VLAN ID corresponding to a multicast MAC address. Multicast MAC address Multicast MAC address with transparent transmission enabled. Link layer status: Link state • UP. • DOWN. Total input packet statistics (in packets and bytes), and the packet Input(total) counts for input broadcast packets, multicast packets, unicast packets, and pause frames. Counts for the following frames: • Error frames. • Runt frames. Input • Giant frames. • Frames having the InRxErr error. • Frames having the CRC error. • Frames dropped because of insufficient buffer. Total output packet statistics (in packets and bytes), and the packet Output(total) counts for output broadcast packets, multicast packets, unicast packets, and pause frames. Counts for the following frames: • Error frames. Output • Deferred frames. • Collision frames. • Frames having the InTxErr error.

Related commands uni auto-negotiation uni classification-marking uni flow-control uni mdix-mode uni multicast vlan uni multicast-group-number uni multicast-strip-tag enable uni port-isolate uni port-policy inbound uni port-policy outbound uni shutdown uni transparent-multicast uni vlan-mode

55 display vendor-specific information

Use display vendor-specific information to display detailed information about an ONU. Syntax display vendor-specific information Views ONU port view Predefined user roles network-admin Examples # Display detailed information about the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] display vendor-specific information Serial number Vendor ID : H3C ONU MAC address : 3c8c-40cf-0f12 ONU model : 254 ONU hardware version : A0 ONU software version : 110 ONU extend model : Firmware version : 0x1 Chipset information : Vendor ID : 0x4530 Chip model : 6750 Revision version : 0xa0 Design date : 08/03/27 ONU capability : interface : Support interface : Not support VoIP service : Not support TDM ces service : Not support Gigabit ethernet ports number : 4 Gigabit ethernet ports : 0x1 0x2 0x3 0x4 Fast ethernet ports number : 0 POTS ports number : 0 E1 ports number : 0 Upstream queues number : 8 Maximum queues per port upstream : 8 Downstream queues number : 8 Maximum queues per port downstream : 8 Battery backup : Not support

56

ONU capability(CTC2.1) : ONU type : SFU LLID number : 1 Protection type : Not support Slot number : 0 PON number : 1 Interface type number : 1 VoIP ports number : 0 GE ports number : 4 FE ports number : 0 WLAN ports number : 0 CATV RF ports number : 0 USB ports number : 0 Forward error correction ability : Support IGMP-snooping fast-leave : Support Multicast control fast-leave : Support Forward error correction mode : Disable DBA-Report parameters : Queue sets number : 2 Queue set : 1 Queue 1 : State:1 , Value:0 Queue 2 : State:1 , Value:0 Queue 3 : State:1 , Value:0 Queue 4 : State:1 , Value:65535 Queue 5 : State:1 , Value:65535 Queue 6 : State:0 , Value:0 Queue 7 : State:0 , Value:0 Queue 8 : State:0 , Value:0 Queue set : 2 Queue 1 : State:1 , Value:0 Queue 2 : State:1 , Value:0 Queue 3 : State:1 , Value:0 Queue 4 : State:1 , Value:65535 Queue 5 : State:1 , Value:65535 Queue 6 : State:0 , Value:0 Queue 7 : State:0 , Value:0 Queue 8 : State:0 , Value:0 Multicast-fast-leave : Disable ONU-Isolate state : Disable Multicast-mode : IGSP Table 14 Command output

Field Description ONU capability (CTC v2.1): • ONU type—ONU type, including:

{ SFU—Single family unit. ONU capability(CTC2.1) { HGU—Home gateway unit.

{ SBU—Single business unit.

{ MDU—Multi-dwelling unit.

57

Field Description

{ MTU—Multi-tenant unit. • LLID number—Supported number of LLIDs. • Protection type—Supported link protection type, including type c and type d. • Slot number—Number of slots. • PON number—Supported number of PON ports. • Interface type number—Number of port types. • VoIP ports number—Number of VoIP ports. • GE ports number—Number of GE ports. • FE ports number—Number of FE ports. • WLAN ports number—Number of WLAN ports. • CATV RF ports number—Number of CATV RF ports. • USB ports number—Number of USB ports. ONU capability (CTC v3.0): • IPV6 supported—IPv6 awareness capability. ONU capability(CTC3.0) • Power supply control—Power supply control, including ONU transmit power supply control and ONU receive power supply control. • Service SLA—Service Level Agreement. ONU extend model Complete ONU model. This field is required for CTC v3.0. DBA report message parameters: • Queue sets number—Number of queue sets. DBA-Report parameters • Queue set—Queue set ID. • Queue x: State:x , Value:x—State and threshold (Value) of a queue. The State field displays 0 for a disabled queue and 1 for an enabled queue. Multicast-fast-leave Whether fast-leave processing is enabled for all UNIs on the ONU. ONU-Isolate state Whether port isolation is enabled for all UNIs on the ONU. encryption enable

Use encryption enable to enable downlink traffic encryption for an ONU. Use undo encryption enable to disable downlink traffic encryption for an ONU. Syntax encryption enable undo encryption enable Default Downlink traffic encryption is enabled for an ONU. Views ONU port view Predefined user roles network-admin Examples # Disable downlink traffic encryption for the ONU bound to ONU 1/0/1:1.

58

system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] undo encryption enable forward-error-correction

Use forward-error-correction enable to enable Forward Error Correction (FEC) for an ONU. Use undo forward-error-correction enable to disable FEC for an ONU. Syntax forward-error-correction enable undo forward-error-correction enable Default FEC is disabled on an ONU port. Views ONU port view Predefined user roles network-admin Usage guidelines When 10G/10G-EPON ONUs connected to ONU ports on 10G-EPON cards come online, these ONUs support FEC by default and do not need this configuration. The undo forward-error-correction enable command does not take effect on these ONU ports. Examples # Enable FEC for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] forward-error-correction enable ip address

Use ip address to assign an IP address to the management VLAN interface of an ONU. Use undo ip address to restore the default. Syntax ip address { dhcp-alloc | ip-address { mask-length | mask } gateway gateway } undo ip address Default The management VLAN interface of an H3C ONU uses the IP address 192.168.0.240 and subnet mask 255.255.255.0. Views ONU port view

59

Predefined user roles network-admin Parameters dhcp-alloc: Specifies DHCP IP address allocation. ip-address: Specifies an IP address in dotted decimal format. mask-length: Specifies the length of the subnet mask, in the range of 1 to 31. The subnet mask length is the number of consecutive 1s in the subnet mask. mask: Specifies a subnet mask in dotted decimal format. gateway: Specifies the gateway IP address. Usage guidelines If the management VLAN of an ONU is changed, the IP address of the original management VLAN interface is deleted. This command belongs to the IP stack feature instead of EPON. You cannot execute this command if a user role rule is configured to deny access to the IP stack feature, for example, rule 1 deny write feature ipstack. For more information about the rule command, see RBAC commands in Fundamentals Command Reference. Examples # Assign the IP address 192.168.0.1/24 to the management VLAN interface of the ONU bound to ONU 1/0/1:1, and specify the gateway IP address as 192.168.0.99. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] ip address 192.168.0.1 24 gateway 192.168.0.99 Related commands management-vlan management-vlan

Use management-vlan to specify the management VLAN of an ONU. Use undo management-vlan to restore the default. Syntax management-vlan vlan-id undo management-vlan Default The management VLAN of an ONU is VLAN 1. Views ONU port view Predefined user roles network-admin Parameters vlan-id: Specifies a VLAN ID in the range of 1 to 4094.

60

Usage guidelines If the management VLAN of an ONU is changed, the IP address of the original management VLAN interface is deleted. You must assign an IP address to the new management VLAN interface. Examples # Specifies the management VLAN as VLAN 10 for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] management-vlan 10 Related commands ip address shutdown management-vlan-interface multicast mode

Use multicast mode to set the multicast mode of an ONU. Use undo multicast mode to restore the default. Syntax multicast mode { igmp-snooping | multicast-control } undo multicast mode Default The multicast mode of an ONU is IGMP snooping. Views ONU port view Predefined user roles network-admin Parameters igmp-snooping: Specifies the IGMP snooping mode. multicast-control: Specifies the multicast control mode. Examples # Set the multicast mode to multicast control for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] multicast mode multicast-control multicast vlan-id ip

Use multicast vlan-id ip to map multicast IP addresses to a multicast VLAN. Use undo multicast vlan-id ip to restore the default. Syntax multicast vlan-id vlan-id ip ip-address-list undo multicast vlan-id vlan-id

61

Default No multicast IP addresses are mapped to a multicast VLAN. Views FTTH view Predefined user roles network-admin Parameters vlan-id: Specifies a multicast VLAN ID in the range of 1 to 4094. ip-address-list: Specifies a space-separated list of up to 10 multicast IP address items. Each item specifies a multicast IP address or a range of multicast IP addresses in the format of ip-address1 to ip-address2. Usage guidelines When receiving an IGMP report message, the OLT verifies whether the multicast IP address in the message belongs to a multicast VLAN. • If the address belongs to a multicast VLAN, the OLT generates a multicast forwarding entry for the multicast VLAN. • If the address does not belong to a multicast VLAN, the OLT drops the message. A multicast IP address can be mapped to only one multicast VLAN. Examples # Map the multicast IP address 225.1.2.1 to multicast VLAN 1002. system-view [Sysname] ftth [Sysname-ftth] multicast vlan-id 1002 ip 225.1.2.1 multicast-control host-aging-time

Use multicast-control host-aging-time to set the multicast group member port aging timer for an ONU. Use undo multicast-control host-aging-time to restore the default. Syntax multicast-control host-aging-time host-aging-time undo multicast-control host-aging-time Default The multicast group member port aging timer is 260 seconds. Views ONU port view Predefined user roles network-admin Parameters host-aging-time: Set the aging timer in the range of 200 to 1000 seconds.

62

Usage guidelines This command is available only on an ONU in multicast control mode. Examples # Set the multicast mode to multicast control for the ONU bound to ONU 1/0/1:1. Set the multicast group member port aging timer to 500 seconds for the ONU. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] multicast mode multicast-control [Sysname-Onu1/0/1:1] multicast-control host-aging-time 500 Related commands multicast mode onu authentication-domain

Use onu authentication-domain command to enable ONU authentication for an OLT port and specify the authentication domain for ONU users on the port. Then, users that access through the OLT port are authenticated by using the specified domain. Use undo onu authentication-domain to disable ONU authentication for an OLT port and remove the authentication domain configuration for ONU users on the OLT port. Syntax onu authentication-domain domain-name undo onu authentication-domain Default ONU authentication is disabled for an OLT port. Views OLT port view Predefined user roles network-admin Parameters domain-name: Specifies an ISP domain by its name, a case-insensitive string of 1 to 255 characters. The ISP domain name cannot contain any of the following characters: /\|”:*?<>@ Usage guidelines The authentication domain defines the authentication scheme for ONU users. For more information about authentication domains, see Security Configuration Guide. The ONU authentication function takes effect only when the automatic ONU binding function is enabled. Examples # Enable ONU authentication for OLT 1/0/1, and specify the domain named test for ONU users on the OLT port. system-view [Sysname] interface Olt 1/0/1 [Sysname-Olt1/0/1] onu authentication-domain test

63

[Sysname-Olt1/0/1] quit # Enable automatic ONU binding for the specified slot. system-view [Sysname] ftth [Sysname-ftth] onu bind auto slot 1 [Sysname-ftth] quit Related commands authentication onu (Security Command Reference) onu bind auto onu bind auto

Use onu bind auto to enable automatic ONU binding. Use undo onu bind auto to disable automatic ONU binding. Syntax In standalone mode: onu bind auto [ slot slot-number ] [ bind-type { mac | loid | loid-password } * ] undo onu bind auto [ slot slot-number ] [ bind-type { mac | loid | loid-password } * ] In IRF mode: onu bind auto [ chassis chassis-number slot slot-number ] [ bind-type { mac | loid | loid-password } * ] undo onu bind auto [ chassis chassis-number slot slot-number ] [ bind-type { mac | loid | loid-password } * ] Default Automatic ONU binding is disabled. Views FTTH view Predefined user roles network-admin Parameters slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command enables automatic ONU binding for all cards. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command enables automatic ONU binding for all cards in the IRF fabric. (In IRF mode.) bind-type: Specifies an ONU binding type. If you do not specify a binding type, ONU MAC addresses are used for ONU binding. mac: Specifies MAC address binding. loid: Specifies LOID binding. loid-password: Specifies LOID-password binding.

64

Usage guidelines If an ONU is not bound to any ONU port, the ONU cannot be registered. Such an ONU is called a silent ONU. Automatic ONU binding automatically binds ONU ports to existing silent ONUs and ONUs that join the system after this feature is enabled. Automatic ONU binding applies to an EPON system where ONUs attached to the OLT are completely trustworthy. To unbind an ONU, first use the undo onu bind auto command to disable automatic ONU binding. You can execute this command multiple times to add ONU binding types. If you do not specify an ONU binding type when you execute the undo onu bind auto command, automatic ONU binding is disabled. If you specify ONU binding types when you execute the undo onu bind auto command, automatic ONU binding is disabled for the specified binding types. If you specify LOID binding or LOID-password binding when you execute the onu bind auto command, an online ONU cannot re-register with the OLT after its LOID or LOID password is modified. For successful registration, you must execute the undo bind onu-id command on the corresponding ONU port to remove the ONU binding. Examples # Enable automatic ONU binding on the specified slot. system-view [Sysname] ftth [Sysname-ftth] onu bind auto slot 1 onu bind batch

Use onu bind batch to perform batch ONU binding. Syntax In standalone mode: onu bind batch [ slot slot-number ] [ bind-type { mac | loid | loid-password } ] In IRF mode: onu bind batch [ chassis chassis-number slot slot-number ] [ bind-type { mac | loid | loid-password } ] Default Batch ONU binding is not performed. Views FTTH view Predefined user roles network-admin Parameters slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command enables batch ONU binding for all cards. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command enables batch ONU binding for all cards in the IRF fabric. (In IRF mode.)

65

bind-type: Specifies an ONU binding type. If you do not specify a binding type, ONU MAC addresses are used for ONU binding. mac: Specifies MAC address binding. loid: Specifies LOID binding. loid-password: Specifies LOID-password binding. Usage guidelines Batch ONU binding automatically binds existing silent ONUs to ONU ports at a time. The ONUs that join the system after batch ONU binding is performed will not be bound. Batch ONU binding applies to a newly established EPON system that contains only legal ONUs. You can use the bind onu-id command to manually bind new ONUs after batch ONU binding is performed. Examples # Perform batch ONU binding on the specified slot. system-view [Sysname] ftth [Sysname-ftth] onu bind batch slot 1 Related commands bind onu-id onu bind one-to-one

Use onu bind one-to-one to enable ONU binding control for OLT ports. Use undo onu bind one-to-one to disable ONU binding control for OLT ports. Syntax onu bind one-to-one undo onu bind one-to-one Default ONU binding control is disabled on an OLT port. Views FTTH view OLT port view Predefined user roles network-admin Usage guidelines This feature allows an ONU to be bound to only one ONU port of an OLT port. With this feature enabled on an OLT port, if an ONU has registered with the OLT port, the ONU cannot register with any other OLT port. Configured in OLT port view, this feature takes effect only on the OLT port. Configured in FTTH view, this feature takes effect on all OLT ports. You cannot configure this feature in both OLT port view and FTTH view. Enabling this feature does not affect ONUs registered with different OLT ports.

66

For a fiber backup group to operate properly, do not assign an OLT port with this feature enabled to a fiber backup group. The fiber backup feature requires an ONU to be simultaneously bound to two ONU ports on two OLT ports that back up each other. When you roll back the configuration by using a configuration file with the onu bind one-to-one command and ONU ports on different OLT ports are bound to the same ONU by using the bind onu-id command, the bind onu-id command configuration is kept for only an ONU port on one OLT port after configuration rollback. Examples # Enable ONU binding control on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] onu bind one-to-one onu event

Use onu event to enable event reporting for an ONU. Use undo onu event to disable event reporting for an ONU. Syntax onu event { debug | log | trap } enable level severity undo onu event { debug | log | trap } enable Default Event reporting is disabled for an ONU. Views ONU port view Predefined user roles network-admin Parameters debug: Specifies debugging information. log: Specifies log information. trap: Specifies trap information. level severity: Specifies the severity level threshold. The ONU reports an event to the OLT if the severity level of the event reaches or exceeds this threshold. The following are the severity levels in descending order of priority: • Emergencies (severity=0). • Alerts (severity=1). • Critical (severity=2). • Errors (severity=3). • Warnings (severity=4). • Notifications (severity=5). • Information (severity=6). • Debugging (severity=7).

67

Examples # Enable the ONU bound to ONU 1/0/2:1 to report debugging events with a severity level of alerts or a higher severity level. system-view [Sysname] interface onu 1/0/2:1 [Sysname-Onu1/0/2:1] onu event debug enable level alerts onu mac-address timer

Use onu mac-address timer to set the aging timer for dynamic MAC address entries for an ONU. Use undo onu mac-address timer to restore the default. Syntax onu mac-address timer { aging seconds | no-aging } undo onu mac-address timer Default The aging timer for dynamic MAC address entries is 300 seconds. Views ONU port view Predefined user roles network-admin Parameters aging seconds: Specifies an aging timer value in the range of 1 to 4294967295 seconds. no-aging: Does not set the aging timer, which means dynamic MAC address entries do not age out. Examples # Set the aging timer for dynamic MAC address entries to 500 seconds on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu mac-address timer aging 500 onu multicast fast-leave enable

Use onu multicast fast-leave enable to enable fast-leave processing for all UNIs on an ONU. Use undo onu multicast fast-leave enable to disable fast-leave processing for all UNIs on an ONU. Syntax onu multicast fast-leave enable undo onu multicast fast-leave enable Default Fast-leave processing is disabled for all UNIs on an ONU.

68

Views ONU port view Predefined user roles network-admin Usage guidelines Before you use this command on an ONU, set the multicast mode of the ONU to IGMP snooping. You cannot use this command together with the uni igmp-snooping fast-leave command. Examples # Enable fast-leave processing for all UNIs on the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu multicast fast-leave enable Related commands multicast mode uni igmp-snooping fast-leave onu port-isolate enable

Use onu port-isolate enable to assign all UNIs on an ONU to the isolation group. Use undo onu port-isolate enable to remove all UNIs on an ONU from the isolation group. Syntax onu port-isolate enable undo onu port-isolate enable Default A UNI is not in the isolation group. Views ONU port view Predefined user roles network-admin Usage guidelines You cannot use this command together with the uni port-isolate command. Examples # Assign all UNIs on the ONU bound to ONU 1/0/1:1 to the isolation group. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu port-isolate enable Related commands uni port-isolate

69 onu protocol enable

Use onu protocol enable to enable a user network management feature on an ONU. Use undo onu protocol enable to disable a user network management feature on an ONU. Syntax onu protocol { dhcp-snooping | dhcp-snooping information | loopback-detection | pppoe | stp } enable undo onu protocol { dhcp-snooping | dhcp-snooping information | loopback-detection | pppoe | stp } enable Default RSTP is enabled, and DHCP snooping, DHCP snooping Option 82, loop detection, and PPPoE+ are disabled on an ONU. Views ONU port view Predefined user roles network-admin Parameters dhcp-snooping: Specifies DHCP snooping. dhcp-snooping information: Specifies DHCP snooping Option 82. loopback-detection: Specifies loop detection. pppoe: Specifies PPPoE+. stp: Specifies RSTP. Usage guidelines As a best practice, do not enable both RSTP and loop detection on an ONU. These features might operate incorrectly when used together. Examples # Enable DHCP snooping on the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu protocol dhcp-snooping enable onu protocol igmp-snooping timer

Use onu protocol igmp-snooping timer to set IGMP snooping timers. Use undo onu protocol igmp-snooping timer to restore the default.

NOTE: This command is supported by ET704 ONUs.

Syntax onu protocol igmp-snooping timer { host-aging-time host-aging-time | max-response-time max-response-time | router-aging-time router-aging-time }

70

undo onu protocol igmp-snooping timer { host-aging-time | max-response-time | router-aging-time } Default The multicast group member port aging timer is 260 seconds. The query response timer is 1 second. The router port aging timer is 105 seconds. Views ONU port view Predefined user roles network-admin Parameters host-aging-time host-aging-time: Sets the multicast group member port aging timer in the range of 200 to 1000 seconds. max-response-time max-response-time: Sets the query response timer in the range of 1 to 25 seconds. router-aging-time router-aging-time: Sets the router port aging timer in the range of 1 to 1000 seconds. Usage guidelines The multicast group member port aging timer determines how often multicast group members are refreshed. If the ONU does not receive an IGMP report from a multicast group member port when this timer expires, the ONU deletes the port. In a network where multicast group members change frequently, set this timer to a small value. The query response timer sets the response timeout time for group-specific queries. If the ONU does not receive a response before the query response timer expires for the first time, it re-sends group-specific queries and re-starts the query response timer. If the ONU still does not receive a response when the timer expires, the multicast group on the ONU is deleted. The router port is the port that connects the ONU to the router. The ONU receives IGMP general query messages from the router through this port. If no IGMP general query message is received through the router port when the router port aging timer expires, the ONU determines that the port is not a router port. The router port aging timer must be a value about 2.5 times of the general query interval. For more information about the general query interval, see IGMP in IP Multicast Configuration Guide. Examples # Set the multicast group member port aging timer to 200 seconds for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu protocol igmp-snooping timer host-aging-time 200 onu protocol igmp-snooping suppression

Use onu protocol igmp-snooping suppression to enable IGMP membership report suppression or IGMP leave suppression. Use undo onu protocol igmp-snooping suppression to disable IGMP membership report suppression or IGMP leave suppression.

71

NOTE: This command is supported by ET704 ONUs.

Syntax onu protocol igmp-snooping suppression { leave | report } undo onu protocol igmp-snooping suppression { leave | report } Default IGMP leave suppression is enabled, and IGMP membership report suppression is disabled. Views ONU port view Predefined user roles network-admin Examples # Enable IGMP leave suppression on the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu protocol igmp-snooping suppression leave onu protocol loopback-detection action

Use onu protocol loopback-detection action to set the loop protection action. Use undo onu protocol loopback-detection action to restore the default. Syntax onu protocol loopback-detection action { no-learning | semi-block | shutdown } undo onu protocol loopback-detection action Default The loop protection action of an ONU port is semi-block. Views ONU port view Predefined user roles network-admin Parameters no-learning: Disables MAC address learning when a loop is detected. semi-block: Disables MAC address learning and blocks inbound traffic when a loop is detected. shutdown: Shuts down the port when a loop is detected. Examples # Set the loop protection action to semi-block on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu protocol loopback-detection action semi-block

72 onu protocol smart-link flush enable

Use onu protocol smart-link flush enable to enable an ONU to send flush messages. Use undo onu protocol smart-link flush enable to disable an ONU from sending flush messages. Syntax onu protocol smart-link flush enable [ control-vlan vlan-id ] undo onu protocol smart-link flush enable Default An ONU does not send flush messages. Views ONU port view Predefined user roles network-admin Parameters control-vlan vlan-id: Specifies the control VLAN for receiving flush messages. The VLAN ID is in the range of 1 to 4094, and the default control VLAN is VLAN 1. Examples # Enable the ONU bound to ONU 1/0/1:1 to send flush messages, and specify the control VLAN as VLAN 2. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu protocol smart-link flush enable control-vlan 2 onu protocol smart-link uni-bind enable

Use onu protocol smart-link uni-bind enable to enable UNI count-based PON port activation for an ONU. Use undo onu protocol smart-link uni-bind enable to disable UNI count-based PON port activation for an ONU.

NOTE: This command is supported by ET824-E ONUs.

Syntax onu protocol smart-link uni-bind enable undo onu protocol smart-link uni-bind enable Default UNI count-based PON port activation is disabled for an ONU. Views ONU port view Predefined user roles network-admin

73

Usage guidelines This command enables an ONU to activate the PON port that has more online UNIs if two PON ports are online. Examples # Enable UNI count-based PON port activation for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu protocol smart-link uni-bind enable Related commands display onu protocol smart-link uni-bind information onu protocol transparent-multicast

Use onu protocol transparent-multicast to enable multicast packet transparent transmission for all UNIs on an ONU. Use undo onu protocol transparent-multicast to disable multicast packet transparent transmission for all UNIs on an ONU. Syntax onu protocol transparent-multicast dest-mac mac-address [ vlan vlan-id ] undo onu protocol transparent-multicast dest-mac mac-address [ vlan vlan-id ] Default Multicast packet transparent transmission is disabled for all UNIs on an ONU. The ONU might drop unknown multicast packets. Views ONU port view Predefined user roles network-admin Parameters dest-mac mac-address: Specifies a multicast MAC address. Supported multicast MAC addresses vary by device model. vlan vlan-id: Specifies a VLAN ID of multicast packets, in the range of 1 to 4094. If you do not specify this option, VLAN 1 is used. Usage guidelines With this feature enabled on an ONU, all UNIs on the ONU flood frames destined for the specified destination multicast MAC addresses. If you execute the undo onu protocol transparent-multicast command without specifying the vlan keyword, this command disables transparent transmission of multicast packets with the specified destination multicast MAC addresses and VLAN ID 1. This command and the uni transparent-multicast command are mutually exclusive. You can configure this command for up to eight times on an ONU port. The union of these configurations takes effect.

74

Examples # Enable transparent transmission of multicast packets with destination multicast MAC address 0100-5e00-0033 and VLAN ID 10 for all UNIs on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu protocol transparent-multicast dest-mac 0100-5e00-0033 vlan 10 Related commands uni transparent-multicast onu statistics enable

Use onu statistics enable to enable packet statistics for an ONU. Use undo onu statistics enable to disable packet statistics for an ONU. Syntax onu statistics enable [ period period-value ] undo onu statistics enable Default The packet statistics feature is disabled for an ONU. Views ONU port view Predefined user roles network-admin Parameters period period-value: Specifies a statistic collection interval in the range of 0 to 4294967295 seconds. If you do not specify this option, the default value 900 seconds is used. Examples # Enable packet statistics and set the statistic collection interval to 1000 seconds on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] onu statistics enable period 1000 Related commands display epon statistics qos cos-local-precedence-map

Use qos cos-local-precedence-map to configure CoS-to-local priority mappings. Use undo qos cos-local-precedence-map to restore the default. Syntax qos cos-local-precedence-map cos0 cos1 cos2 cos3 cos4 cos5 cos6 cos7 undo qos cos-local-precedence-map Default Table 15 shows default CoS-to-local priority mappings.

75

Table 15 Default CoS-to-local priority mappings

CoS priority Local precedence 0 0 1 0 2 1 3 1 4 2 5 2 6 3 7 3

Views ONU port view Predefined user roles network-admin Parameters cos0: Specifies the local precedence to be mapped to CoS priority 0, in the range of 0 to 3. cos1: Specifies the local precedence to be mapped to CoS priority 1, in the range of 0 to 3. cos2: Specifies the local precedence to be mapped to CoS priority 2, in the range of 0 to 3. cos3: Specifies the local precedence to be mapped to CoS priority 3, in the range of 0 to 3. cos4: Specifies the local precedence to be mapped to CoS priority 4, in the range of 0 to 3. cos5: Specifies the local precedence to be mapped to CoS priority 5, in the range of 0 to 3. cos6: Specifies the local precedence to be mapped to CoS priority 6, in the range of 0 to 3. cos7: Specifies the local precedence to be mapped to CoS priority 7, in the range of 0 to 3. Usage guidelines This command takes effect only on downlink data flows. Examples # Configure CoS-to-local priority mappings on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] qos cos-local-precedence-map 2 2 1 1 3 3 0 0 reboot onu

Use reboot onu to reboot an ONU. Syntax reboot onu Views ONU port view

76

Predefined user roles network-admin Usage guidelines This command takes effect only on online ONUs. Examples # Reboot the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] reboot onu reset counters serial

Use reset counters serial to clear packet statistics on a serial interface on an ONU. Syntax reset counters serial interface-number Views ONU port view Predefined user roles network-admin Parameters interface-number: Specifies a serial interface by its number in the range of 1 to 10. Usage guidelines Before you use this command, make sure the ONU has serial interfaces. Examples # Clear packet statistics on serial interface 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] reset counters serial 1 reset counters uni

Use reset counters uni to clear packet statistics on UNIs of an ONU. Syntax reset counters uni [ uni-number ] Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. If you do not specify this argument, the command clears packet statistics on all UNIs of the ONU.

77

Examples # Clear packet statistics on UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] reset counters uni 1 serial databit

Use serial databit to set the number of data bits for a serial interface on an ONU. Use undo serial databit to restore the default. Syntax serial interface-number databit { 5 | 6 | 7 | 8 } undo serial interface-number databit Default The number of data bits is 8 for an ONU serial interface. Views ONU port view Predefined user roles network-admin Parameters interface-number: Specifies a serial interface by its number in the range of 1 to 10. 5: Sets the number of data bits to 5. 6: Sets the number of data bits to 6. 7: Sets the number of data bits to 7. 8: Sets the number of data bits to 8. Usage guidelines Before you use this command, make sure the ONU has serial interfaces. Examples # Set the number of data bits to 5 for serial interface 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] serial 1 databit 5 serial parity

Use serial parity to set the parity type for a serial interface on an ONU. Use undo serial parity to restore the default. Syntax serial interface-number parity { even | mark | none | odd | space } undo serial interface-number parity

78

Default The parity type of an ONU serial interface is none, which indicates that no parity is used. Views ONU port view Predefined user roles network-admin Parameters interface-number: Specifies a serial interface by its number in the range of 1 to 10. even: Uses even parity. mark: Uses mark parity. none: Uses no parity. odd: Uses odd parity. space: Uses space parity. Usage guidelines Before you use this command, make sure the ONU has serial interfaces. Examples # Set the parity type to odd for serial interface 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] serial 1 parity odd serial session protocol-type

Use serial session protocol-type to establish a session on a serial interface of an ONU. Use undo serial session protocol-type to delete the session on a serial interface of an ONU. Syntax serial interface-number session session-number protocol-type tcp-client server ip-address port port-number serial interface-number session session-number protocol-type tcp-server listen-port port-number serial interface-number session session-number protocol-type udp server ip-address port port-number listen-port port-number undo serial interface-number session session-number protocol-type Default No session is established on an ONU serial interface. Views ONU port view Predefined user roles network-admin

79

Parameters protocol-type tcp-client: Uses the ONU as the client of a TCP session. protocol-type tcp-server: Uses the ONU as the server of a TCP session. protocol-type udp: Uses the ONU as both the server and client of a UDP session. server: Specifies a server. port: Specifies a port on the server. listen-port: Specifies a local listening port. interface-number: Specifies a serial interface by its number in the range of 1 to 10. session-number: Specifies a session number in the range of 1 to 6. ip-address: Specifies the IP address of the server. port-number: Specifies the port number of the server, in the range of 1024 to 65535. Examples # Establish a TCP session on serial interface 1 of the ONU bound to ONU 1/0/1:1, and configure the ONU as the client of the session. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] serial 1 session 1 protocol-type tcp-client server 122.100.52.5 2 port 15 # Establish a TCP session on serial interface 1 of the ONU bound to ONU 1/0/1:1, and configure the ONU as the server of the session. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] serial 1 session 3 protocol-type tcp-server listen-port 2500 # Establish a UDP session on serial interface 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] serial 1 session 5 protocol-type udp server 3.3.2.5 port 4500 listen-port 75 # Delete the session on serial interface 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname] undo serial 1 session 4 protocol-type serial speed

Use serial speed to set the baud rate for a serial interface of an ONU. Use undo serial speed to restore the default. Syntax serial interface-number speed { 300 | 600 | 1200 | 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200 } undo serial interface-number speed Default The baud rate of an ONU serial interface is 9600 bps.

80

Views ONU port view Predefined user roles network-admin Parameters interface-number: Specifies a serial interface by its number in the range of 1 to 10. 300: Sets the baud rate to 300 bps. 600: Sets the baud rate to 600 bps. 1200: Sets the baud rate to 1200 bps. 2400: Sets the baud rate to 2400 bps. 4800: Sets the baud rate to 4800 bps. 9600: Sets the baud rate to 9600 bps. 19200: Sets the baud rate to 19200 bps. 38400: Sets the baud rate to 38400 bps. 57600: Sets the baud rate to 57600 bps. 115200: Sets the baud rate to 115200 bps. Usage guidelines Before you use this command, make sure the ONU has serial interfaces. Examples # Set the baud rate to 300 bps for serial interface 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] serial 1 speed 300 serial stopbit

Use serial stopbit to set the number of stop bits for a serial interface of an ONU. Use undo serial stopbit to restore the default. Syntax serial interface-number stopbit { 1 | 1.5 | 2 } undo serial interface-number stopbit Default The number of stop bits is 1 for an ONU serial interface. Views ONU port view Predefined user roles network-admin Parameters interface-number: Specifies a serial interface by its number in the range of 1 to 10.

81

1: Sets the number of stop bits to 1. 1.5: Sets the number of stop bits to 1.5. 2: Sets the number of stop bits to 2. Usage guidelines Before you use this command, make sure the ONU has serial interfaces. Examples # Set the number of stop bits to 1.5 for serial interface 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] serial 1 stopbit 1.5 shutdown management-vlan-interface

Use shutdown management-vlan-interface to shut down the management VLAN interface of an ONU. Use undo shutdown management-vlan-interface to bring up the management VLAN interface of an ONU. Syntax shutdown management-vlan-interface undo shutdown management-vlan-interface Default The management VLAN interface of an ONU is down. Views ONU port view Predefined user roles network-admin Usage guidelines You must assign an IP address to a management VLAN interface after you bring it up. After you execute this command, the status of the management VLAN interface depends on the status of the UNIs in the management VLAN. • If all UNIs are down, the management VLAN interface is down. • If a minimum of one UNI is up, the management VLAN interface is up. Examples # Bring up the management VLAN interface of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] undo shutdown management-vlan-interface transceiver-txpower

Use transceiver-txpower to set the state of the transmit power supply for transceiver modules of ONU PON ports.

82

Syntax transceiver-txpower { on | off | off seconds } pon { all | main | standby } onu { all | onu-number-list } Default The transmit power supply is turned on for transceiver modules of all PON ports on an ONU. Views OLT port view Predefined user roles network-admin Parameters on: Turns on the transmit power supply. off: Turns off the transmit power supply. off seconds: Turns off the transmit power supply for a period of time. The seconds argument specifies the period of time when the transmit power supply is off. The value range for the seconds argument is 1 to 65534 seconds. The transmit power supply is turned on automatically after this period of time. pon: Specifies PON ports. all: Specifies the main and standby PON ports. main: Specifies the main PON port. standby: Specifies the standby PON port. onu: Specifies ONUs. all: Specifies all ONUs. onu-number-list: Specifies a space-separated list of up to 10 ONU port items. Each item specifies an ONU port number or a range of ONU port numbers in the form of onu-number1 [ to onu-number2 ]. The value range for the onu-number1 and onu-number2 arguments is 1 to 64. The value of the onu-number2 argument must be larger than or equal to the value of the onu-number1 argument. Usage guidelines In an EPON system, ONUs cannot transmit upstream traffic simultaneously. If an ONU fails and keeps sending optical signals, the other ONUs in the system cannot transmit upstream traffic because their transmission timeslots are occupied. To locate the faulty ONU, you can use this command to disable the transmit power supply of ONUs. Examples # Turn off the transmit power supply of the main and standby PON ports on all ONUs for 300 seconds on OLT 1/0/1. system-view [Sysname] interface olt 1/0/1 [Sysname-Olt1/0/1] transceiver-txpower off 300 pon all onu all uni auto-negotiation

Use uni auto-negotiation to enable autonegotiation on a UNI. Use undo uni auto-negotiation to disable autonegotiation on a UNI.

83

Syntax uni uni-number auto-negotiation undo uni uni-number auto-negotiation Default Autonegotiation is enabled on a UNI. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Usage guidelines On a UNI, do not enable autonegotiation and manually set the duplex mode, MDIX mode, or port rate at the same time. Examples # Enable autonegotiation on UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 auto-negotiation uni classification-marking

Use uni classification-marking to configure priority marking on a UNI. Use undo uni classification-marking to remove priority marking configuration from a UNI. Syntax uni uni-number classification-marking index index queue qid priority priority { { selector operator matched-value } & <1-4> | always-match | never-match } undo uni uni-number classification-marking index index Default Priority marking is not configured on a UNI. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. index: Specifies an index in the range of 1 to 8. The smaller the index, the higher the priority. qid: Assigns packets to a queue specified by its ID in the range of 0 to 7. priority: Marks packets with a priority in the range of 0 to 7.

84

{ selector operator matched-value } & <1-4>: Specifies a maximum of four matching field and rule pairs. • selector: Specifies a matching field. Table 16 shows the available values. • operator: Specifies a matching rule. Table 17 shows the available values. • matched-value: Specifies the value of the matching field if the value of the operator argument is not exist or not-exist.

{ ip-address: Specifies an IP address.

{ mac-address: Specifies a MAC address. Do not specify an ONU MAC address bound to an ONU port for the dst-mac and src-mac fields.

{ port-number: Specifies a port number in the range of 0 to 65535.

{ priority: Specifies a CoS priority in the range of 0 to 7.

{ eth-type: Specifies an type in the range of 0 to FFFF.

{ ip-dscp: Specifies a ToS priority or DSCP priority in the range of 0 to 63.

{ ip-type: Specifies an IP protocol type in the range of 0 to FF.

{ vlan-id: Specifies a VLAN ID in the range of 1 to 4094. always-match: Performs match for traffic classification. never-match: Does not perform match. Table 16 Values for the selector argument

selector Description dst-ip Matches the destination IP address. dst-mac Matches the destination MAC address. dst-port Matches the destination port number. eth-pri Matches the CoS priority. eth-type Matches the Ethernet frame type. ip-precedence Matches the IP precedence. ip-tos-dscp Matches the ToS priority or DSCP priority. ip-type Matches the IP protocol type. src-ip Matches the source IP address. src-mac Matches the source MAC address. src-port Matches the source port number. vlan-id Matches the VLAN ID.

Table 17 Values for the operator argument

operator Description The value of the matched-value argument must be equal to the equal value of the matching field of packets. exist The packets must contain the matching field. The value of the matched-value argument must be different not-equal from the value of the matching field of packets. not-exist The packets cannot contain the matching field.

85

operator Description The value of the matched-value argument must be greater than greater-equal the value of the matching field of packets. The value of the matched-value argument must be smaller than less-equal the value of the matching field of packets.

Usage guidelines Do not use the uni classification-marking commands together with the qos trust dscp command. For more information about the qos trust command, see ACL and QoS Command Reference. Examples # Configure UNI 1 of the ONU bound to ONU 1/0/1:1 to modify the priority to 3 for packet tagged with VLAN ID 10. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 classification-marking index 1 queue 3 priority 3 vlan-id equal 10 uni description

Use uni description to configure the description for a UNI. Use undo uni description to restore the default. Syntax uni uni-number description text undo uni uni-number description Default A UNI does not have a description. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. text: Specifies the description, a string of 1 to 40 characters. Examples # Configure the description as Test for UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 description Test uni duplex

Use uni duplex to set the duplex mode of a UNI.

86

Use undo uni duplex to restore the default. Syntax uni uni-number duplex { auto | full | half } undo uni uni-number duplex Default A UNI is operating in full duplex mode. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. auto: Specifies the auto mode. full: Specifies the full duplex mode. half: Specifies the half duplex mode. Usage guidelines Before you use this command, make sure autonegotiation is disabled on the UNI. Examples # Set the duplex mode to auto for UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 duplex auto Related commands uni auto-negotiation uni flow-control

Use uni flow-control to enable flow control for a UNI. Use undo uni flow-control to disable flow control for a UNI. Syntax uni uni-number flow-control undo uni uni-number flow-control Default Flow control is disabled for a UNI. Views ONU port view Predefined user roles network-admin

87

Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Examples # Enable flow control for UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 flow-control uni igmp-snooping fast-leave

Use uni igmp-snooping fast-leave to enable fast-leave processing for a UNI. Use undo uni igmp-snooping fast-leave to disable fast-leave processing for a UNI. Syntax uni uni-number igmp-snooping fast-leave undo uni uni-number igmp-snooping fast-leave Default Fast-leave processing is disabled for a UNI. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Usage guidelines Before you use this command on an ONU, set the multicast mode of the ONU to IGMP snooping. You cannot use this command together with the onu multicast fast-leave enable command. Examples # Enable fast-leave processing for UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 igmp-snooping fast-leave Related commands multicast mode onu multicast fast-leave enable uni mac-address max-mac-count

Use uni mac-address max-mac-count to set the MAC learning limit on a UNI. Use undo uni mac-address max-mac-count to restore the default.

88

Syntax uni uni-number mac-address max-mac-count count undo uni uni-number mac-address max-mac-count Default The number of MAC addresses that a UNI can learn is not limited. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. count: Specifies the maximum number of MAC addresses that the UNI can learn. The value range for this argument is 0 to 65534. If you set this argument to 0, MAC address learning is disabled on the UNI. Examples # Set the MAC learning limit to 5 on UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 mac-address max-mac-count 5 uni mdix-mode

Use uni mdix-mode to set the MDIX mode for a UNI. Use undo uni mdix-mode to restore the default.

NOTE: This command is not supported by ET254 ONUs.

Syntax uni uni-number mdix-mode { automdix | mdi | mdix } undo uni uni-number mdix-mode Default The MDIX mode of a UNI is automdix. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. automdix: Negotiates pin roles with its peer. mdi: Uses pins 1 and 2 as transmit pins and pins 3 and 6 as receive pins.

89

mdix: Uses pins 1 and 2 as receive pins and pins 3 and 6 as transmit pins. Usage guidelines Before you use this command, make sure autonegotiation is disabled on the UNI. Examples # Set the MDIX mode to automdix for UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 mdix-mode automdix Related commands uni auto-negotiation uni mirroring-port

Use uni mirroring-port to configure a UNI as a mirroring source port. Use undo uni mirroring-port to remove mirroring source port configuration from a UNI. Syntax uni uni-number mirroring-port { both | inbound | outbound } undo uni uni-number mirroring-port Default A UNI is not a mirroring source port. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. both: Specifies both inbound and outbound mirroring. inbound: Specifies inbound mirroring. outbound: Specifies outbound mirroring. Usage guidelines A UNI cannot be both a mirroring source port and destination port. Examples # Configure UNI 1 of the ONU bound to ONU 1/0/1:1 as a mirroring source port and enable both inbound and outbound mirroring. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 mirroring-port both Related commands uni monitor-port

90 uni monitor-port

Use uni monitor-port to configure a UNI as a mirroring destination port. Use undo uni monitor-port to restore the default. Syntax uni uni-number monitor-port undo uni uni-number monitor-port Default A UNI is not a mirroring destination port. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Usage guidelines An ONU can have only one mirroring destination port. To change the mirroring destination port, first remove the original mirroring destination port. A UNI cannot be both a mirroring source port and destination port. Examples # Configure UNI 1 of the ONU bound to ONU 1/0/1:1 as a mirroring destination port. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 monitor-port Related commands uni mirroring-port uni multicast vlan

Use uni multicast vlan to assign a UNI to multicast VLANs on an ONU. Use undo uni multicast vlan to remove a UNI from the specified or all multicast VLANs on an ONU. Syntax uni uni-number multicast vlan vlan-id-list undo uni uni-number multicast vlan { vlan-id-list | all } Default A UNI is not assigned to any multicast VLANs. Views ONU port view

91

Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. vlan-id-list: Specifies a space-separated list of up to 15 multicast VLAN IDs in the range of 1 to 4094. all: Specifies all multicast VLAN IDs. Usage guidelines On an ONU, UNIs can be assigned to a maximum of 15 multicast VLANs. This command is available only on an ONU in IGMP snooping mode. Examples # Assign UNI 1 of the ONU bound to ONU 1/0/1:1 to multicast VLANs 2000 and 3000. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 multicast vlan 2000 3000 Related commands multicast mode uni multicast-control multicast-address

Use uni multicast-control multicast-address to configure the access to multicast channels on a UNI. Use undo uni multicast-control multicast-address to restore the default. Syntax uni uni-number multicast-control multicast-address multicast-address-list [ source-ip ip-address [ to ip-address ] ] rule { deny | permit [ channel-limit channel-number ] | preview time-slice preview-time [ preview-interval interval-time | preview-times preview-times [ reset-interval reset-interval-time ] ]* } undo uni uni-number multicast-control multicast-address [ multicast-address-list ] Default The access to multicast channels is not configured on a UNI. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. multicast-address-list: Specifies a space-separated list of up to 10 multicast IP address items. Each item specifies a multicast IP address or a range of multicast IP address in the format of multicast-address1 to multicast-address2.

92

source-ip ip-address [ to ip-address ]: Specifies the IP address range of the multicast sources that issue multicast channels. The ip-address argument indicates the IP address of a multicast source. deny: Denies user access to the specified multicast channels. permit: Permits user access to the specified multicast channels. channel-limit channel-number: Specifies the number of channels that can be accessed at the same time when the permit keyword is specified. The value range for this argument is 1 to 5. If this option is not specified, up to 5 channels can be accessed at the same time. preview time-slice preview-time: Specifies the preview period during which the users can preview the multicast channels in the range of 1 to 3 minutes. preview time-slice interval-time: Specifies the preview interval in the range of 1 to 10 minutes. preview time-slice preview-times: Specifies the times of previews, in the range of 1 to 3. reset-interval reset-interval-time: Specifies the preview reset interval in the range of 1 to 43200 minutes. If the preset number of previews is reached, you must wait for a preview reset interval before the next preview. Usage guidelines This command is available only on an ONU in multicast control mode. If you specify the source-ip keyword, the OLT processes received IGMPv3 packets as follows: • For IS_IN, TO_IN, or ALLOW IGMPv3 packets:

{ If their multicast IP address and source IP address are in the address range that has multicast rights, the OLT creates multicast entries.

{ If this requirement is not met, the OLT drops the packets. • If the packet type is IS_EX or TO_EX, the OLT drops the packets. • If the packet type is BLOCK, the OLT directly deletes the corresponding multicast entries without checking the packet rights. For more information about IS_IN, TO_IN, ALLOW, IS_EX, TO_EX, and BLOCK IGMPv3 packets, see IP Multicast Configuration Guide. If you assign preview right to multiple multicast channels to users on a UNI, only one of the multicast channels can be previewed at a given time. Examples # Permit users on UNI 1 of the ONU bound to ONU 1/0/1:1 to access the multicast channel 224.1.1.2. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 multicast-control multicast-address 224.1.1.2 rule permit Related commands multicast mode multicast vlan-id ip uni multicast-group-number

Use uni multicast-group-number to configure the number of multicast channels that users can access at the same time on a UNI. Use undo multicast-group-number to restore the default.

93

Syntax uni uni-number multicast-group-number number undo uni uni-number multicast-group-number Default The users on a UNI can access 64 multicast channels at the same time. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. number: Specifies the number of multicast channels, in the range of 0 to 255. Examples # Configure the number of multicast channels as 30 on UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 multicast-group-number 30 uni multicast-strip-tag enable

Use uni multicast-strip-tag enable to configure a UNI to remove the VLAN tag of downlink multicast flows. Use undo uni multicast-strip-tag enable to restore the default. Syntax uni uni-number multicast-strip-tag enable undo uni uni-number multicast-strip-tag enable Default A UNI does not remove the VLAN tag of downlink multicast flows. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Examples # Configure UNI 1 of the ONU bound to ONU 1/0/1:1 to remove the VLAN tag of downlink multicast flows. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 multicast-strip-tag enable

94 uni port-isolate

Use uni port-isolate to assign a UNI to the isolation group. Use undo uni port-isolate to remove a UNI from the isolation group. Syntax uni uni-number port-isolate undo uni uni-number port-isolate Default A UNI is not in the isolation group. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Usage guidelines An ONU supports only one isolation group. The number of UNIs in the isolation group is not limited. You cannot use this command together with the onu port-isolate enable command. Examples # Assign UNI 1 and UNI 2 of the ONU bound to ONU 1/0/1:1 to the isolation group. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 port-isolate [Sysname-Onu1/0/1:1] uni 2 port-isolate Related commands onu port-isolate enable uni port-policy inbound

Use uni port-policy inbound to configure uplink traffic policing on a UNI. Use undo uni port-policy inbound to restore the default. Syntax uni uni-number port-policy inbound { bucket-depth bucket-depth-value | cir cir-value | extra-burst-size extra-burst-size-value } * undo uni uni-number port-policy inbound Default The CBS is 1522 bytes, the CIR is 0 kbps, and the EBS is 0 bytes. Views ONU port view

95

Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. bucket-depth bucket-depth-value: Specifies the CBS in the range of 1522 to 65535 bytes. The CBS is the maximum burst bandwidth. cir cir-value: Specifies the CIR in the range of 64 to 16777152 Kbps. The value of the cir-value argument must be a multiple of 64. extra-burst-size extra-burst-size-value: Specifies the EBS in the range of 0 to 1522 bytes. Examples # Configure uplink traffic policing on UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 port-policy inbound cir 640 bucket-depth 2000 extra-burst-size 1000 uni port-policy outbound

Use uni port-policy outbound to configure downlink traffic policing on a UNI. Use undo uni port-policy outbound to restore the default. Syntax uni uni-number port-policy outbound cir cir-value [ pir pir-value ] undo uni uni-number port-policy outbound Default The CIR is 0 kbps, and the PIR is 0 kbps. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. cir cir-value: Specifies the CIR in the range of 64 to 16777152 Kbps. The value of the cir-value argument must be a multiple of 64. pir pir-value: Specifies the PIR in the range of 64 to 16777152 Kbps. The value of the pir-value argument must be a multiple of 64 and be larger than the CIR. Examples # Configure downlink traffic policing on UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 port-policy outbound cir 30720

96 uni qinq

Use uni qinq to add an SVLAN tag for packets with specific CVLAN tags, or enable transparent transmission for VLANs on a UNI. Use undo uni qinq to remove QinQ configuration from a UNI. Syntax uni uni-number qinq svlan svlan-id cvlan { cvlan-id-list | all } undo uni uni-number qinq svlan svlan-id uni uni-number qinq transparent-vlan { cvlan-id-list | all } undo uni uni-number qinq transparent-vlan { cvlan-id-list | all } Default QinQ is not configured on a UNI. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. svlan svlan-id: Specifies an SVLAN ID in the range of 1 to 4094. cvlan-id-list: Specifies a space-separated list of up to 10 CVLAN ID items. Each item specifies a VLAN ID or a range of VLAN IDs in the format of vlan-id1 to vlan-id2. The value of vlan-id2 cannot be smaller than the value of vlan-id1. The value range for VLAN IDs is 1 to 4094. all: Specifies all CVLAN IDs. Usage guidelines Before you can configure QinQ for a UNI, you must set its VLAN operation mode to QinQ. Enable transparent transmission for VLANs that have special purposes, for example, a VLAN dedicated to a corporation or a management VLAN. When receiving packets tagged with the VLAN ID, the ONU does not add the SVLAN tag to the packets before forwarding them to the service provider network. Examples # Configure UNI 1 of the ONU bound to ONU 1/0/1:1 to add the SVLAN tag 20 for packets with a CVLAN tag of VLAN 3 or 4. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 qinq svlan 20 cvlan 3 to 4 Related commands uni vlan-mode uni restart auto-negotiation

Use uni restart auto-negotiation to force a UNI to restart autonegotiation.

97

Syntax uni uni-number restart auto-negotiation Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Usage guidelines This command is available only when autonegotiation is enabled. Examples # Force UNI 1 of the ONU bound to ONU 1/0/1:1 to restart autonegotiation. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 restart auto-negotiation Related commands uni auto-negotiation uni shutdown

Use uni shutdown to shut down a UNI. Use undo uni shutdown to bring up a UNI. Syntax uni uni-number shutdown undo uni uni-number shutdown Default A UNI is up. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Examples # Shut down UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 shutdown

98 uni speed

Use uni speed to set the rate of a UNI. Use undo uni speed to restore the default. Syntax uni uni-number speed { 10 | 100 | 1000 | auto } undo uni uni-number speed Default The rate of a UNI is 100 Mbps. Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. 10: Sets the UNI rate to 10 Mbps. 100: Sets the UNI rate to 100 Mbps. 1000: Sets the UNI rate to 1000 Mbps. auto: Enable auto rate negotiation. Usage guidelines Before you use this command, make sure autonegotiation is disabled on the UNI. Examples # Set the rate to 10 Mbps for UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 speed 10 Related commands uni auto-negotiation uni statistics enable

Use uni statistics enable to enable packet statistics for a UNI. Use undo uni statistics enable to disable packet statistics for a UNI. Syntax uni uni-number statistics enable [ period period-value ] undo uni uni-number statistics enable Default The packet statistics feature is disabled for a UNI.

99

Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. period period-value: Specifies a statistic collection interval in the range of 0 to 4294967295 seconds. If you do not specify this option, the default value 900 seconds is used. Examples # Enable packet statistics and set the statistic collection interval to 1000 seconds for UNI 1 on ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 statistics enable period 1000 uni transparent-multicast

Use uni transparent-multicast to enable multicast packet transparent transmission for a UNI. Use undo uni transparent-multicast to disable multicast packet transparent transmission for a UNI. Syntax uni uni-number transparent-multicast dest-mac mac-address [ vlan vlan-id ] undo uni uni-number uni transparent-multicast dest-mac mac-address [ vlan vlan-id ] Default Multicast packet transparent transmission is disabled for a UNI on an ONU. The ONU might drop unknown multicast packets. Views ONU port view Predefined user roles network-admin Parameters uni uni-number: Specifies a UNI by its number in the range of 1 to the number of UNIs on the ONU. An ONU supports a maximum of 79 UNIs. dest-mac mac-address: Specifies a multicast MAC address. Supported multicast MAC addresses vary by device model. vlan vlan-id: Specifies a VLAN ID of multicast packets, in the range of 1 to 4094. If you do not specify this option, VLAN 1 is used. Usage guidelines With this feature enabled, a UNI floods frames destined for the specified destination multicast MAC addresses.

100

If you execute the undo uni transparent-multicast command without specifying the vlan keyword, this command disables transparent transmission of multicast packets with the specified destination multicast MAC addresses and VLAN ID 1. This command and the onu protocol transparent-multicast command are mutually exclusive. You can configure this command for up to eight times on a UNI. The union of these configurations takes effect. Examples # Enable transparent transmission of multicast packets with destination MAC address 0100-5e00-0033 and VLAN ID 10 on UNI 1 of ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 transparent-multicast dest-mac 0100-5e00-0033 vlan 10 Related commands onu protocol transparent-multicast uni virtual-cable-test

Use uni virtual-cable-test to test the cable connected to a UNI. Syntax uni uni-number virtual-cable-test Views ONU port view Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. Examples # Test the cable connected to UNI 1 of the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 virtual-cable-test Cable status: abnormal(open), 0 metre(s) Pair Impedance mismatch: - Pair skew: - ns Pair swap: - Pair polarity: - Insertion loss: - db Return loss: - db Near-end crosstalk: 4294967040 db Table 18 Command output

Field Description Cable status Cable status:

101

Field Description • Normal. • Abnormal. • abnormal(open). • abnormal(short). • failure. If the cable is operating correctly, this field displays the total length of the cable. n metre(s) If the cable is not operating correctly, this field displays the length of the cable between the UNI and the point of failure. 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. uni vlan-mode

Use uni vlan-mode to set the VLAN operation mode of a UNI. Use undo uni vlan-mode to restore the default. Syntax • Transparent mode: uni uni-number vlan-mode transparent • Tag mode: uni uni-number vlan-mode tag pvid pvid [ priority priority ] • Translation mode: uni uni-number vlan-mode translation pvid pvid [ priority priority ] { original-vlan-id to translated-vlan-id } &<1-15> • QinQ mode: uni uni-number vlan-mode qinq pvid pvid [ priority priority ] • Trunk mode: uni uni-number vlan-mode trunk pvid pvid [ priority priority ] trunk-vlan-list • N:1 aggregation mode: uni uni-number vlan-mode aggregation pvid pvid [ priority priority ] { vlan-id1 to vlan-id2 aggregated-vlan aggregated-vlan }&<1-15> undo uni uni-number vlan-mode Default The VLAN operation mode of a UNI is transparent. Views ONU port view

102

Predefined user roles network-admin Parameters uni-number: Specifies a UNI by its number in the range of 1 to 79. pvid pvid: Specifies a PVID in the range of 1 to 4094. In tag mode, translation mode, trunk mode, or N:1 aggregation mode, a UNI tags only incoming untagged frames with its PVID. In QinQ mode, a UNI tags all incoming frames with its PVID, regardless of whether the frames already have tags. priority priority: Specifies an 802.1p precedence in the range of 0 to 7. In tag mode, translation mode, trunk mode, or N:1 aggregation mode, a UNI sets only the 802.1p precedence in the PVID tag that it adds to incoming untagged frames. In QinQ mode, a UNI sets the 802.1p precedence in the outermost PVID tag that it adds to incoming frames. { original-vlan-id to translated-vlan-id } &<1-15>: Specifies a maximum of 15 original VLAN ID and translated VLAN ID pairs. The value range for VLAN IDs is 1 to 4094. trunk-vlan-list: Specifies the permitted VLANs in the format of { vlan-id1 to vlan-id2 }&<1-15>. You can specify a maximum of 15 VLAN ID ranges. In a VLAN ID range, the start VLAN ID cannot be greater than the end VLAN ID. Different VLAN ID ranges cannot overlap. The value range for VLAN IDs is 1 to 4094. { vlan-id1 to vlan-id2 aggregated-vlan aggregated-vlan }&<1-15>: Translates a range of VLANs to an aggregate VLAN. The vlan-id1 to vlan-id2 option specifies the original VLAN range. In the VLAN range, the start VLAN ID cannot be greater than the end VLAN ID. The aggregated-vlan argument specifies the translated aggregate VLAN. You can specify a maximum of 15 original VLAN ID range and aggregate VLAN pairs. Usage guidelines If the link type of all ONU ports on an OLT port is access, you must set the VLAN operation mode to transparent for UNIs of the ONUs. This setting ensures that the ONU ports and users receive only untagged packets. The VLANs configured by using the uni vlan-mode command takes effect only on unicast packets. As a best practice, make sure the VLANs configured by using the uni vlan-mode command do not overlap with those configured by using the uni multicast vlan command. Examples # Set the VLAN operation mode of UNI 1 to transparent for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 vlan-mode transparent # Set the VLAN operation mode of UNI 1 to tag for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 vlan-mode tag pvid 100 priority 3 # Set the VLAN operation mode of UNI 1 to translation for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 vlan-mode translation pvid 100 priority 3 2 to 5 # Set the VLAN operation mode of UNI 1 to QinQ for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 vlan-mode qinq pvid 100 priority 3

103

# Set the VLAN operation mode of UNI 1 to trunk for the ONU bound to ONU 1/0/1:1. Set the PVID to 1, set the 802.1p priority in packets to 3, and permit VLANs 2 through 5. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 vlan-mode trunk pvid 1 priority 3 2 to 5 # Set the VLAN operation mode of UNI 1 to N:1 aggregation for the ONU bound to ONU 1/0/1:1. Set the PVID to 1, set the 802.1p priority in packets to 3, and translate VLANs 2 through 5 to 100. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] uni 1 vlan-mode aggregation pvid 1 priority 3 2 to 5 aggregate 100 update onu filename

Use update onu filename to update an ONU or all ONUs on an OLT port. Use undo update onu to cancel the update configuration for an ONU or all ONUs on an OLT port. Syntax update onu [ protocol-type { h3c | ctc } ] filename filename undo update onu Views OLT port view ONU port view Predefined user roles network-admin Parameters protocol-type: Specifies the protocol used for ONU update. If you do not specify a protocol, the H3C protocol is used. h3c: Specifies the H3C protocol. ctc: Specifies the CTC protocol. filename: Specifies a file by its name, a string of 1 to 63 characters. The string can contain only letters, numbers, and special characters in Table 19. The file name is formed by the device name and the ONU update file name. If you do not specify a device name, the name of the Flash on the active MPU is used as the device name. The files on the standby MPU cannot be used for the update. Table 19 Special characters

Character name Symbol Character name Symbol Tilde ~ Plus sign + Exclamation point ! Equal sign = At sign @ Left brace { Pound sign # Right brace } Dollar sign $ Left bracket [ Percent sign % Right bracket ] Caret ^ Backslash \ Ampersand sign & Semi-colon ;

104

Character name Symbol Character name Symbol Left parenthesis ( Apostrophe ' Right parenthesis ) Comma , Hyphen - Dot . Underscore _

Usage guidelines As a best practice, use the H3C protocol for H3C ONUs. To update ONUs from other vendors, use the CTC protocol. When the OLT operating mode of a 10G-EPON card is changed to 128-ONU, the ONUs connected to the EPON card do not support using the H3C protocol for upgrading ONUs. To update a single ONU, use this command in ONU port view. To update all ONUs on an OLT port, use this command in OLT port view. This command issues the update file to ONUs. • If an ONU is online and matches the update file, the ONU is updated. • If an ONU is online but does not match the update file, the ONU is not updated. • If an ONU that matches the update file is not online, whether the ONU is updated when it comes online depends on the update protocol.

{ If the H3C protocol is used, the ONU is updated after it comes online.

{ If the CTC protocol is used, the ONU is not updated after it comes online. To update the ONU, first use the undo update onu command to cancel the update, and execute the update onu command when the ONU is online. After you use this command in OLT port view, whether the OLT updates a matching ONU that newly comes online depends on the creation time of the corresponding ONU port. • If the ONU port is created before you execute this command, the ONU will be updated. • If the ONU port is created after you execute this command, the ONU will not be updated. Examples # Update the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] update onu filename file.app Update flash:/file.app?[Y/N] Y update onu type

Use update onu type to update ONUs by type. Use undo update onu type to cancel the update configuration for an ONU type. Syntax update onu type onu-type [ protocol-type { h3c | ctc } ] filename filename undo update onu type onu-type Views FTTH view Predefined user roles network-admin

105

Parameters onu-type: Specifies an ONU type, a case-insensitive string of 1 to 16 characters. The string can contain only letters, numbers, and special characters in Table 20. Table 20 Special characters

Character name Symbol Character name Symbol Tilde ~ Plus sign + Exclamation point ! Equal sign = At sign @ Left brace { Pound sign # Right brace } Dollar sign $ Left bracket [ Percent sign % Right bracket ] Caret ^ Backslash \ Ampersand sign & Semi-colon ; Left parenthesis ( Apostrophe ' Right parenthesis ) Comma , Hyphen - Dot . Underscore _

protocol-type: Specifies the protocol used for ONU update. If you do not specify a protocol, the H3C protocol is used. h3c: Specifies the H3C protocol. ctc: Specifies the CTC protocol. filename: Specifies a file by its name, a string of 1 to 63 characters. The string can contain only letters, numbers, and special characters in Table 20. The file name is formed by the device name and the ONU update file name. If you do not specify a device name, the name of the Flash on the active MPU is used as the device name. The files on the standby MPU cannot be used for the update. Usage guidelines As a best practice, use the H3C protocol for H3C ONUs. To update ONUs from other vendors, use the CTC protocol. When the OLT operating mode of a 10G-EPON card is changed to 128-ONU, the ONUs connected to the EPON card do not support using the H3C protocol for upgrading ONUs. This command enables the OLT to automatically update ONUs that match the specified ONU type and do not have an update file. The OLT updates ONUs as follows: • If a matching ONU is online, the ONU is updated. • If an ONU is online but does not match the update file, the ONU is not updated. • If an ONU that matches the update file is not online, whether the ONU is updated when it comes online depends on the update protocol.

{ If the H3C protocol is used, the ONU is updated after it comes online.

{ If the CTC protocol is used, the ONU is not updated after it comes online. To update the ONU, first use the undo update onu command to cancel the update, and execute the update onu command when the ONU is online. You can update a maximum of 64 types of ONUs at the same time. Examples # Update all ET704-A-L ONUs.

106

system-view [Sysname] ftth [Sysname-ftth] update onu type et704-a-l filename file.app upstream-sla

Use upstream-sla to specify the uplink bandwidth range for an ONU. Use undo upstream-sla to restore the default. Syntax upstream-sla { fixed-bandwidth fixed-value | maximum-bandwidth max-value | minimum-bandwidth min-value | weight weight-value } * undo upstream-sla Default The fixed uplink bandwidth is 0 kbps, the maximum uplink bandwidth is 23552 kbps, the minimum uplink bandwidth is 2048 kbps, and the bandwidth allocation weight is 1. Views ONU port view Predefined user roles network-admin Parameters fixed-bandwidth fixed-value: Sets the fixed uplink bandwidth in the range of 0 to 14843. The unit of the fixed-value argument is 64 kbps. For 10G-EPON cards, the value range is 0 to 148430. maximum-bandwidth max-value: Sets the maximum uplink bandwidth in the range of 8 to 15625. The unit of the max-value argument is 64 kbps. For 10G-EPON cards, the value range is 8 to 156250. minimum-bandwidth min-value: Sets the minimum uplink bandwidth in the range of 8 to 15000. The unit of the min-value argument is 64 kbps. For 10G-EPON cards, the value range is 8 to 135781. weight weight-value: Specifies the bandwidth allocation weight in the range of 1 to 20. Usage guidelines The fixed bandwidth cannot be greater than the minimum bandwidth. The sum of the fixed bandwidth and the minimum bandwidth cannot be greater than the maximum bandwidth. Examples # Set the maximum uplink bandwidth to 10240 kbps for the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1 [Sysname-Onu1/0/1:1] upstream-sla maximum-bandwidth 160 The maximum-bandwidth of upstream is 10240 kbps using onu

Use using onu to create ONU ports.

107

Use undo using onu to delete ONU ports. Syntax using onu onu-number-list undo using onu onu-number-list Default No ONU ports exist. Views OLT port view Predefined user roles network-admin Parameters onu-number-list: Specifies a space-separated list of up to 10 ONU port number items. Each item specifies an ONU port number or a range of ONU port numbers in the format of onu-number1 to onu-number2. The value of onu-number2 cannot be smaller than the value of onu-number1. The value range for ONU port numbers is 1 to 64. Examples # Create ONU port 1 on OLT 1/0/2. system-view [Sysname] interface olt 1/0/2 [Sysname-Olt1/0/2] using onu 1 voip-port shutdown

Use voip-port shutdown to shut down a VoIP interface on an ONU. Use undo voip-port shutdown to bring up a VoIP interface on an ONU. Syntax voip-port port-number shutdown undo voip-port port-number shutdown Default A VoIP interface is down on an ONU. Views ONU port view Predefined user roles network-admin Parameters port-number: Specifies a VoIP interface by its number. The value range for this argument is 1 to the number of VoIP interfaces on the ONU. Examples # Bring up VoIP interface 1 on the ONU bound to ONU 1/0/1:1. system-view [Sysname] interface onu 1/0/1:1

108

[Sysname-Onu1/0/1:1] undo voip-port 1 shutdown BCMP proxy commands bcmp-proxy enable

Use bcmp-proxy enable to enable the BCMP proxy feature. Use undo bcmp-proxy enable to disable the BCMP proxy feature. Syntax bcmp-proxy enable undo bcmp-proxy enable Default The BCMP proxy feature is disabled. Views System view Predefined user roles network-admin Usage guidelines An OLT with this feature enabled operates as a BCMP proxy to forward member registration information and configuration between the BCMP server and BCMP clients. Examples # Enable the BCMP proxy feature. [Sysname] bcmp-proxy enable bcmp-proxy server address

Use bcmp-proxy server address to specify the IP address of the BCMP server. Use undo bcmp-proxy server address to restore the default. Syntax bcmp-proxy server address ip-address undo bcmp-proxy server address Default The IP address of the BCMP server is not specified. Views System view Predefined user roles network-admin Parameters ip-address: Specifies an IP address.

109

Usage guidelines For a BCMP proxy to communicate with a BCMP server, you must specify the IP address of the server on the BCMP proxy. Examples # Specify 1.1.1.1 as the IP address of the BCMP server. [Sysname] bcmp-proxy server address 1.1.1.1 Related commands bcmp-proxy enable bcmp-proxy server port

Use bcmp-proxy server port to specify the port number of the BCMP server. Use undo bcmp-proxy server port to restore the default. Syntax bcmp-proxy server port port-number undo bcmp-proxy server port Default The port number of the BCMP server is 5000. Views System view Predefined user roles network-admin Parameters port-number: Specifies a port number in the range of 1 to 65535. Usage guidelines Use this command to specify the UDP port number that the BCMP proxy and the BCMP server use to establish a UDP connection. The BCMP proxy and the BCMP server can communicate only after the UDP connection is set up. Examples # Specify 2000 as the port number of the BCMP server. [Sysname] bcmp-proxy server port 2000 Related commands bcmp-proxy enable bcmp-proxy vlan

Use bcmp-proxy vlan to specify the BCMP VLAN. Use undo bcmp-proxy vlan to restore the default. Syntax bcmp-proxy vlan vlan-id undo bcmp-proxy vlan

110

Default The BCMP VLAN is 4041. Views System view Predefined user roles network-admin Parameters vlan-id: Specifies a VLAN ID in the range of 1 to 4094. Usage guidelines The BCMP proxy communicates with BCMP clients only in the BCMP VLAN. Examples # Specify VLAN 100 as the BCMP VLAN. [Sysname] bcmp-proxy vlan 100 Related commands bcmp-proxy enable

111