H Gepon
H Gepon
V2.1
    2019.11.08
                                     GPON OLT CLI User Manual V2.1
Content
                                                            1
                                      GPON OLT CLI User Manual V2.1
                                                              2
                                      GPON OLT CLI User Manual V2.1
                                                              3
                                     GPON OLT CLI User Manual V2.1
                                                            4
                                  GPON OLT CLI User Manual V2.1
                                                          5
                                   GPON OLT CLI User Manual V2.1
                                                           6
                                  GPON OLT CLI User Manual V2.1
                                                        7
                                 GPON OLT CLI User Manual V2.1
                                                         8
                                GPON OLT CLI User Manual V2.1
                                                       9
                               GPON OLT CLI User Manual V2.1
1. Connect OLT
  There are 3 ways to connect and manage the OLT
  1)   Console interface
  2)   Outband management interface, login through telnet or ssh protocol
  3)   Inband management interface, login through telnet or ssh protocol
      [Note]: Some computers do not have a serial port and need to use
    USB to RS232.
  2)   Open the terminal tools on the computer, such as PuTTy, Xshell, SecureCRT,
       etc., create a serial connection, the parameters are as follows,
                                                1
                                  GPON OLT CLI User Manual V2.1
    2)   Use the telnet client to access the OLT's out-of-band management IP on the computer. The
         default management IP is 192.168.0.100.
                                                   2
                                             GPON OLT CLI User Manual V2.1
                                                          Enter the system command from the enable view or the config view.
System view                   OLT(system)#
                                                           3
                             GPON OLT CLI User Manual V2.1
Command:
   help
View:
   View view、enable view、system view、config view ect.,
Parameters:
   None
Descriptions:
   Terminal help command, introduced the usage of “?”
Examples:
   (config)# help
   OLT VTY provides advanced help feature. When you need help,
   anytime at the command line please press '?'.
   If nothing matches, the help list will be empty and you must backup
    until entering a '?' shows the available options.
   Two styles of help are provided:
   1. Full help is available when you are ready to enter a
   command argument (e.g. 'show ?') and describes each possible
   argument.
   2. Partial help is provided when an abbreviated argument is entered
    and you want to know what arguments match the input
   (e.g. 'show me?'.)
Command:
   show history
View:
   View view、enable view、config view ect.,
Parameters:
   None
Descriptions:
   View the history command entered.
Examples:
   OLT(config)# show history
    enable
    exec-timeout 0
    configure
                                           4
                             GPON OLT CLI User Manual V2.1
     exit
     show history
     configure
     show history
     interface gpon-olt 0/1
     interface gpon-onu 0/1:1
     exit
     interface ge 0/1
     exit
Command:
   who
View:
   View view、enable view
Parameters:
   None
Descriptions:
   Displays all terminal and host IP addresses currently connected.
Examples:
   OLT# who
   vty[17] connected from 192.168.0.116.
Command:
   1) exec-timeout {TIME}
   2) no exec-timeout
View:
   Enable view
Parameters:
    TIME:Timeout, in minutes, range 0-35791
Descriptions:
   Configure terminal protect timeout period. When the connection is automatically
   disconnected after the time has elapsed, 0 means no timeout.
   no exec-timeout:Restore default terminal protect timeout period. The default
   value is 10 minutes.
Examples:
   OLT# exec-timeout 20
                                           5
                             GPON OLT CLI User Manual V2.1
Command:
   configure
View:
   Enable view
Parameters:
   None
Descriptions:
   Enter the config view from the enable view.
Examples:
   OLT# configure
   OLT(config)#
Command:
   system
View:
   Enable view、config view
Parameters:
   None
Descriptions:
   Enter system view
Examples:
   OLT(config)#system
   OLT(system)#
    OLT#system
    OLT(system)#
Command:
   enable
View:
   View view
Parameters:
   None
Descriptions:
   Enter the enable view from the view view.
Examples:
   OLT> enable
   OLT#
                                           6
                            GPON OLT CLI User Manual V2.1
Command:
   disable
View:
   Enable view
Parameters:
   None
Descriptions:
   You can use the disable command to exit from the enable view to the view show.
   When the user leaves the terminal for a long time, you should run the disable
   command to exit to the view show, or execute the exit command to exit the
   enable view to prevent unauthorized users from intruding.
Examples:
   OLT# disable
   OLT>
Command:
   exit
View:
   All views
Parameters:
   None
Descriptions:
   The user exits from the current view to the upper-level view using the exit
   command. If the command is entered in the normal user view or the privileged
   user view (enable), the re-login screen is displayed or broken.
Examples:
   OLT(config)# exit
   OLT#
Command:
   end
View:
   All views except view view
Parameters:
   None
Descriptions:
                                          7
                             GPON OLT CLI User Manual V2.1
   Exit the current view and return to the view view. The difference between end
   and exit is: no matter in any view, the end command exits to the view view. Exit
   is exited to the previous view.
Examples:
    OLT(config-if-ge-0/1)# end
    OLT>
Command:
   1) interface ge {INTERFACE_NUM}
   2) interface xge {INTERFACE_NUM}
   3) interface gpon-olt {INTERFACE_NUM}
   4) interface gpon-onu {INTERFACE_NUM}
View:
   Config view、ge view、pon view、 xe view 和 onu view
Parameters:
    INTERFACE_NUM:
     1) For the GE interface, the shape is 0/1-4;
     2) For the XGE interface, the shape is 0/1-2;
     3) For the GPON interface, the shape is 0/1-16;
     4) For the ONU interface, the shape is 0/1-16:0-127,Indicates the first ONUs
         under the first few PON ports of the 0th slot, such as 0/1:31;
Descriptions:
   Switch to the interface view corresponding to the command in the config view
   and several interface views.
Examples:
   OLT(config)# interface ge 0/1
   OLT(config)# interface gpon-olt 0/1
   OLT(config-if-gpon-olt_0/1)# interface gpon-onu 0/1:1
   OLT(config-if-gpon-onu_0/1:1)#
                                            8
                                GPON OLT CLI User Manual V2.1
Command:
   show version buildtime
View:
   Enable view、config view、system view
Parameters:
   None
Descriptions:
   View OLT software version information
Examples:
   OLT(system)# show version buildtime
    ----------------------------------------------
    Product Name                : GPON-OLT-16P
    App Version              : V101R024N190924
    App BuildTime              : 2019-09-24 21:46:16
    FileSystem Version : T16V1.0.1
    FileSystem BuildTime : 2019-07-26 16:42:36
    ----------------------------------------------
Command:
   show dev_sn
View:
   Enable view、config view
Parameters:
   None
Descriptions:
   Display device SN of OLT.
Examples:
   OLT(config)# show dev_sn
    ----------------------------------------------
    Serial Number              : SDTOLT1620190002
                                               9
                                       GPON OLT CLI User Manual V2.1
----------------------------------------------
Command:
   1) hostname {HOSTNAME}
   2) no hostname
View:
   Config view
Parameters:
   HOSTNAME:host name
Descriptions:
   Configure system name,No command restores the default host name, different
   models with different default value
Examples:
   OLT(config)# hostname GPON16
   GPON16 (config)# no hostname
   OLT(config)#
Command:
   reboot
View:
   Enable view、systemview、config view
Parameters:
   None
Descriptions:
   Restart the device, after entering reboot, you will be prompted to restart, enter y and
   press Enter to restart.
Examples:
   OLT(system)# reboot
   WARNING:System will reboot!!Continue? (y/n) y
Command:
   upgrade app {FILENAME}
View:
   System view
Parameters:
                                                      10
                              GPON OLT CLI User Manual V2.1
    Upgrade OLT
    OLT(system)# upgrade app gpon16_app
Command:
   show running-config
View:
   config、ge/xge、gpon、onu ect.
Parameters:
   None
Descriptions:
   View current configuration
Examples:
   OLT(config)# show running-config
    Current configuration:
    !
    !
    ![VLAN configuration]
    !
    !
    ![dba-profile]
    !
    !
                                           11
                                GPON OLT CLI User Manual V2.1
    ![onu-line-profile]
    onu-line-profile profile-id 0 profile-name Def_line-profile_0
    tcont 1 dba-profile-id 0
    commit
    exit
    !
    !
    ![onu-service-profile]
    onu-service-profile profile-id 0 profile-name Def_srv-profile_0
    port-num eth adaptive
    port-num pots adaptive
    port-num veip adaptive
    commit
    exit
    !
    !
    ![interface-gpon-olt]
    interface gpon-olt 0/1
    exit
    interface gpon-olt 0/2
    exit
    interface gpon-olt 0/3
    exit
Command:
   save
View:
   enable、system、config ect.
Parameters:
   None
Descriptions:
   Save the current configuration.
Examples:
   OLT(config)# save
                                              12
                               GPON OLT CLI User Manual V2.1
Command:
   backup config-file to tftp {SERVER_IP}
View:
   system、config ect.
Parameters:
    SERVER_IP:tftp server IP
Descriptions:
   Back up the olt configuration file to the PC through the tftp protocol. The PC needs
   to open the tftp server.
Examples:
   Back up the olt configuration file to the PC with the IP address 192.168.0.116
   through the tftp protocol.
Command:
   load config-file {CONFIG_FILENAME} tftp {SERVER_IP}
View:
   system、config ect.
Parameters:
    CONFIG_FILENAME:SERVER_IP:tftp server IP
Descriptions:
   Back up the olt configuration file to the PC through the tftp protocol. The PC needs
   to open the tftp server.
Examples:
   Back up the olt configuration file to the PC with the IP address 192.168.0.116
   through the tftp protocol.
    OLT(system)# backup config-file to tftp 192.168.0.116
     Success.
Command:
   erase startup-config
View:
   system、config ect.
Parameters:
   None
Descriptions:
                                             13
                               GPON OLT CLI User Manual V2.1
Command:
   user add {USER-NAME} { USER-PASSWORD} {admin|common|operator} reenter
   {REENTER_TIMES} [USERINFO]
View:
   Config view
Parameters:
    USER-NAME,4-16 characters
       PASSWORD,5-16 characters
       charactersadmin|common|operator
    REENTER_TIMES, The number of times users log in at the same time, ranging
       from 1 to 8.
    USERINFO, User instructions
Descriptions:
   Add an account and set account related information
Examples:
   Add an account, the user name is test, the password is 12345, the user group is
   admin, and 5 terminals are allowed to log in at the same time. The user description
   information is test_user.
    OLT(config)# user add test 12345 admin reenter 5 test_user
Command:
    user delete {USER-NAME}
View:
    Config view
Parameters:
     USER-NAME, User name, 4-16 characters
Descriptions:
Delete the account specified by user name
Delete account test
                                              14
                               GPON OLT CLI User Manual V2.1
Command:
   1) user password {OLD-PASSWORD} {NEW-PASSWORD}
   2) user password [USER-NAME] {OLD-PASSWORD} {NEW-PASSWORD}
View:
   Config view
Parameters:
    The USER-NAME of the account need to be modified. If the username is not
      specified, change the password of the currently logged in user.,
    OLD-PASSWORD,account old password
    NEW-PASSWORD,account new password
Descriptions:
   Change the password of the account specified by the username.
Examples:
   User test old password is test123, change it to 123456
   OLT(config)# user password test test123 123456
Command:
   user offline {USER-NAME}
View:
   Config view
Parameters:
    USER-NAME,account user name
Descriptions:
   Force the account specified by the user name to go offline.
Examples:
   Force user test offline.
   OLT(config)# user offline test
Command:
                                             15
                             GPON OLT CLI User Manual V2.1
   user save
View:
   Config view
Parameters:
   None
Descriptions:
   Save account’s configuration
Examples:
   OLT(config)# user save
                                          16
                              GPON OLT CLI User Manual V2.1
Command:
   time {YEAR/MONTH/DAY-HOUR:MINUTE:SECOND}
View:
   Enable View 、system view 、config view
Parameters:
    YEAR:Value 2000-2099.
    MONTH:Value 1-12.
    DAY:Value1-31
    HOUR:Value 0-23
    MINUTE:Value 0-59
    SECOND:Value 0-59
Descriptions:
   Configure equipment time
Examples:
   OLT(system)# time 2018/10/10-10:10:10
Command:
   show system time
View:
   System view
Parameters:
   None
Descriptions:
   Display device time, time zone information.
Examples:
   OLT(system)# show system-time
   Wed Oct 10 10:16:19 UTC 2018
Command:
                                            17
                              GPON OLT CLI User Manual V2.1
Command:
   ntp server {IP-ADDRESS }
View:
   Config view
Parameters:
    IP-ADRESS:NTP server IP address
Descriptions:
   Configure the NTP server IP address.
Examples:
   $Configure the IP address of the NTP server is 192.168.10.190
   OLT(config)# ntp server ip-address 192.168.10.190
                                            18
                                       GPON OLT CLI User Manual V2.1
Command:
   show ntp info
View:
   Config view
Parameters:
   None
Descriptions:
   View the current NTP configuration.
Examples:
   OLT(config)# show ntp info
    ntp client               : Disable
    ntp server ip              : 192.168.10.100
    ntp client sync interval      : 2000
Command:
   show cpu rate
View:
   System view
Parameters:
   None
Descriptions:
   Show cpu's occupation rate.
Examples:
   OLT(system)# show cpu rate
      Cpu Id           Usage
   ---------------------------------------
         1             17.61%
Command:
   show ddr rate
View:
   System view
Parameters:
                                                    19
                                        GPON OLT CLI User Manual V2.1
   None
Descriptions:
   Query memory usage rate.
Examples:
   OLT(system)# show ddr rate
          Type             Usage
   ---------------------------------------------
           Memory             63.60%
Command:
   show memory statistics
View:
   System view
Parameters:
   None
Descriptions:
   Query memory usage status.
Examples:
    OLT(system)# show memory statistics
      Storage Type             Storage Size            Storage Used
   ---------------------------------------------------------------------------------------
      Memory                  256860 kB             163444 kB
Command:
   show work-space
View:
   System view
Parameters:
   None
Descriptions:
   Query system workspace information
Examples:
   OLT(system)# show work-space
      Work Space: Active (Expected)
      |-Product Name: OLT
      |-Software Version: V100R001D180322
      |-Linux Kernel Version: 3.6.5
      |-DBA: G.988
                                                          20
                                 GPON OLT CLI User Manual V2.1
Command:
   show temperature status
View:
   System view
Parameters:
   None
Descriptions:
   Query the temperature of the board.
Examples:
   OLT(system)# show temperature status
    Temperature1: 49.0 ℃
      Temperature2: 64.0 ℃
Command:
   temperature limit high {HIGH_VALUE} low {LOW_VALUE}
View:
   System view
Parameters:
    HIGH_VALUE: The temperature reaches this value and the fan rotates at
       full speed, the range is 65-100.
    LOW_VALUE: The temperature drops to this value and the fan stops
       rotating. The range is 0-30.
Descriptions:
   Configure the temperature threshold for automatic fan start/stop/full speed rotation
Examples:
   OLT(system)# temperature limit high 70 low 20
Command:
   fan {start|stop} {fan1|fan2|fan3|all}
View:
   System view
                                              21
                                GPON OLT CLI User Manual V2.1
Parameters:
   start:Turn on
   stop:Turn off fan
   fan1|fan2|fan3|all: Select a fan or all fans
Descriptions:
   Turn on or off fan 1/fan 2/fan 3/all fan rotation function
Examples:
   OLT(system)# fan start fan1
   OLT(system)# fan start fan2
   OLT(system)# fan start all
   OLT(system)# fan stop fan1
   OLT(system)# fan stop fan2
Command:
   fan crtl {fan|fan2|fan3|all} {0%|25%|50%|75%|100%}
View:
   System view
Parameters:
    0%|25%|50%|75%|100%:
    fan1|fan2|fan3|all: Select a fan or all fans
Descriptions:
   Control fan 1 / fan 2 / fan 3 / all fan speed
Examples:
   OLT(system)# fan ctrl fan1 100%
   OLT(system)# fan ctrl fan2 100%
   OLT(system)# fan ctrl fan3 100%
   OLT(system)# fan ctrl all 100%
Command:
   ping {IPADDRESS}
View:
                                               22
                              GPON OLT CLI User Manual V2.1
Command:
   telnet {SERVER_IP} [PORT]
View:
   System view
Parameters:
    SERVER_IP:telnet IP address of server, such as A.B.C.D
    PORT :telnet          The port number of the server.
Descriptions:
   Remote login to the telnet server.
Examples:
   OLT(system)# telnet 192.168.0.117
Command:
   ftp get {IPADDRESS} {USERNAME} {PASSWORD} {REMOTE_NAME}
   [LOCAL_NAME]
View:
   System view
Parameters:
    IPADDRESS:FTP IP address of server, such as A.B.C.D
                                            23
                               GPON OLT CLI User Manual V2.1
Command:
   ftp put {IPADDRESS} {USERNAME} {PASSWORD} {LOCAL_NAME}
View:
   System view
Parameters:
    IPADDRESS:FTP IP address of server, such as A.B.C.D
    USERNAME:FTP User name
    PASSWORD:FTP Password
    LOCAL_NAME: The name of the file to be uploaded. The file must be
        located in the /tmp/ path.
Descriptions:
   FTP Client command for uploading.
Examples:
   Upload the gpon.txt file in the /tmp/ directory to the FTP server.
   OLT(system)# ftp put 192.168.1.126 admin 12345 gpon.txt
Command:
   tftp get {NAME} {IPADDRESS}
View:
   System view
Parameters:
   IPADDRESS:TFTP IP address of server, such as A.B.C.D
   NAME:The name of the file to be downloaded, downloading to the current
   directory.
Descriptions:
                                             24
                                GPON OLT CLI User Manual V2.1
   TFTP The client command, it is used to download the file. The file is downloaded to
   the current directory of the OLT. The current directory is viewed in the system view
   using pwd.
Examples:
   OLT(system)# tftp get ts 192.168.1.126
Command:
   tftp put {NAME} {IPADDRESS}
View:
   System view
Parameters:
    IPADDRESS:TFTP IP address of server, such as A.B.C.D
    NAME:The name of the file to be uploaded, upload the file in the current
        directory. The current directory is viewed in the system view using pwd.
Descriptions:
   TFTP Client command for uploading.
Examples:
   OLT(system)# tftp put ts 192.168.1.126
4. Port Management
Command:
   1) show port state all
   2) show port state { ge | xge | gpon } all
   3) show port state gpon-olt all
View:
   Config view
Parameters:
    ge | xge | gpon :Port type
Descriptions:
   View the status information of the port.show port state gpon all : the status of the
   switch port corresponding to the gpon is displayed.show port state gpon-olt all :
   Viewing the status related to pon.
Examples:
                                              25
                                GPON OLT CLI User Manual V2.1
Command:
   show state
View:
   ge、xge and gpon view
                                               26
                                        GPON OLT CLI User Manual V2.1
Parameters:
   None
Descriptions:
   View the details of the port.
Examples:
   View details of GPON1
   OLT(config-if-gpon-olt_0/1)# show state
    --------------------------------------------------------------------------------
    Attribute                 Value
    --------------------------------------------------------------------------------
    Port Name                     : PON01
    Port State                 : Enabled
    Medium                      : None
    Link speed                   : Force speed(- MBps full)
    Flow ctrl                : ON
    MTU                      : 12284
    Link status                : DOWN
    --------------------------------------------------------------------------------
   Port vlan configuration:
    Port type                 : hybrid
    Port default vlan              :1
Command:
   show statistic
View:
   ge、xge and gpon view
Parameters:
   None
Descriptions:
   View traffic packet statistics on GPON ports
Examples:
   View statistics for GE1 packets
   OLT(config-if-ge-0/1)# show statistic
   -----------------------------------------------
                                                           27
                                         GPON OLT CLI User Manual V2.1
port : GE01
-----------------------------------------------
IfInOctets                         :               0
IfInUcastPkts                           :              0
IfInNUcastPkts                            :              0
IfInDiscards                         :               0
IfInErrors                        :              0
IfInUnknownProtos                                :            0
IfOutOctets                           :              0
IfOutUcastPkts                             :             0
IfOutNUcastPkts                              :            0
IfOutDiscards                            :              0
IfOutErrors                          :              0
IfOutQLen                             :               0
IpInReceives                             :              0
IpInHdrErrors                           :               0
IpForwDatagrams                                  :            0
IpInDiscards                           :               0
Dot1dBasePortDelayExceededDiscards :                                     0
Dot1dBasePortMtuExceededDiscards :                                      0
Dot1dTpPortInFrames                                   :          0
Dot1dTpPortOutFrames                                    :          0
Dot1dPortInDiscards                               :            0
EtherStatsDropEvents                                :            0
EtherStatsMulticastPkts                            :            0
EtherStatsBroadcastPkts                               :           0
EtherStatsUndersizePkts                               :           0
EtherStatsFragments                                :            0
EtherStatsPkts64Octets                               :           0
EtherStatsPkts65to127Octets                               :         0
EtherStatsPkts128to255Octets                                :        0
EtherStatsPkts256to511Octets                                :        0
EtherStatsPkts512to1023Octets                                 :      0
EtherStatsPkts1024to1518Octets                                 :      0
EtherStatsOversizePkts                               :           0
EtherRxOversizePkts                                :            0
EtherTxOversizePkts                                :            0
EtherStatsJabbers                              :            0
EtherStatsOctets                             :            0
EtherStatsPkts                            :              0
EtherStatsCollisions                           :            0
                                                               28
                                  GPON OLT CLI User Manual V2.1
       EtherStatsCRCAlignErrors         :      0
       EtherStatsTXNoErrors           :      0
       EtherStatsRXNoErrors           :      0
       IfInBroadcastPkts          :       0
       IfInMulticastPkts        :       0
       IfOutBroadcastPkts           :      0
       IfOutMulticastPkts         :       0
Command:
   port {enable | disable}
View:
   ge、xge、gpon-olt
Parameters:
    enable:Enable port admin State.
    disable:disable port admin State.
Descriptions:
   None
Examples:
   Set ge 1 to disable
   OLT(config)#interface ge 0/1
   OLT(config-if-ge-0/1)# port disable
flow
4.2.1. Speed
Command:
   port speed {10 | 100 | 1000}
View:
   ge、xge
Parameters:
    10 | 100 | 1000:10M, 100M, 1000M.
Descriptions:
   None
                                                   29
                               GPON OLT CLI User Manual V2.1
Examples:
   Set ge 1 speed 100M
   OLT(config)#interface ge 0/1
   OLT(config-if-ge-0/1)# port speed 100
4.2.2. Duplex
Command:
   port duplex {full | half}
View:
   ge、xge
Parameters:
    full:full duplex.
    half:half duplex.
Descriptions:
   None
Examples:
   Set ge 1 to full duplex
   OLT(config)#interface ge 0/1
   OLT(config-if-ge-0/1)# port duplex full
Command:
   port auto-negotiation {enable | disable}
View:
   ge、xge
Parameters:
    enable:Enable port auto negotiation.
    disable:disable port auto negotiation.
Descriptions:
   None
Examples:
   Set ge 1 to disable auto negotiatioin
   OLT(config)#interface ge 0/1
   OLT(config-if-ge-0/1)# port auto-negotiation disable
                                             30
                                GPON OLT CLI User Manual V2.1
Command:
   port flow-control {enable | disable }
View:
   ge、xge
Parameters:
    enable:enable flow control
    disable:disable flow control
Descriptions:
   None
Examples:
   enable ge 1 flow control
   OLT(config)#interface ge 0/1
   OLT(config-if-ge-0/1)# port flow-control enable
Command:
   1) port rate-limit egress {RATE}
   2) no rate-limit all
View:
   ge、xge and gpon view
Parameters:
    RATE: The limited bandwidth, in Kbps, ranges from 64 to 1000000.
Descriptions:
   port rate-limit egress:Used to set the exit speed limit value of the current port.
   no rate-limit all:The egress speed limit used to restore the port is the default value,
   that is, the speed limit.
Examples:
   Set the outlet speed limit of port GE1 to 10M.
   OLT(config-if-ge-0/1)# port rate-limit egress 10000
   OLT(config-if-ge-0/1)# show rate-limit
    Port Type sec(kbps) burst(kbits)
                                              31
                                GPON OLT CLI User Manual V2.1
     GE01 ingress       0        0
     GE01 egress       10000     100
Command:
   1) port rate-limit ingress {RATE}
   2) no rate-limit all
View:
   ge、xge and gpon view
Parameters:
    RATE: Limit bandwidth, in Kbps, ranging from 64 to 1000000.
Descriptions:
   port rate-limit ingress :Used to set the import speed limit value of the current port.
   no rate-limit all :The import speed limit used to restore the port is the default value,
   that is, the speed limit.
Examples:
   Set the port import speed limit of the current port to 10M.
   OLT(config-if-ge-1/1)# port rate-limit ingress 10000
                                               32
                               GPON OLT CLI User Manual V2.1
Command:
   show rate-limit
View:
   ge、xge and gpon view
Parameters:
   None
Descriptions:
   Displays the current and inbound speed limits of the interface.
Examples:
   OLT(config-if-ge-0/1)# show rate-limit
    Port Type sec(kbps) burst(kbits)
    GE01 ingress       0       0
    GE01 egress         0      0
Command:
   port storm-control broadcast pps {PPS_VALUE}
View:
   ge、xge 和 gpon view
    PPS_VALUE:Limit the broadcast packet traffic received by the current port. The
        unit is the number of packets per second, ranging from 2-33554368.
Descriptions:
   port storm-control broadcast pps :The command is used to limit the broadcast
   packet traffic received by the port.
Examples:
   Set the current port to receive up to 1000 broadcast packets per second
   OLT(config-if-ge-0/3)# port storm-control broadcast pps 1000
Command:
   port storm-control multicast pps {PPS_VALUE}
View:
   ge、xge and gpon view
Parameters:
                                             33
                                GPON OLT CLI User Manual V2.1
Command:
   port storm-control unicast pps {PPS_VALUE}
View:
   ge、xge and gpon view
Parameters:
    PPS_VALUE:Limit the unknown unicast packet (DLF) traffic received of the
        current port. The unit is the number of packets per second, ranging from 2 to
        33554368.
Descriptions:
   port storm-control unicast pps : The port storm-control unicast pps command is used
   to limit the unknown unicast packet traffic received by the port.
Examples:
   Set the current port to receive up to 1000 unknown unicast packets per second.
   OLT(config-if-ge-0/3)# port storm-control unicast pps 1000
Command:
   show strom-control
View:
   ge、xge and gpon view
Parameters:
   None
Descriptions:
   Displays the current interface storm suppression information.
Examples:
   Display the status and configuration information of the current interface.
   OLT(config-ge-0/1)# show storm-control
   Port GE01 storm control:
   Bulticast pps: 0
   Multicast pps: 0
                                              34
                                    GPON OLT CLI User Manual V2.1
Unicast pps: 0
Command:
   mirror dst-port ge {PORT-ID} {all| egress| ingress}
View:
   ge、pon and xge view
Descriptions:
   None
Parameters:
    PORT-ID:Port mirroring port ID, in the range of 1-4.
    ingress:Monitor the packets received by the port.
    egress:Monitor packets sent by the port (outbound port)
    all:Monitor both messages in both directions.
Examples:
   Add the monitored port PON 4 to port mirroring group 1, monitoring the received
   packets.
   OLT(config-if-ge-0/4)# mirror dst-port ge 2 egress
Command:
   show state
View:
   ge、pon and xge view
Descriptions:
   None
Parameters:
   None
Examples:
   OLT(config-if-ge-0/4)# show state -------------------------------------------------------------
    Attribute                Value
    --------------------------------------------------------------------------------
    Port Name              : GE01
    Port State             : Enabled
                                                    35
                                       GPON OLT CLI User Manual V2.1
    Medium                 : Copper
    Link speed             : Auto-negotiation(- MBps -)
    Flow ctrl                : ON
    MTU                   : 12284
    Link status            : DOWN
    --------------------------------------------------------------------------------
    Port vlan configuration:
    Port type              : hybrid
    Port default vlan            :1
Command:
   1) mac address-table static {MAC-ADDRESS} vlan {VLAN-ID} port {ge|xge|gpon}
       {INTERFACE_NUM}
   2) no mac address-table static {MAC-ADDRESS} vlan {VLAN-ID} port
       {ge|xge|gpon} {INTERFACE_NUM}
Parameters:
    MAC-ADDRESS:MAC address, expressed as AA:BB:CC:DD:EE:FF
    ge|xge|gpon:Port type
    INTERFACE_NUM:Port number
    VLAN-ID:VLAN ID value in 1-4094.
Descriptions:
   mac address-table static command use to add a MAC address entry.
   no mac address-table static command use to delete a MAC address entry.
Examples:
   Add a static MAC entry to the PON1 port.
   OLT(config)#mac address-table static 00:00:3d:09:04:05 vlan 10 port gpon 1
    Delete the static MAC address entry of VLAN 10 on the PON1 port.
    OLT(config)#no mac address-table static 00:00:3d:09:04:05 vlan 10 port gpon 1
                                                          36
                                     GPON OLT CLI User Manual V2.1
Command:
   1) show mac-address all
   2) show mac-address black-hole
   3) show mac-address dynamic
   4) show mac-address static
View:
   Config view
Parameters:
   None
Descriptions:
   1) show mac-address all:show all mac-address
   2) show mac-address black-hole:show black-hole mac-address
   3) show mac-address dynamic:show dynamic mac-address
   4) show mac-address static:show static mac-address
Examples:
   Display all address entries in the MAC address table.
   OLT(config)# show mac-address all
   Total mac address learning: 2
   --------------------------------------------------------------------------------
    MAC                  VLAN Port MAC-Type
   --------------------------------------------------------------------------------
    50:7b:9d:44:98:f5           1 GE03 dynamic
    08:10:7a:3c:2e:88            1 GE03 dynamic
   --------------------------------------------------------------------------------
Command:
   1) mac address-table flush all
   2) mac address-table flush dynamic
   3) mac address-table flush static
   4) mac address-table flush black-hole
   5) mac address-table flush port {ge|xge|gpon} {INTERFACE_NUM}
   6) mac address-table flush vlan {VLAN-ID} all
View:
   Config view
Parameters:
    ge|xge|gpon:port type
                                                     37
                               GPON OLT CLI User Manual V2.1
    INTERFACE_NUM:port number
    VLAN-ID:VLAN ID value in 1-4094.
Descriptions:
1) mac address-table flush all,clean all mac-address
2) mac address-table flush dynamic,clean dynamic mac-address
3) mac address-table flush static ,clean static mac-address
4) mac address-table flush black-hole,clean black-hole mac-address
5) mac address-table flush port {ge|xge|gpon} {INTERFACE_NUM},Clear the MAC
   address entry of the specified port.
6) mac address-table flush vlan {VLAN-ID} all,clear the MAC address entry of the
   specified VLAN.
Examples:
   Clear the dynamic MAC address learned by the current device.
   OLT(config)# mac address-table flush dynamic
Command:
     1) mac address-table age {AGE_TIME}
     2) no mac address-table age
View:
     Config view
Parameters:
      AGE_TIMEThe aging time of the dynamic entry in the MAC address table is in
          the range of { 10-1000000 }, in seconds. By default, the aging time is 300s.
Descriptions:
     The mac address-table age command is used to set the aging time of dynamic
entries in the MAC address table.
     Examples:
     Configure the aging time of dynamic entries in the MAC address table to be 600s.
     OLT(config)# mac address-table age 600
【Descriptions】
  If the aging time is too short, the address will be deleted prematurely. When olt
  received the package which send to the deleted mac address, it will broadcast the
  packet to all ports in the same VLAN. This unnecessary broadcast will affect the
  running performance.
  If the aging time is too long, the no longer used address will be Long-term existence
  in the address table, affecting the address table of the Ethernet switch refreshed in
  time. In this case, when the workstation moves from one port to another, the time
  delay will occur.By learning the MAC address of added to the MAC address table,
  aging will be completed in the second cycle of its aging cycle.
                                             38
                              GPON OLT CLI User Manual V2.1
Command:
   show mac address-table age
View:
   Config view
Parameters:
   None
Descriptions:
   Displays the aging time of dynamic entries in the MAC address table.
Examples:
   Display the aging time of dynamic entries in the MAC address table.
   OLT(config)# mac address-table age
   MAC address age time(s): 300
Command:
   mac address-table limit {ge|xge|pon} {INTERFACE_NUM} {LIMIT_NUM}
View:
   Config view
Parameters:
    ge|xge|gpon:Port type
    INTERFACE_NUM:Pory number
    LIMIT_NUM:mac limit number
Descriptions:
   Configure the limit number of port MAC address.
Examples:
   Configure the MAC address limit number of the GE1 port as 1000.
   OLT(config-if-ge-1/3)# mac address-table max-mac-count 1 1000
Command:
   1) show mac-address limit {ge|xge|pon} {INTERFACE_NUM}
   2) show mac-address limit all
View:
   Config view
Parameters:
    ge|xge|gpon:Port type
    INTERFACE_NUM: Port number
Descriptions:
   Displays the limit number of port MAC address.
                                            39
                             GPON OLT CLI User Manual V2.1
Examples:
   Display the limit number of MAC address for GE 1
   OLT(config-if-ge-1/3)# show mac-address limit 1
   Mac address learning limit : 70
Command:
   loopback {enable| disable}
View:
   Config view
Parameters:
    enable:Enable function of loop detection
    disable:Disable function of loop detection
Descriptions:
   Turn on/off the function of loop detection.
Examples:
    OLT(config)# loopback enable
Command:
   loopback polling-interval {POLLING_INTERVAL}
View:
   Config view
Parameters:
    POLLING_INTERVAL:Detect the polling interval time of the loop, in seconds,
       in the range of 1-10.
Descriptions:
   Set the polling interval time of loop detection .
Examples:
    OLT(config)# loopback polling-interval 2
                                          40
                                 GPON OLT CLI User Manual V2.1
Command:
   loopback recovery-interval {RECOVERY_INTERVAL}
View:
   Config view
Parameters:
   RECOVERY_INTERVAL:Renew restore the interval time of port up after the loop
   port is down detected. The unit is in seconds and the range is 1-6000.
Descriptions:
   Renew restore the interval time of port up after set the loop port down detected
Examples:
    OLT(config)# loopback recovery-interval 60
Command:
   show loopback-info
View:
   Config view
Parameters:
   None
Descriptions:
   View loop detection information.
Examples:
   OLT (config)# show loopback-info
    ----------------------------------------
    Loopback detection status : Disable
    Polling interval(S)           :1
    Recovery interval(S)             : 60
    ----------------------------------------
                                               41
                                      GPON OLT CLI User Manual V2.1
5. VLAN Management
Command:
   1) Interface vlan {VLANID} [END_VLANID]
   2) no vlan {FIRST-ID} [LAST-ID]
View:
   Config view
Parameters:
    VLANID、END_VLANID:The range of the VLAN need to be created,
       ranging from 1 to 4094. If you do not specify END_VLANID, create a VLAN
       ID and enter its view or enter the view of the VLAN already exists directly .
Descriptions:
   Use the vlan command to enter the VLAN view or create a VLAN and enter the
   view when the VLAN does not exist. This command enables batch create
   VLANs. no vlan command can be used to delete or delete VLANs in batches.
Examples:
   Create VLAN 2, enter VLAN 2 configuration view.
   OLT(config)# interface vlan 2
   OLT(config-vlan-2)#
   Create VLANs 20 to 30 in batches.
   OLT(config)# interface vlan 20 30
   OLT(config-vlan-{20-30})#
Command:
   1) show vlan all
   2) show vlan {VLAN-ID}
View:
   vlan、 config view
Parameters:
    VLAN-ID: VLAN number, ranging from 1-4094.
Descriptions:
   This command is used to display information about a VLAN.
Examples:
   Display information about VLAN 7
   OLT(config)# show vlan 7
   --------------------------------------------------------------------------------
                                                        42
                                      GPON OLT CLI User Manual V2.1
     Attribute                 Value
     --------------------------------------------------------------------------------
     VLAN ID                    : 100
     Tagged Ports                 : GE01,GE03,GE04
     Untagged Ports                :
     --------------------------------------------------------------------------------
Command:
   vlan mode {access | trunk | hybrid}
View:
   ge、xge and gpon view
Parameters:
    access | trunk | hybrid : vlan mode
Descriptions:
   Set the VLAN mode of the port. The default is hybrid.
Examples:
   ccOLT(config-if-ge-0/1)# vlan mode access
Command:
   vlan qinq {CVLAN_LIST} svlan {SVLAN_ID} priority {PRI}
View:
   ge、xge and gpon view
Parameters:
    CVLAN_LIST:Cvlan list, multiple vlan separated by ","
    SVLAN_ID:The outer vlan need to be added
    PRI: The outer priority need to be added.
Descriptions:
   Add a vlan to the packet in the CVLAN_LIST. The outer vlan value is SVLAN_ID
   and the priority is PRI.
Examples:
   The packet with vlan 100 and 200 on port 1 add to the outer vlan 301, priority is
   1.
   OLT(config-if-ge-0/1)# vlan qinq 100,200 svlan 301 priority 1
                                                        43
                              GPON OLT CLI User Manual V2.1
Command:
   vlan translation {CVLAN_LIST} svlan {SVLAN_ID} priority {PRI}
View:
   ge、xge and gpon view
Parameters:
    CVLAN_LIST:Cvlan list, multiple vlans are separated by ",";
    SVLAN_ID:The outer vlan to be added
    PRI:The outer priority to be added.
Descriptions:
   Convert the vlan of the packet in the CVLAN_LIST to SVLAN_ID, the priority is
   PRI.
Examples:
   Convert the packet with vlan 100 and 200 of port 1 to vlan301 with a priority of 1.
   OLT(config-if-ge-0/1)# vlan translation 100,200 svlan 301, priority is 1
Command:
   1) port {gpon | ge | xge} {PORT_LIST} {tagged | untagged}
   2) no port {gpon | ge | xge} {PORT_LIST}
View:
   Vlan view
Parameters:
    ge|xge|gpon:Port type
    PORT_LIST: Port number
Descriptions:
   Use the port command to add the specified port to the current VLAN.
   port
   Use the no port command to remove the specified port from the current VLAN.
   no port
Examples:
   Add a single member port for the current VLAN
   OLT(config-vlan-7)# port gpon 4 untagged
                                            44
                              GPON OLT CLI User Manual V2.1
Command:
   port default-vlan {PVID}
View:
   ge、xge and gpon view
Parameters:
    PVID: The default VLAN ID, in the range of 1-4094.
Descriptions:
   Use the port default-vlan command to configure the default VLAN ID of a port.
   port default-vlan
Examples:
   Configure PVID of port ge 3 to be 2
   OLT(config)# interface ge 0/3
   OLT(config-if-ge-0/3)#port default-vlan 2
【Descriptions】
  According to the port type, the PVID has different uses.
  For the hybrid port, the entry untagged packet will be tagged with the default tag,
  using the default PVID;
  For transparent ports, untagged packets or packets with cvlan, if do not configure
  vlan conversion, the packet will be forwarded when vlan is equal to the domain of
  the PVID
Command:
   show port vlan
View:
   ge、xge and gpon view
Parameters:
   None
Descriptions:
   Displays port VLAN information, including port type, port TPID, PVID, default
   priority, which VLANs belong to, and the entry translation table when the port is a
   transparent type port.
Examples:
   Display VLAN information of GE port 1.
   OLT(config-if-ge-0/1)# show port vlan
   --------------------------------------------------------------------------------
    Port             : GE01
    --------------------------------------------------------------------------------
    Tagged
    VLAN ID              : 100,
    Untagged
    VLAN ID              :
    --------------------------------------------------------------------------------
                                            45
                            GPON OLT CLI User Manual V2.1
6. Management Interface
Command:
   outband ip-address {IPADDRESS} {NETMASK}
View:
   Config view
Parameters:
    IPADDRESS:IP address, expressed as a.b.c.d
    NETMASK:Subnet mask, expressed as a.b.c.d.
Descriptions:
   Configure the IP and subnet mask of the outband network management Ethernet
   interface.
Examples:
    Configure the IP address of the outband network port.
Command:
   show outband ip-address
View:
   Config view
Parameters:
   None
Descriptions:
   Displays the IP address subnet mask and gateway information of the outband
   network management Ethernet interface.
Examples:
   Display IP address information of the outband Ethernet port
   OLT(config)# show outband ip-address
    -----------------------------------------
    IP address          : 192.168.0.118
    IP netmask           : 255.255.255.0
    Gateway address : 0.0.0.0
    -----------------------------------------
                                         46
                             GPON OLT CLI User Manual V2.1
6.2.1. Inband IP
Command:
   1) ip address {IP4ADDRESS} {NETMASK}
   2) ip address {IP6ADDRESS} {PREFIX_LEN}
   3) no ip address
View:
   Vlan view
Parameters:
    IP4ADDRESS:Inband network management interface IPV4 address,
        dotted decimal format.
    NETMASK:The corresponding subnet mask, in dotted decimal format.
    IP6ADDRESS:Inband network management interface IPV6 address.
    PREFIX_LEN:The prefix length of the IPV6 address.
Descriptions:
   The ip address command use to configure the inband network management
   interface and enable it. Modify it in enable this situation.
   ip addresno ip address command used to disable the in-band network
   management interface.
   no ip address
Examples:
   Configure the inband interface in vlan1000, ip as 10.10.10.100, subnet mask
   255.255.255.0
    OLT(config)# vlan 1000
    OLT(config-vlan-1000)# ip address 10.10.10.100 255.255.255.0
【Descriptions】
  The IP address of the inband network management interface and the outband
  network management interface cannot be on the same subnet. After enabling the
  in-band network management interface, in order to make the in-band
  management data take effect, there are two other configurations need to be
  processed:The port that receives the in-band management data is divided into
  the VLAN,The TAG mode of the egress needs to be determined based on the
  actual networking.If connecte the PC directly, the configuration is UNTAG, and
  the PVID of the port that receives the inband management data is configured as
  the ID of the VLAN where the inband interface is locate, port PVID configuration
  for receiving in-band management data is the ID corresponding to the VLAN in
  the Internal interface;If the entire network is managed through a dedicated
  management VLAN, it is generally configured as TAG mode.
Command:
   1) gateway {IPADDRESS}
   2) no gateway
View:
   Config view
Parameters:
                                          47
                             GPON OLT CLI User Manual V2.1
Command:
   1) ip proxy-arp
   2) no ip proxy-arp
View:
   Vlan view
Parameters:
   none
Descriptions:
   ip proxy-arp command enable arp proxy;
   no ip proxy-arp command disable arp proxy.
Examples:
   Enable arp proxy for inband interface vlan 100
    OLT(config)# interface vlan 100
    OLT(config-if-vlan-100)# ip proxy-arp
Command:
   1) ip proxy-arp
   2) no ip proxy-arp
View:
   Vlan view
Parameters:
   none
Descriptions:
   ip proxy-arp command enable arp proxy;
   no ip proxy-arp command disable arp proxy.
Examples:
   Enable arp proxy for inband interface vlan 100
    OLT(config)# interface vlan 100
    OLT(config-if-vlan-100)# ip proxy-arp
                                          48
                              GPON OLT CLI User Manual V2.1
Command:
   1) show ip address
   2) show ip6 address
View:
   Vlan view
Parameters:
   None
Descriptions:
   Display inband interface information with the current vlan, ipv4 or ipv6.
Examples:
   OLT(config-if-vlan-100)# show ip address
    ----------------------------------
    VLAN          : 100
    IP        : 192.168.10.11
    Mask         : 255.255.255.0
    MAC          : ec:79:f2:00:00:03
    Arp Proxy : disable
    ----------------------------------
Command:
   1) show ip address all
   2) show ip6 address all
View:
   Vlan view, config view
Parameters:
   None
Descriptions:
   Display all inband interface information, ipv4 or ipv6.
Examples:
   OLT(config)# show ip address all
    ----------------------------------
    VLAN          : 100
    IP        : 192.168.10.11
    Mask         : 255.255.255.0
    MAC          : ec:79:f2:00:00:03
    Arp Proxy : disable
    ----------------------------------
                                             49
                                GPON OLT CLI User Manual V2.1
6.3. Route
Command:
   1) ip route-static {DST_IP4ADDR} {DST_MASK} {NEXTHOP_IP4ADDR}
   2) ip route-static {DST_IP6ADDR} {PREFIX_LEN} {NEXTHOP_IP6ADDR}
View:
   config view
Parameters:
    DST_IP4ADDR: destination ip4 address
    DST_MASK: destination ip4 addres netmask
    NEXTHOP_IP4ADDR: next hop ip4 address
    DST_IP6ADDR: destination ip6 address
    PREFIX_LEN: destination ip6 addres prefix length
    NEXTHOP_IP6ADDR: next hop ip6 address
Descriptions:
   Add a ipv4 or ipv6 static route.
   The next hop ipaddress should be the same subnet with one of the existing
   inband IP.
Examples:
   add static route, 192.168.20.0, the next hot ip is 192.168.100.1
    OLT(config)# ip route-static 192.168.20.0 255.255.255.0 192.168.100.1
Command:
   1) show ip route-static
   2) show ip6 route-static
View:
   config view
Parameters:
   none
Descriptions:
   show all ipv4 or ipv6 static route
Examples:
   show all ipv4 static route
   OLT(config)# show ip route-static all
    ----------------------------------------------------------------------
    Index Dest-IP                Mask            Next-Hop          IF-VLAN Status
    ----------------------------------------------------------------------
     1 192.168.20.0 255.255.255.0 192.168.100.1 100 inactive
    ----------------------------------------------------------------------
                                               50
                           GPON OLT CLI User Manual V2.1
Command:
  1) dba-profile add profile-name {PROFILE_NAME} type1 fix {BW_VALUE}
  2) dba-profile add profile-name {PROFILE_NAME} type2 assure {BW_VALUE}
  3) dba-profile add profile-name {PROFILE_NAME} type3 assure {BW_VALUE}
      max {BW_VALUE}
  4) dba-profile add profile-name {PROFILE_NAME} type4 max {BW_VALUE}
  5) dba-profile add profile-name {PROFILE_NAME} type5 fix {BW_VALUE}
      assure {BW_VALUE} max {BW_VALUE}
  6) dba-profile add profile-id {PROFILE_ID} type1 fix {BW_VALUE }
  7) dba-profile add profile-id {PROFILE_ID} type2 assure {BW_VALUE}
  8) dba-profile add profile-id {PROFILE_ID} type3 assure {BW_VALUE} max
      {BW_VALUE}
  9) dba-profile add profile-id {PROFILE_ID} type4 max {BW_VALUE}
  10) dba-profile add profile-id {PROFILE_ID} type5 fix {BW_VALUE} assure
      {BW_VALUE} max {BW_VALUE}
View:
   Config view
Parameters:
    PROFILE_NAME: DBA Profile name, up to 32 characters;
   PROFILE_ID DBA Profile ID, or index;
    BW_VALUE: Bandwidth rate, in kbps, in the range of 1-1000000.
Descriptions:
   Create a DBA Profile that can be created based on ID, name, or ID+ name.
   There are five types of DBA types: type1, type2, type3, type4, and type5.
   DBAtype1:Only contains fix (fixed bandwidth);
   type2:Only contains assure (guaranteed bandwidth) ;
   type3:Contains assure+max (guaranteed bandwidth + maximum bandwidth);
   type4:Only contains max (maximum bandwidth);
   type5:Contains fix+assure+max (fixed bandwidth + guaranteed bandwidth +
   maximum bandwidth)
Examples:
   Create a DBA Profile named UP-1G, type 4, and maximum bandwidth 1G:
   OLT(config)# dba-profile add profile-name UP-1G type4 max 1024000
   Create a DBA Profile with ID 20, type 1 and fixed bandwidth 1M:
   OLT(config)# dba-profile add profile-id 20 type1 fix 1024
                                        51
                             GPON OLT CLI User Manual V2.1
Command:
   show dba-profile all
View:
   Config view
Parameters:
   None
Descriptions:
   View the configuration information of the created DBA Profile, including the
   Profile ID, name, DBA type, rate, number of TCONT bindings,ect.,
Examples:
   OLT(config)# show dba-profile all
Command:
   1) dba-profile delete profile-name {PROFILE_NAME}
   2) dba-profile delete profile-id {PROFILE_ID}
View:
   Config view
Parameters:
    PROFILE_NAME: DBA Template name, up to 32 characters.
    PROFILE_ID:          DBA Profile ID, or index.
Descriptions:
   Delete the DBA Profile, delete it according to the ID or name.
   Note: If the DBA Profile has been bound by TCONT, it cannot be deleted. It can
   be deleted after it has been untied.
Examples:
   Delete the DBA Profile with ID 20:
   OLT(config)# dba-profile delete profile-id 20
   Delete the DBA Profile named UP-1G:
   OLT(config)# dba-profile delete profile-name UP-1G
                                           52
                              GPON OLT CLI User Manual V2.1
Command:
   onu-line-profile {profile-name PROFILE_NAME | profile-id PROFILE_ID}
View:
   config view
Parameters:
    PROFILE_NAME:              Line Profile name, up to 32 characters.
    PROFILE_ID: Line Profile ID, or index.
Descriptions:
   After the command is executed, it will enter the corresponding line Profile node,
   node name: config-line-profile-plus PROFILE_NAME or PROFILE_ID.
   If the Profile does not exist before, you need to use the commit submit command
   to create the Profile and save the current configuration. If you do not execute the
   commit command, you can exit the Profile directly. The Profile will not be created
   and the configuration will not be saved.
   If the Profile exists before, you need to use the commit submit command to save
   the current configuration. If you do not execute the commit command, you can
   exit directly, and the currently modified configuration will not be saved.
   Note: If the line profile has been bound by the ONU, you cannot enter the Profile
   node or modify the Profile configuration. Only after unbinding, can you enter the
   Profile and modify the Profile configuration.
Examples:
   Create a line Profile named HGU:
   OLT(config)# onu-line-profile profile-name HGU
   OLT(config-line-profile-HGU)#commit
   OLT(config-line-profile-HGU)#exit
Command:
   no onu-line-profile { profile-name PROFILE_NAME | profile-id PROFILE_ID}
View:
   Config view
Parameters:
                                             53
                              GPON OLT CLI User Manual V2.1
                                             54
                               GPON OLT CLI User Manual V2.1
Command:
   mapping-mode {vlan | priority | vlan-priority}
View:
   Line Profile node view
Parameters:
   None
Descriptions:
   Mapping mode, supports 3 mapping modes:
   Vlan mapping mode: mean gemport mapping to the bridge through vlan;
   priority mapping mode: mean gemport mapping to the bridge through priority;
   Vlan-priority mapping mode: mean gemport mapping to the bridge through vlan-
   priority;
   The default is vlan mapping mode.
Examples:
   Configured as vlan mapping mode:
   OLT(config-line-profile-HGU)#mapping-mode vlan
Command:
   1) tcont {TCONT_INDEX} {dba-profile-name PROFILE_NAME | dba-profile-id
        PROFILE_ID}
   2) no tcont {0-7}
View:
   Line Profile node view
Parameters:
    TCONT_INDEX: tcont ID or index
    PROFILE_NAME:DBA mode name
    PROFILE_ID:DBA mode ID
Descriptions:
   Create tcont and bind the DBA Profile; you can create 8 tcont.
   Note: If tcont has been bound by gemport, it cannot be deleted. It can be deleted
   after it has been unbind.
Examples:
   Create tcont 1, bind DBA UP-1G:
   OLT(config-line-profile-HGU)#tcont 1 dba-profile-name UP-1G
                                             55
                               GPON OLT CLI User Manual V2.1
    Delete tcont 1
    OLT(config-line-profile-HGU)#no tcont 1
Command:
   1) gem add {GEMINDEX} eth tcont {TCON_ID}
   2) gem delete { GEMINDEX }
View:
   Line Profile node view
Parameters:
    GEMINDEX:gemport index ;
    TCON_ID: tcont ID.
Descriptions:
   Create a gemport and bind tcont; You can create 8 gemports;
   Note: If the gemport has been configured for mapping, it cannot be deleted. You can
   delete the gemport after delete the mapping configuration.
Examples:
   Create a gemport with index 1 and bind to tcont 1:
   OLT(config-line-profile-HGU)# gem add 1 eth tcont 1
    Delete gemport 1:
    OLT(config-line-profile-HGU)#gem delete 1
Command:
   1) gem mapping {GEMINDEX } {MAPPINGINDEX} vlan { VID | transparent}
   2) gem mapping {GEMINDEX } {MAPPINGINDEX} priority { PRI | all}
   3) gem mapping {GEMINDEX } {MAPPINGINDEX} vlan { VID | transparent }
       priority { PRI | all}
   4) no gem mapping {GEMINDEX } {MAPPINGINDEX}
View:
   Line Profile node view
Parameters:
    GEMINDEX:gemport index
    MAPPINGINDEX:gemport mapping index gemport mapping index;
                           gemport mapping index gemport mapping 索引;
    VID: vlan ID, which means that the gemport allows the vlan to pass;
    PRI: Priority, in the range of 0 to 7, indicating that the gemport allows priority
       message to pass. transparent:
    Vlan transparent, means that the gemport allows all vlans to pass;
    all: Mean the gemport allows all priority packet to pass.
                                              56
                                 GPON OLT CLI User Manual V2.1
Descriptions:
   Configure gemport mapping. Each gemport can be configured with 8 mappings.
   The above 3 commands are associated with mapping mode
   In vlan mapping mode, only the (1) command can be used;
   In priority mapping mode, only the (2) command can be used;
   In vlan-priority mapping mode, only the (3) command can be used;
Examples:
   In vlan mapping mode, configure a mapping index 0 mapping for gem index 1, allow
   all vlans to pass:
   OLT(config-line-profile-HGU)# gem mapping 1 0 vlan transparent
    In the priority mapping mode, configure a mapping index 0 mapping for gem index 1,
    allow all priorities to pass:
    OLT(config-line-profile-HGU)# gem mapping 1 0 priority all
    In the vlan-priority mapping mode, configure a mapping index 0 mapping for gem
    index 1, allow all vlans and all priorities to pass:
     OLT(config-line-profile-HGU)# gem mapping 1 0 vlan transparent priority all
Command:
   commit
View:
   Line Profile node view
Parameters:
   None
Descriptions:
   Submit, save the current configuration.
   Only after the commit, the line Profile will take effect .
Examples:
   Save the current configuration:
   OLT(config-line-profile-HGU)# commit
                                                57
                                GPON OLT CLI User Manual V2.1
Command:
   show current-config
View:
   Line Profile node view
Parameters:
   None
Descriptions:
   View the current configuration (including the modified);
   Note: If the configuration is modified, you need to submit the commit, the currently
   modified configuration will be saved.
Examples:
   View current configuration
   OLT(config-line-profile-HGU)#show current-config
   --------------------------------------------------------
   mapping-mode vlan
   tcont 1 dba-profile-id 11
   gem add 1 eth tcont 1
   gem mapping 1 0 vlan transparent
   --------------------------------------------------------
Command:
   show onu-line-profile {all | profile-name PROFILE_NAME| profile-id PROFILE_ID}
View:
   Config view
Parameters:
    all: View all line profile information, including: Profile ID, Profile name, and
       number of onu bindings;
    PROFILE_NAME: View the configuration information of a single line profile
       by name;
    PROFILE_ID:View configuration information for a single line Profile based on
       the ID.
Descriptions:
   View line Profile configuration information.
Examples:
   View all created route templates:
   OLT(config)# show onu-line-profile all
                                              58
GPON OLT CLI User Manual V2.1
             59
                                GPON OLT CLI User Manual V2.1
Command:
   onu-service-profile {profile-name PROFILE_NAME | profile-id PROFILE_ID}
View:
   Config view
Parameters:
    PROFILE_NAME: Business Profile name, up to 32 characters.
    PROFILE_ID:           Business Profile ID, or index.
Descriptions:
   After the command is executed, it will enter the corresponding service Profile node.
   The node name is config-service-profile-plus NAME or ID.
   If the Profile does not exist before, you need to use the commit submit command to
   create the Profile and save the current configuration.
   If you do not execute the commit command, you can exit directly, the Profile will not
   be created, and the configuration will not be saved.
   If the Profile exists before, you need to use the commit submit command to save the
   current configuration. If you do not execute the commit command, you can exit
   directly, and the currently modified configuration will not be saved.
   Note: If the service Profile is bound by the ONU, the Profile node cannot be entered
   and the Profile configuration cannot be modified. Only after unbinding, can the
   Profile be entered and the Profile configuration be modified.
Examples:
   Create a service Profile named HGU:
   OLT(config)# onu-service-profile profile-name HGU
   OLT(config-service-profile-HGU)#commit
   OLT(config-service-profile-HGU)#exit
Command:
                                              60
                               GPON OLT CLI User Manual V2.1
Command:
   commit
View:
   Business Profile node view
Parameters:
   None
Descriptions:
   Submit, save current configuration
   Only commit, service Profile can take effect
Examples:
   Save current configuration
   OLT(config-service-profile-HGU)# commit
Command:
   show current-config
View:
   Business Profile node view
Parameters:
   None
Descriptions:
   View the current configuration (including the modified);
                                             61
                                GPON OLT CLI User Manual V2.1
   Note: If the configuration is modified, you need to submit the commit, the currently
   modified configuration will be saved.
Examples:
   View current configuration
   OLT(config-service-profile-HGU)#show current-config
   --------------------------------------------------------
   port-num eth 0
   port-num pots 0
   port-num veip 0
   ---------------------------------------------------------
Command:
   show onu-service-profile {all |profile-name PROFILE_NAME|profile-id PROFILE_ID}
View:
   Config view
Parameters:
    All:View all service Profile information, including: Profile ID, Profile name, and
       number of onu bindings;
    PROFILE_NAME:View configuration information of a single service Profile
       according to the name;
    PROFILE_ID:View configuration information of a single service Profile
       according to ID
Descriptions:
   View configuration information of service Profile
Examples:
   View all created service templates:
   OLT(config)# show onu-service-profile all
Command:
   port-num {eth | pots| veip} {NUM | adaptive}
View:
                                              62
                               GPON OLT CLI User Manual V2.1
Command:
   1) port eth {PORT_ID} vlan mode {transparent | tag | translation | trunk}
   2) no port eth {PORT_ID} vlan mode
View:
   Business Profile node view
Parameters:
    PORT_ID:Ethernet port ID, ranging from 1 to 24;
    transparent: transparent mode;
    tag:tag mode;
    translation:translation mode
    trunk:trunk mode
Descriptions:
   Configure the vlan mode of an Ethernet interface.
   Currently supports 4 modes: transparent, tag, translation, trunk mode.
Examples:
   Configure eth 1 as the transparent mode:
   OLT(config-service-profile-HGU)#port eth 1 vlan mode transparent
   Delete the vlan mode of eth 1:
   OLT(config-service-profile-HGU)#no port eth 1 vlan mode
Command:
  1) port eth { PORT_ID } tag vlan {VID} priority {PRI}
  2) no port eth { PORT_ID } tag vlan
                                            63
                               GPON OLT CLI User Manual V2.1
View:
   Business Profile node view
Parameters:
    PORT_ID:Ethernet port ID;
    VID:vlan ID;
    PRI:Vlan priority;
Descriptions:
   Configure the default vlan of the eth interface. The uplink packet will be marked with
   that vlan. The packet carrying the vlan will be stripped and other packet will be
   discarded.
   [Note]: This command can be configured only when the vlan mode of the eth port is
   tag mode.
Examples:
   Configure the default vlan of eth 1 as 100, the priority as 0:
   OLT(config-service-profile-HGU)#port eth 1 tag vlan 100 priority 0
Command:
   1) port eth { PORT_ID } translation default vlan {VID} {PRI}
   2) port eth { PORT_ID } translation {INDEX} {CVID} [CPRI] to {SVID} [SPRI]
   3) no port eth { PORT_ID } translation default vlan
   4) no port eth { PORT_ID } translation {INDEX}
View:
   Business Profile node view
Parameters:
    PORT_ID:Enternet port ID
    VID:default vlan ID;
    PRI:default vlan priority
    INDEX:Conversion entry index, maximum can support to 8 conversion entries;
    CVID:User side vlan ID;
    CPRI:User side vlan priority, optional ;
    SVID:Network side vlan ID;
    SPRI:Network side vlan priority, optional;
Descriptions:
   Configure the default vlan of the eth interface. The uplink packet will be marked with
   the vlan. The packet carrying the vlan will be stripped and other packet will be
   discarded.
   Configure the conversion entry of the eth interface, and change the direction: the
   packet carrying the CVID [CPRI] on the uplink is converted to carry the SVID [SPRI];
   the packet carrying the SVID [SPRI] on the downlink is converted to carry the CVID
   [CPRI];
                                              64
                               GPON OLT CLI User Manual V2.1
   [Note]: This command can be configured only when the vlan mode of the eth port is
   in the translation mode.
Examples:
   Configure the default vlan of eth 1 as 100, the priority as 0:
    OLT(config-service-profile-HGU)#port eth 1 translation default vlan 100 0
Command:
   1) port eth { PORT_ID } trunk default vlan {VID} {PRI}
   2) port eth { PORT_ID } trunk vlan {VID} [PRI]
   3) no port eth { PORT_ID } trunk default vlan
   4) no port eth { PORT_ID } trunk vlan {VID} [PRI]
View:
   Business Profile node view
Parameters:
    PORT_ID:Enternet port ID;
    VID:vlan ID;
    PRI:vlan priority;
    trunk vlan VID:Indicate the transparent vlan as the packet of VID.
    trunk vlan VID PRI:Indicate the transparent vlan is VID, priority is packet of
       PRI.
Descriptions:
   Configure the default vlan of the eth interface. The uplink packet will be marked with
   the vlan. The packet carrying the vlan will be stripped and other packets will be
   discarded.
   Configure the trunk vlan table of the eth interface,maximum can support up to eight
   configurations.
   [Note]: This command can be configured only when the vlan mode of the eth port is
   trunk mode.
Examples:
   Configure the default vlan of eth 1 as 100 , priority as 0:
   OLT(config-service-profile-HGU)# port eth 1 trunk default vlan 100 0
                                              65
                                GPON OLT CLI User Manual V2.1
Command:
   1) multicast vlan add vlanlist {VID}
   2) multicast vlan delete vlanlist {VID}
   3) multicast vlan delete all
View:
   Business Profile node view
Parameters:
    VID:Multicast vlan, format: VID or VID-VID or VID,
Descriptions:
   Configure multicast vlan, indicate vlan carried in a downlink multicast stream. Up to
   configured eight multicast vlans.
   The default does not care about the downlink multicast vlan.
Examples:
   Configuration adjunction allows to pass which the multicast vlan to be 100:
   OLT(config-service-profile-HGU)#multicast vlan add vlanlist 100
    Clear all multicast vlans and restore them to the default do not care about multicast
    vlan:
    OLT(config-service-profile-HGU)#multicast vlan delete all
Command:
   igmp {eth { PORT_ID } | veip 1} fast-leave {enable | disable}
View:
   Business Profile node view
Parameters:
    PORT_ID:Ethernet port port id;
    enable:Turn on the fast leave function;
                                              66
                                 GPON OLT CLI User Manual V2.1
Command:
   1) igmp {eth { PORT_ID }|veip 1} igmp-forward add VID PRI
   2) igmp {eth { PORT_ID }|veip 1} igmp-forward translationVID [PRI]
   3) igmp {eth { PORT_ID }|veip 1} igmp-forward transparent
   4) no igmp {eth { PORT_ID }|veip 1} igmp-forward
View:
   Business Profile node view
Parameters:
    PORT_ID: Ethernet port ID;
    VID PRI:Putting the uplink igmp packet with the VID and priority PRI;
    translation VID:Replace the vlan ID of the uplink igmp packet with the VID.
    translation VID PRI: Replace the vlan ID of the uplink igmp packet with the VID
       and the priority with the PRI.
    transparent:Refers to transparent of igmp packets.
Descriptions:
   Configure the uplink igmp packet forwarding function of eth or veip. The default is to
   transparent uplink igmp packets.
Examples:
    Configure eth 1 to match the uplink igmp packet with vlan 100, priority 7:
   OLT(config-service-profile-HGU)#igmp eth 1 igmp-forward add 100 7
    Delete the uplink igmp packet function of eth 1 and restore it to the default:
    OLT(config-service-profile-HGU)#no igmp eth 1 igmp-forward
                                               67
                                GPON OLT CLI User Manual V2.1
       v3:igmp version 3
       mld_v1:mld version 1
       mld_v2:mld version 2
Descriptions:
   Configure the igmp version of eth or veip; the default is igmp v2.
Examples:
   Configure the igmp version of eth 1 as igmp v3:
   OLT(config-service-profile-HGU)# igmp eth 1 igmp-version v3
Command:
   igmp {eth { PORT_ID }|veip 1} max-bandwidth {BW_VALUE| no-limit}
View:
   Business Profile node view
Parameters:
    PORT_ID:Enternet port id
    BW_VALUE:Maximum multicast bandwidth limit, in kbps.
    no-limit:No limited.
Descriptions:
   Configure the maximum multicast bandwidth of eth or veip; the default is unlimited.
Examples:
   Configure the maximum multicast bandwidth of eth 1 to be 1 Mbps:
    OLT(config-service-profile-HGU)# igmp eth 1 max-bandwidth 1024
Command:
   igmp {eth { PORT_ID }|veip 1} max-groups {GROUP_NUM| no-limit}
View:
   Business Profile node view
Parameters:
    PORT_ID:Enternet port id
    GROUP_NUM:Maximum number of multicast groups;
    no-limit:No limited .
Descriptions:
   Configure the maximum number of multicast groups for eth or veip; the default is
   unlimited.
Examples:
   Set the maximum number of multicasts for eth 1 to eight:
    OLT(config-service-profile-HGU)# igmp eth 1 max-groups 8
                                              68
                                GPON OLT CLI User Manual V2.1
Command:
   1) igmp {eth { PORT_ID }|veip 1} multicast-forward add VID PRI
   2) igmp {eth { PORT_ID }|veip 1} multicast-forward translationVID [PRI]
   3) igmp {eth { PORT_ID }|veip 1} multicast-forward transparent
   4) igmp {eth { PORT_ID }|veip 1} multicast-forward vlan-strip
   5) no igmp {eth { PORT_ID }|veip 1} multicast-forward
View:
   Business Profile node view
Parameters:
    PORT_ID:Ethernet port id
    add VID PRI:Mark a VID and a priority PRI to the downlink multicast packet.
    translation VID:Replace the vlan ID of the downlink multicast packet with the
       VID.
    translation VID PRI:Replace the vlan ID of the downlink multicast packet with
       the VID, the priority with the
    PRI. transparent:Refers to transparent of downlink multicast packets;
    vlan-strip:Stripping the multicast vlan of downlink multicast packets
Descriptions:
   Configure the forwarding function of downlink multicast packets of eth or veip. The
   default is to transparently transmit downlink multicast packets.
Examples:
   Configure eth 1 performs vlan stripping on downlink multicast packets:
   OLT(config-service-profile-HGU)# igmp eth 1 multicast-forward vlan-strip
    Delete the downlink multicast forwarding function of eth 1 and restore it to the
    default:
Command:
   igmp {eth { PORT_ID }|veip 1} work-mode {snooping|proxy|spr}
View:
   Business Profile node view
Parameters:
    PORT_ID:Ethernet port port id
    snooping:Configure igmp to work in snooping mode.
    proxy:Configure igmp to work in proxy mode.
    spr:Configure igmp to work in snooping with proxy reporting mode
Descriptions:
   Configure the igmp working mode of eth or veip;
                                              69
                              GPON OLT CLI User Manual V2.1
Command:
   igmp {eth { PORT_ID }|veip 1} non-match-group {forward|discard}
View:
   Business Profile node view
Parameters:
    PORT_ID:Ethernet port port id;
    forward:Forwarding an igmp request message whose uplink is not in the
         dynamic control list;
    discard:Discarding the igmp request packet whose uplink is not in the dynamic
         control list .
Descriptions:
   Configure the igmp request packet processing behavior of eth or veip whose uplink
   is not in the dynamic control list.The default is forward.
Examples:
   Configure eth 1 to discard igmp request packets that are not in the dynamic control
   list.
    OLT(config-service-profile-HGU)# igmp eth 1 non-match-group discard
                                            70
                              GPON OLT CLI User Manual V2.1
Command:
  1) service-port {INDEX} gpon {SLOT_ID/PON_ID} onu {ONU_ID} gemport
     {GEM_ID} user-vlan {CVLAN_ID} vlan {VLAN_ID} svlan {SVLAN_ID}
  2) service-port {INDEX} gpon {SLOT_ID/PON_ID} onu {ONU_ID} gemport
     {GEM_ID} user-vlan {CVLAN_ID} vlan {VLAN_ID}
  3) service-port {INDEX} gpon {SLOT_ID/PON_ID} onu {ONU_ID} gemport
     {GEM_ID} user-vlan untag vlan {VLAN_ID}
  4) service-port {INDEX} gpon {SLOT_ID/PON_ID} onu {ONU_ID} gemport
     {GEM_ID} transparent
View:
   Config view
Descriptions:
   None
Parameters:
    INDEX:Service port index number in the range {0-32767}.
    SLOT_ID/PON_ID:Slot number / PON port number.
    ONU_ID:ONU index number.
    GEM_ID:GEM index number.
    CVLAN_ID,VLAN_ID, SVLAN_ID:The VLAN value range is {1-4095}.
Examples:
   Add a service port for ONU 1 under PON 1
   OLT(config)# service-port 0 gpon 0/1 onu 1 gemport 1 user-vlan 1 vlan 1 svlan 1
Command:
   service-port {INDEX} ds-traffic min {MIN_BANDWIDTH} max { MAX_BANDWIDTH }
View:
   Config view
Descriptions:
   set down stream bandwidth of the service-port, this can achieve the down stream
   bandwidth of ONU.
Parameters:
    INDEX:Service port index number, in the range {0-32767}.
                                            71
                              GPON OLT CLI User Manual V2.1
Command:
   no service-port {INDEX}
View:
   Config view
Descriptions:
   None
Parameters:
    INDEX:Service port index number, in the range {0-32767}.
Examples:
   Delete service port 0
   OLT(config)# no service-port 0
Command:
   no service-port all
View:
   Config view
Descriptions:
   None
Parameters:
   None
Examples:
   Delete all service port
   OLT(config)# no service-port all
Command:
  show service-port all
                                           72
                                GPON OLT CLI User Manual V2.1
View:
   Config view
Descriptions:
   None
Parameters:
   None
Examples:
   Display all service ports
   OLT(config)# show service-port all
   -------------------------------------------
   ID GPON Onu GEM User-vlan Cvlan Svlan
          0 0/01 1 1 1000                  - 1000
                                              73
                             GPON OLT CLI User Manual V2.1
Command:
   igmp {enable|disable}
View:
   Btv view
Parameters:
    enable:enable multicast function
    disable:disable multicast function
Descriptions:
   Enable/disable multicast function
Examples:
    OLT(config-btv)# igmp enable
Command:
   show igmp configuration
View:
   Btv view
Parameters:
   None
Descriptions:
   Display current multicast function status
Examples:
   OLT(config-btv)# show igmp configuration
   IGMP status: Enable
Command:
   igmp multicast-vlan {MVLAN_ID}
View:
                                           74
                             GPON OLT CLI User Manual V2.1
   Btv view
Parameters:
   MVLAN_ID:Multicast vlan id in the range 2-4094
Descriptions:
   Create multicast vlan
Examples:
   OLT(config-btv)# igmp multicast-vlan 256
   OLT(config-mvlan-256)#
Command:
   igmp mode {snooping | proxy | disable}
View:
   config-mvlan view
Parameters:
    snooping:snooping mode
    proxy:proxy mode
    disable:disable mode
Descriptions:
   Configure igmp mode to snooping mode
Examples:
    OLT(config-mvlan-100)# igmp mode snooping
Command:
   igmp port {ge | pon | xge} {PORT_ID}
View:
   config-mvlan view
Parameters:
    PORT_ID:Port port number
Descriptions:
   Configure igmp uplink port
Examples:
    OLT(config-mvlan-256)# igmp port ge 0/1
Command:
                                          75
                               GPON OLT CLI User Manual V2.1
                                             76
                                        GPON OLT CLI User Manual V2.1
Command:
   igmp channel {CHANNEL_ID} group {START_IP} to {END_IP} name {NAME}
View:
   config-mvlan view
Parameters:
    CHANNEL_ID:Channel id in the range 1-4094
    START_IP:Starting IP
    END_IP:Ending IP
    NAME:Multicast channel name
Descriptions:
   Configure the channel id of igmp and the start address, end address, and channel name.
Examples:
    OLT(config-mvlan-256)# igmp channel 1 group 224.15.15.15 to 224.19.19.19 name tv
Command:
   1) no igmp channel all
   2) no igmp channel id {CHANNEL_ID}
   3) no igmp channel name {CHANNEL_NAME}
View:
   config-mvlan view
Parameters:
    CHANNEL_ID:Channel id number
    CHANNEL_NAME:Channel name
Descriptions:
   Delete the channel by channel id/name, or delete all, mean delete all channels under the current
   multicast vlan
Examples:
   OLT(config-mvlan-100)# no igmp channel id 77
                                                     77
                                              GPON OLT CLI User Manual V2.1
Command:
   show igmp channel
View:
   btv view,config-mvlan view
Parameters:
   None
Descriptions:
   View all or one multicast vlan multicast channel
Examples:
   View all igmp multicast channels
   OLT(config-btv)# show igmp channel
   Vlan Channel Start IP                End IP            Channel Name
    ----- -------- --------------- --------------- ------------------
    100 1           224.15.15.15 224.16.16.16 tv1
    200 3           224.19.19.19 224.20.20.20 tv2
   View the igmp multicast channel belonging to mvlan 200
   OLT(config-btv)#igmp multicast-vlan 200
   OLT(config-mvlan-200)# show igmp channel
    Vlan Channel Start IP                 End IP           Channel Name
    ----- -------- --------------- --------------- ------------------
   200 3          224.19.19.19 224.20.20.20 tv2
Command:
   igmp proxy host-ip {IP_ADDR}
View:
   config-mvlan view
Parameters:
    IP_ADDR: IP address
Descriptions:
   Configure host-ip of igmp proxy
Examples:
    OLT(config-mvlan-100)# igmp proxy host-ip 10.11.12.13
                                                              78
                                       GPON OLT CLI User Manual V2.1
Command:
   igmp proxy router-ip {IP_ADDR}
View:
   config-mvlan view
Parameters:
    IP_ADDR:IP address
Descriptions:
   Configure router-ip
Examples:
    OLT(config-mvlan-100)# igmp proxy router-ip 10.11.12.13
Command:
   igmp proxy query interval {INTERVAL}
View:
   config-mvlan view
Parameters:
   INTERVAL: Interval of sending queries at regular intervals, ranging from 1-65535
Descriptions:
   Configure the query interval under the proxy.
Examples:
    OLT(config-mvlan-100)# igmp proxy query interval 200
Command:
   igmp proxy query response {RESPONSE}
View:
   config-mvlan view
Parameters:
   RESPONSE: Maximum response time of the packet, range 1-25
Descriptions:
   Configure the maximum response time of packets on the proxy.
Examples:
    OLT(config-mvlan-100)# igmp proxy query response 20
                                                    79
                                     GPON OLT CLI User Manual V2.1
Command:
   igmp proxy robust-variant {ROBUST}
View:
   config-mvlan view
Parameters:
   ROBUST: Robust variable value of the packet querier
Descriptions:
   Configure robust-variant in proxy mode
Examples:
    OLT(config-mvlan-100)# igmp proxy robust-variant 3
Command:
   1) no igmp proxy query {response | interval}
   2) no igmp proxy robust-variant
View:
   config-mvlan view
Parameters:
   None
Descriptions:
   interval:Restore default query interval
   response:Restore the default maximum response time of the packet
   robust-variant:Robust variable value of the packet querier
Examples:
    OLT(config-mvlan-100)# no igmp proxy query interval
    OLT(config-mvlan-100)# no igmp proxy query response
    OLT(config-mvlan-100)# no igmp proxy robust-variant
Command:
  mld {enable|disable}
                                                  80
                                       GPON OLT CLI User Manual V2.1
View:
   Btv view
Parameters:
    enable:Enable multicast function
    disable:Turn off multicasting
Descriptions:
   Enable/disable multicast
Examples:
   OLT(config-btv)# mld enable
Command:
   show mld configuration
View:
   Btv view
Parameters:
   None
Descriptions:
   Display current multicast function status
Examples:
   OLT(config-btv)# show mld configuration
   IGMP status: Enable
Command:
   mld multicast-vlan {MVLAN_ID}
View:
   Btv view
Parameters:
   MVLAN_ID:Multicast vlan id in the range 2-4094
Descriptions:
   Create multicast vlan
Examples:
   OLT(config-btv)# mld multicast-vlan 256
   OLT(config-mld-mvlan-256)#
Command:
                                                    81
                                        GPON OLT CLI User Manual V2.1
Command:
   mld port {ge | pon | xge} {PORT_ID}
View:
   config-mld-mvlan view
Parameters:
    PORT_ID:port port number
Descriptions:
   Configure mld upstream port
Examples:
   OLT(config-mld-mvlan-256)# mld port ge 0/1
Command:
   show mld configuration
View:
   config-mld-mvlan view
Parameters:
   None
Descriptions:
   Display the configuration under the current multicast vlan
Examples:
   OLT(config-mld-mvlan-100)# show mld configuration
    Mode: MLD Proxy
    Host IP address: 2002::01::02
    Protocol version: mldv2
                                                      82
                                        GPON OLT CLI User Manual V2.1
     Robust variant: 2
     Query interval: 60
     Query reponse interval: 10(s)
     Last member query interval: 1(s)
Command:
   mld channel {CHANNEL_ID} group {START_IP} to {END_IP} name {NAME}
View:
   config-mld-mvlan view
Parameters:
    CHANNEL_ID:Channel id,in the range 1-4094
    START_IP:starting IP
    END_IP:ending IP
    NAME:Multicast channel name
Descriptions:
   Configure the channel id of igmp and the start address, end address, and channel name.
Examples:
   OLT(config-mvlan-256)# igmp channel 1 group ff02::16 to ff02::20 name ch1
Command:
   4) no mld channel all
   5) no mld channel id {CHANNEL_ID}
   6) no mld channel name {CHANNEL_NAME}
View:
   config- mld-mvlan view
Parameters:
    CHANNEL_ID:channel id number
    CHANNEL_NAME:channel name
Descriptions:
   Delete the channel by channel id/name, or delete all, mean delete all channels under the current
   multicast vlan
Examples:
   OLT(config- mld-mvlan-100)# no mld channel id 77
                                                     83
                                                    GPON OLT CLI User Manual V2.1
Command:
   show mld channel
View:
   Btv view, config-mld-mvlan view
Parameters:
   None
Descriptions:
   View all or one multicast vlan multicast channel
Examples:
   View MLD Multicast Channel of mvlan 100
   OLT (config-mld-mvlan-100)# show mld channel
    ID Channel Name                     Vlan Start IP             End IP
    ---------------------------------------------------------------------------------------------------------
    1 ch1                               100 ff02::16              ff02::20
Command:
   mld proxy host-ip {IP_ADDR}
View:
   config-mld-mvlan view
Parameters:
    IP_ADDR: IP address
Descriptions:
   Configure the host-ip of the mld proxy
Examples:
   OLT(config-mld-mvlan-100)# mld proxy host-ip 2002:01::02
                                                                      84
                                      GPON OLT CLI User Manual V2.1
Command:
   mld proxy query interval {INTERVAL}
View:
   config-mld-mvlan view
Parameters:
    INTERVAL: Time interval of sending queries at regular intervals,range 1-65535
Descriptions:
   Configure the query interval under the proxy.
Examples:
   OLT(config-mld-mvlan-100)# mld proxy query interval 200
Command:
   mld proxy query response {RESPONSE}
View:
   config- mld-mvlan view
Parameters:
    RESPONSE: Maximum response time of the packet, range 1-25
Descriptions:
   Configure the maximum response time of packets on the proxy.
Examples:
   OLT(config- mld-mvlan-100)# mld proxy query response 20
Command:
   mld proxy robust-variant {ROBUST}
View:
   config- mld-mvlan view
Parameters:
   ROBUST: The robust variable value of the packet finder
Descriptions:
   Configure robust-variant in proxy mode
Examples:
   OLT(config- mld-mvlan-100)# mld proxy robust-variant 3
                                                   85
                                        GPON OLT CLI User Manual V2.1
Command:
   1) no mld proxy query {response | interval}
   2) no mld proxy robust-variant
View:
   config- mld-mvlan view
Parameters:
   None
Descriptions:
   interval:Restore default query interval
   response:Restore the default maximum response time of the packet
   robust-variant:Robust variable value of the packet finder
Examples:
    OLT(config-mld-mvlan-100)# no mld proxy query interval
    OLT(config-mld-mvlan-100)# no mld proxy query response
    OLT(config-mld-mvlan-100)# no mld proxy robust-variant
Command:
   qos sched {sp | wrr | sp-wrr}
View:
   Ge and xge view
Parameters:
    sp:Strict priority scheduling.
    wrr:Weighted scheduling, the scheduling weight of each queue is determined by the following
       parameters.
    sp-wrr:sp+wrr.
Descriptions:
   qos sched configure the queue scheduling mode of the current port.
Examples:
   Display the QoS policy of the current port
    OLT(config-if-ge-1/1)# show qos sched
    Current port schedule is : weighted round robin
    Current port weight : 0 0 0 0
   Configure the queue scheduling mode of the current port as sp, that is strict scheduling.
   OLT(config-if-ge-1/1)# qos sched sp
                                                      86
                                         GPON OLT CLI User Manual V2.1
Command:
   qos weight {QUE0-WEIGHT} {QUE1-WEIGHT} {QUE2-WEIGHT} {QUE3-WEIGHT} {QUE4-WEIGHT}
   {QUE5-WEIGHT} {QUE6-WEIGHT} {QUE7-WEIGHT}
View:
   Ge and xge view
Parameters:
    QUE0-WEIGHT~QUE7-WEIGHT:The weight of queue 0-7, in the range of 0-15.
Descriptions:
   Qos weight Configures the weight of the current port.
          Examples:
   Configure the queue scheduling mode of the current port as wrr.
   OLT(config-if-ge-1/1)# qos sched wrr
Command:
   show qos sched
View:
   Ge and xge view
Parameters:
   None
Descriptions:
   Displays the QoS policy information of the current port, including the scheduling mode of the queue
   and the weight of the queue during weighted scheduling.
Examples:
   Display QoS policy information of the current port
   OLT(config-if-ge-1/1)# show qos sched
    Current port schedule is : weighted round robin
                                                         87
                                GPON OLT CLI User Manual V2.1
                                             88
                               GPON OLT CLI User Manual V2.1
Command:
   qos map-queue
View:
   Ge and xge view
Parameters:
   None
Descriptions:
   Configure the current port queue priority mapping relationship
Examples:
   Configure the priority mapping relationship of the queues on the uplink interface of
   GE 1/1.
   OLT(config-if-ge-1/1)# qos map-queue 1 0 2 3
Command:
   show qos map-queue
View:
   Ge and xge view
Parameters:
   None
Descriptions:
   Displays the QoS queue information of the current port, including the mapping
   relationship between 802.1p priorities and queues.
Examples:
   Display QoS queue information of the current port
   OLT(config-if-ge-1/1)# show qos map-queue
    Current port qos mapping parameter is :
    priority{---}COSQ
     0          1
     1          0
     2          2
     3          3
                                             89
                               GPON OLT CLI User Manual V2.1
Command:
   1) acl {ACLID} [END_ACLID]
   2) no acl { ACLID } [END_ACLID]
   3) no acl all
View:
   Config view
Parameters:
    ACLID:Indicates the created listid, which ranges from 2000 to 5999.
    END_ACLID:When there are two parameters, create the START_LISTID ~
         END_LISTID ACL. The value range is 2001~5999.
Descriptions:
   When acl with only one parameter, if the ACL listid does not exist, create an ACL
   listid and ente;
   If the ACL already exists, enter the existing ACL listid.
   When there are two parameters, create END_LISTID ACLs in batches. If listid is
   same with END_LISTID (l When START_LISTID and END_LISTID are the same,
   the value ranges from 2001 to 5999, that is, 1 cannot be taken at the same time.),
   and the processing method is the same as taking one parameter.
   No acl when taking a parameter,delete the ACL of that listid
   Delete END_LISTID ACLs in bulk when taking two parameters. If listidSame as
   END_LISTID (when listid and END_LISTID are the same, the value ranges from
   2001 to 5999, that is, 1 cannot be taken at the same time), and the processing
   method is the same as one parameter.
   No acl all is used to delete all ACLs at once.
Examples:
   Create ACL list 2:
    OLT(config)# acl 2
    Created 1 ACL(s) success
    OLT(config-acl-basic-2)#
                                             90
                                     GPON OLT CLI User Manual V2.1
Command:
   show acl {ACLID | all}
View:
   config view
Parameters:
    LISTID:Displays information about the ACL listid, in the range of 2000 to 5999.
    all:Displays information about all ACLs, including the list id, the number of
        rules belonging to the ACL list, whether it has been applied to the hardware, and
        if it is applied to the hardware, lists the list of ports applied to it, all rules
        belonging to the ACL list, including rule, the id, rule matching condition, rule
        matching processing action, application time-range, etc.
Descriptions:
   Displays information about ACL rules, including ACL list information, rule information
   belonging to the list, and status of the list applied to the hardware.
   The show acl command without parameters displays the current ACL list
   information.
Examples:
   Display all related information of acl list
    OLT(config)# show acl all
     ACL: 7
     Installed on: no port install.
          Rule 1 action: permit
     ACL: 77
     Installed on: no port install
Command:
   show list
View:
   Config view
Parameters:
   None
Descriptions:
                                                  91
                                 GPON OLT CLI User Manual V2.1
   Display this ACL listid related information. Display the ACL related information,
   including the list id, the number of rules belonging to the ACL list, whether it has
   been applied to the hardware, and if it is applied to the hardware, list the list which
   applied to the port, belong to all the rules of the ACL list, including the id of the rule,
   the matching condition of the rule, the matching processing action of the rule, and
   the time-range of the application.
Examples:
   Dispaly this ACL related information
    OLT(config-acl-basic-7)# show list
    ACL: 7
     Installed on: no port install.
       Rule 1 action: permit
Command:
   1) rule {RULEID} [END_RULEID]
   2) no rule all
   3) no rule {RULEID} [END_RULEID]
View:
   Acl view
Parameters:
    RULEID:Indicates the created ruleid, which ranges from {1-16}
    END_RULEID:When taking two parameters,create the ruler ~great-ruleid ACL
        rule in batches,the value ranges from 2 to 16.
Descriptions:
   Rule When taking only one parameter, add a rule to the current ACL list
   rule
   When taking two parameters, create the ruleid~great-ruleid ACL rule in batches.
   No rule is used to delete the rule.
Examples:
   Create 3 rules to the current acl list, numbered from 1 to 3:
   OLT(config-acl-base-200)#rule 1 3
     Created 1 rule(s) success.
     Created 2 rule(s) success.
     Created 3 rule(s) success.
                                                92
                               GPON OLT CLI User Manual V2.1
OLT(config-acl-basic-200)#
Command:
   rule ruleid action {permit | deny}
View:
   Acl view including all type of acl
Parameters:
    ruleid:Specifies the number of the rule, in the range of {1-16}.
    permit:Set the match action of the rule as permit, that is, allow matching
        packets to pass. deny:Set the matching action of the rule as deny, that is,
        the matching data packet is forbidden to pass.
Descriptions:
   Set a rule matching action. ase
Examples:
   Configure the matching processing action of rule 1 as the prohibit packets matching
   the matching criteria to pass.
   OLT(config-acl-basic-1)# rule 1 action deny
14.3.1. Source IP
Command:
   rule {RULEID} match src-ip {IP_ADDR} {WILD_IP_ADDR }
View:
   Standard ACL view, extended ACL view
Parameters:
    RULEID:Specifies the number of the rule, in the range of {1-16}.
    IP_ADDR:Set the rule to match the specific source IP address, denoted as
        A.B.C.D.
    WILD_IP_ADDR:Source IP address wildcard. A total of 32 bits, 1 means that
        need to be match.
    A value of 0 means no match. For example, if the IP address is 192.168.5.21
        and the wildcard is 255.255.255.0, the packets of 192.168.5.0-192.168.5.255
        will match the matching condition.
Descriptions:
   Rule adds rule to match the source IP address.
Examples:
   Add rule 1 to match packets with source IP address 192.168.12.xxx:
   OLT(config-acl-base-2000)# rule 1 match src-ip 192.168.12.21 255.255.255.0
                                            93
                              GPON OLT CLI User Manual V2.1
14.4.1. Destination IP
Command:
   rule {RULEID} match dst-ip { IP_ADDR } { WILD_IP_ADDR }
View:
   Extended ACL view
Parameters:
    RULEID:Specifies the number of the rule, in the range of {1-16}.
    IP_ADDR:Set the rule to match the specific destination ip address, denoted as
        A.B.C.D.
    WILD_IP_ADDR: Destination IP address wildcard. total 32 bits, 1 means
        that need to be match, and 0 means no match. If the IP address is 192.168.5.21
        and the wildcard is 255.255.255.0, the packets of 192.168.5.0-192.168.5.255
        will match the conditions.
Descriptions:
   Rule adds rule to match the destination IP address.
Examples:
   Add rule 1 to match the packets with the destination IP address of 192.168.12.xxx.
   OLT(config-acl-adv-3000)# rule 1 match dst-ip 192.168.12.21 255.255.255.0
Command:
   rule {RULEID} match src-port {L4_PORT}
View:
   Extended ACL view
Parameters:
    ruleid:Specifies the number of the rule, in the range of {1-16}.
   L4_PORT:Limit the minimum value of the matching source protocol port, ranging
   from 0 to 65535.
Descriptions:
   Rule adds rule to match the source protocol port number.
Examples:
   Add rule1 to match packets with source protocol port 1025:
   OLT(config-acl-adv-3000)# rule 1 match src-port 1025
Command:
                                            94
                              GPON OLT CLI User Manual V2.1
14.4.4. IP Protocol
Command:
   rule {RULEID} match ip-protocol {icmp | igmp | tcp | udp | egp}
   rule {RULEID} match ip-protocol {PROTOCOL_ID}
View:
   Extended ACL view
Parameters:
    RULEID:Specifies the number of the rule, in the range of {1-16}.
    icmp:Set the rule to match the icmp packet.
    igmp:Set the rule to match the igmp packet.
    tcp:Set the rule to match tcp packet.
    udp:Set the rule to match the udp packet.
    egp:Set the rule to match the egp packet.
    PROTOCOL_ID:
    IP protocol ID.
Descriptions:
   The rule adds a rule to match the IP packet protocol type.
Examples:
   Add rule 1 to match the packets whose IP packet protocol type is TCP:
   OLT(config-acl-adv-3000)# rule 1 match ip-protocol tcp
Command:
   rule {RULEID} match tos {TOS}
View:
   Extended ACL view
Parameters:
   None
                                           95
                                GPON OLT CLI User Manual V2.1
Descriptions:
   RULEID:Specifies the number of the rule, in the range of {1-16}.
   TOS : Match the ip packet tos priority.
Examples:
   Add rule 1 to match packets with ip packet priority 0:
   OLT(config-acl-link-3000)# rule 1 match tos 0
Command:
   rule {RULEID} match dscp {DSCP}
View:
   Extended ACL view
Parameters:
   None
Descriptions:
   RULEID:Specifies the number of the rule, in the range of {1-16}.
   DSCP :Match the ip packet dscp priority.
Examples:
   Add rule 1 to match packets with ip packet priority 0:
   OLT(config-acl-link-3000)# rule 1 match dscp 0
Command:
   rule {RULEID} match src-mac {MAC_ADDR} {MASK}
View:
   Link layer ACL view
Parameters:
    RULEID:Specify the number of the rule, in the range of {1-16}.
    MAC_ADDR :Set the rule to match the specific source mac address,
        expressed as AA:BB:CC:DD:EE:FF
    MASK:Source MAC address wildcard, total is 48 bits, 1 means that need to be
        matched, and 0 means no match. For example, the source MAC address is
        00:11:22:33:44:55, and the wildcard is 00:ff:ff:00:00: 00, all packets with source
        MAC address XX:11:22:XX:XX:XX will match the matching condition.
Descriptions:
   The rule adds rule to match the source MAC address.
                                              96
                                GPON OLT CLI User Manual V2.1
Examples:
   Add rule1 to match packets with the source MAC address 00:11:22:00:00:00:
   OLT(config-acl-link-4000)# rule 1 match src-mac 00:11:22:33:44:55 ff:ff:ff:00:00:00
Command:
   rule {RULEID} match dst-mac {MAC_ADDR} {MASK}
View:
   Link layer ACL view.
Parameters:
    RULEID:Specifies the number of the rule, in the range of {1-16}.
    MAC_ADDR:Set the rule to match the specific destination MAC address,
        expressed as AA: BB:CC:DD:EE:FF.
    MASK:Destination MAC address wildcard, total is 48 bits, 1 means that need
        to be matched, and 0 means no match. For example, the destination MAC
        address is 00:11:22:33:44:55, and the wildcard is 00:ff:ff:00:00: 00, all packets
        with the destination MAC address of XX:11:22:XX:XX:XX will match the
        matching condition.
Descriptions:
   The rule adds a rule to match the destination MAC address.
Examples:
   Add rule 1 to match the destination MAC address 00:01:02:03:04:05:
   OLT(config-acl-link-4000)# rule 1 match dst-mac 00:11:22:33:44:55 00:00:00:ff:ff:ff
Command:
   rule {RULEID} match eth-type {ETH_TYPE}
View:
   Link layer ACL view.
Parameters:
    RULEID:Specifies the number of the rule, in the range of {1-16}.
    ETH_TYPE: Ether type value. For example:IP-0x0800, ARP-0x0806, RARP-
        0x8035,
    SNMP-0x814C ,IPV6-0x86DD ,PPP-0x880B ,PPPoE_DISC-0x8863,
        PPPoE_SESSION-0x8864
    SNMP-0x814C ,IPV6-0x86DD ,PPP-0x880B ,PPPoE_DISC-0x8863,
        PPPoE_SESSION-0x8864
Descriptions:
   Rule adds rule to match the Ethernet frame type.
Examples:
   Add rule1 to match packets with Ethernet frame type ARP:
                                              97
                              GPON OLT CLI User Manual V2.1
14.5.4. Vlan
Command:
   rule {RULEID} match vlan {VLANID}
View:
   Link layer acl view.
Parameters:
    RULEID:Specifies the number of the rule, in the range of {1-16}.
    VLANID:The value of the matching service provider vlan, in a range of {1-
        4094}.
Descriptions:
   Rule adds rule to match svlan.
Examples:
   Rule adds rule to match svlan.
   OLT(config-acl-link-4000)# rule 1 match vlan 56
14.5.5. Inner-Vlan-Id
Command:
   rule {RULEID} match inner-vlan-id {VLANID}
View:
   Link layer acl view
Parameters:
   None
Descriptions:
   RULEID:Specifies the number of the rule, in the range of {1-16}.
   VLANID:Match the packets of the inner vlan ID.
Examples:
   Add rule 1 to match packets with inner vlan ID 1000:
   OLT(config-acl-link-4000)# rule 1 match inner-vlan-id 1000
14.5.6. Innter-Vlan-Pri
Command:
   rule {RULEID} match inner-vlan-pri {PRI}
View:
   Link layer acl view
Parameters:
   None
                                           98
                              GPON OLT CLI User Manual V2.1
Descriptions:
   RULEID:Specifies the number of the rule, in the range of {1-16}.
   PRI:Match the packets of the inner vlan pri.
Examples:
   Add rule 1 to match packets with inner vlan pri 0:
   OLT(config-acl-link-4000)# rule 1 match inner-vlan-pri 0
14.5.7. Outer-Vlan-Id
Command:
   rule {RULEID} match outer-vlan-id {VLANID}
View:
   Link layer acl view
Parameters:
   None
Descriptions:
   RULEID:Specifies the number of the rule, in the range of {1-16}.
   VLANID:Match the packets of the outer vlan ID.
Examples:
   Add rule 1 to match packets with an outer vlan ID of 1000:
   OLT(config-acl-link-4000)# rule 1 match outter-vlan-id 1000
14.5.8. Outer-Vlan-Pri
Command:
   rule {RULEID} match outer-vlan-pri {PRI}
View:
   Link layer acl view
Parameters:
   None
Descriptions:
   RULEID:Specifies the number of the rule, in the range of {1-16}.
   PRI:Match the packets of the outer vlan pri.
Examples:
   Add rule 1 to match packets with outer vlan pri 0:
   OLT(config-acl-link-4000)# rule 1 match outer-vlan-pri 0
                                           99
                                GPON OLT CLI User Manual V2.1
Command:
   acl-qos {ACLID} cos {COSID}
View:
ge、xge view
    ACLID:Indicates the listid to which the ACL is to be applied.
    COSID:The priority of 802.1p used for replacement, ranging from 0-7.
Descriptions:
   Directly refer to the defined ACL for QoS control. The processing action of the ACL
   rule should be permit.
Examples:
   For the PON1/4 down source MAC address is 78:E3:B5:95:09:95, modify the
   802.1P priority to 6.
   OLT(config)# acl 4000
Command:
   acl-qos { ACLID } dscp {DSCP}
View:
   ge、xge view
Parameters:
    ACLID:Indicates the listid to which apply the ACL
    DSCP:For the packet that matches the acl rule, modify the dscp of the packet,
        in the range from 0-63
Descriptions:
   Acl-qos directly references the defined ACL for QoS control. The processing action
   of the ACL rule should be permit.
Examples:
   Modify the dscp priority of data pack which PON1/4 down source MAC address is
   78:E3:B5:95:09:95 to 6
   OLT(config)# acl 4000
   OLT(config-acl-link-4000)# rule 1 match src-mac 78:E3:B5:95:09:95 ff:ff:ff:ff:ff:ff
   OLT(config-acl-link-4000)# rule 1 action permit
   OLT(config-acl-link-4000)# exit
                                              100
                               GPON OLT CLI User Manual V2.1
Command:
   acl-qos { ACLID } outer-vlan {VLANID}
View:
   ge、xge view
Parameters:
    ACLID:Indicates the listid to which apply the ACL.
    VLANID:Add an outer vlan for packets that match the acl rule.
Descriptions:
   Directly refer to the defined ACL for QoS control. The processing action of the ACL
   rule should be permit.
Examples:
   Apply the acl 4000 rule under the GE1 to filter the data of vlan 1000, and nest the
   outer vlan 2000.
   OLT(config)# acl 4000
   OLT(config-acl-link-4000)# rule 1
   OLT(config-acl-link-4000)# rule 1 action permit
   OLT(config-acl-link-4000)# rule 1 match outter-vlan-id 1000
   OLT(config-if-ge-0/1)# acl-qos 4000 outer-vlan 2000
Command:
   no acl-qos { ACLID }
View:
   ge、xge view
Parameters:
   ACLID:Indicates the ACLID of the ACL applied to the port.
Descriptions:
   Delete an ACL that has been applied to a port
Examples:
   OLT (config-if-ge-0/1)# no acl-qos 5001
Command:
  show acl-qos
                                            101
                                GPON OLT CLI User Manual V2.1
View:
   ge、xge view
Parameters:
   None
Descriptions:
   Displays the acl-qos information applied to the current port.
Examples:
   Display the acl-qos information applied to the current port (ge-1/3):
   OLT(config-if-ge-1/3)# show acl-qos
    Acl 5001 install this port.
      cos: 6.,
                                             102
                                  GPON OLT CLI User Manual V2.1
Command:
   1) packet-filter { ACLID } rulemerge {enable | disable}
   2) no packet-filter { ACLID }
View:
   ge、xge view
Parameters:
    all:All ACL lists applied to the port.
    ACLID:Specifies the ACL list number applied to the port.
Descriptions:
   The packet-filter applies an already defined acl list to the current port.
   packet-filterIf the specified ACL list does not exist or the specified list does not have
   any rules, it will not be applied successfully.No packet-filter removes the acl list
   applied to the current port.
   If the specified ACL list does not exist or the list is not applied to the current port, it
   will not be removed successfully.
Examples:
   Apply (install) acl list 1 to the current port (ge-0/3):
   OLT(config-if-ge-0/3)#packet-filter 1 rulemerge enable
Command:
   show packet-filter
View:
   ge、xge view
Parameters:
   None
Descriptions:
   Ge, xge, pon view: Displays the acl list information applied to the current port.
Examples:
   Display the acl list information applied to the current port (ge-1/3):
   OLT(config-if-ge-0/3)# show packet-filter
    ACL install on current port:
      4000
                                                103
                               GPON OLT CLI User Manual V2.1
Command:
   rstp {enable | disable}
View:
   Config view
Parameters:
    enable:Open the RSTP protocol switch.
    disable:Turn off the RSTP protocol switch.
Descriptions:
   Turn on or off the enable RSTP function (the default is to forbid the RSTP function).
Examples:
   OLT(config)# rstp enable
   OLT(config)# rstp disable
Command:
   1) rstp priority {PRI}
   2) no rstp priority
View:
   Config view
Parameters:
    PRI:Network bridge priority, the value is 0-61440, with 4096 as the smallest
      particle.
Descriptions:
   Configure network bridge priority
   Restore the default configuration of the network bridge priority (32768).
Examples:
   Configure network bridge priority as 4096
   OLT(config)# rstp priority 4096
                                             104
                             GPON OLT CLI User Manual V2.1
Command:
   rstp mode {stp | rstp}
View:
   Config view
Parameters:
    stp:Adopt STP protocol.
    rstp:Adopt RSTP protocol.
Descriptions:
   Configure protocol mode
Examples:
   The configuration uses the RSTP protocol.
   OLT(config)# rstp mode rstp
Command:
   1) rstp holdtime {SECONDS}
   2) no rstp holdtime
View:
   Config view
Parameters:
    SECONDS:The holdtime timer, takes the value 1-10, in seconds.
Descriptions:
   Configure the holdtime timer.
   Restore holdtime to the default configuration (3s).
Examples:
   Set the holdtime timer to 6s.
   OLT(config)# rstp holdtime 6
Command:
   1) rstp timer forward-delay {SECONDS }
   2) no rstp timer forward-delay
View:
   Config view
Parameters:
    SECONDS:Forward-delay timer, in the range of 4-30, in seconds.
Descriptions:
   Configure forward-delay timer
Examples:
   Configure forward-delay timer to 20s
   OLT(config)# rstp timer forward-delay 20
                                          105
                              GPON OLT CLI User Manual V2.1
【说明】
  The value of max-age is associated with hello and forward-delay. The specific
  relationship is as follows:
Command:
   1) rstp timer hello {SECONDS}
   2) no rstp timer hello
View:
   Config view
Parameters:
    SECONDS:The hello timer, takes the value is 1-10, in seconds.
Descriptions:
   Configure hello timer
   Restore the default configuration of the hello timer (2s).
Examples:
   Configure hello timer to 4s
   OLT(config)# rstp timer hello 4
【说明】
   The value of max-age is associated with hello and forward-delay. The specific
   relationship is as follows:
   2×(forward-delay-1) }= max-age }= 2×(hello +1).
Command:
   1) rstp timer max-age {SECONDS}
   2) no rstp timer max-age
View:
   Config view
Parameters:
    SECONDS:max-age timer, the value is 6-40, in seconds.
Descriptions:
   Configure max-age timer
   Restore the default configuration of the max-age timer (20s).
Examples:
   Configure the max-age timer to 30s.
   OLT(config)# rstp timer max-age 30
   【Description】The value of max-age is associated with hello and forward-delay.
   The specific relationship is:2×(forward-delay-1) }= max-age }= 2×(hello +1).
                                           106
                                  GPON OLT CLI User Manual V2.1
Command:
   show rstp bridge-info
View:
   Config view
Parameters:
   None
Descriptions:
           Display network information
Examples:
   Display network information
   OLT(config)# show rstp bridge-info
    Bridge RSTP state          : enabled
    Local Bridge ID            : 4096.02-17-18-d3-f3-ae
    Bridge Priority         : 4096
    Stp/rstp Version           : stp
    Max Age              : 20s
    Local Bridge Max Age          : 20s
    Hello Time              : 2s
    Local Bridge Hello Time          : 2s
    Forward Delay           : 15s
    Local Bridge Forward Delay          : 15s
    Hold Time            : 3s
    Root Bridge ID          : 4096.02-17-18-d3-f3-ae
    Root Port            : [0]
    Root Path Cost             :0
    Topology Change Count            :0
    Time Since Topology Change : 865
Command:
   rstp port {enable | disable}
View:
   Ge view
Parameters:
                                               107
                               GPON OLT CLI User Manual V2.1
Command:
   1) rstp cost {COST}
   2) no rstp cost
View:
   Ge view
Parameters:
    COST:Port cost. The value is:
     1) 0:auto,
     2) 10M:200,000~20,000,000,
     3) 100M:20,000~2,000,000,
     4) 1G:2,000~200,000
Descriptions:
   Configure port cost.
   Restore RSTP cost to the default configuration (auto).
Examples:
   Configure the GE port cost to be 20000.
   OLT(config-ge-0/3)# rstp cost 20000
Command:
   rstp edged-port {enable | disable}
View:
   Ge view
Parameters:
    enable:enable edged-port
    Disable: disable edged-port
Descriptions:
   Configure the edge port.
Examples:
   Configure the GE0/3 port edged-port mode to disable.
   OLT(config-ge-0/3)# rstp edged-port disable
                                            108
                               GPON OLT CLI User Manual V2.1
Command:
   1) rstp point-to-point {auto | force-false | force-true}
   2) no rstp point-to-point
View:
   Ge view
Parameters:
    auto:Decided by spanning tree protocol
    force-false:Disable point to point link
    force-true:Enable point to point link
Descriptions:
   Configure the port point-to-point mode.
   Restore RSTP point-to-point to the default configuration (auto).
Examples:
   Configure the GE0/3 port point-to-point mode to auto.
   OLT(config-ge-0/3)# rstp point-to-point auto
Command:
   rstp port-priority port-priority
View:
   Ge view
Parameters:
    port-priority:Port priority, value 0-240, with 16 as the smallest particle.
Descriptions:
   Configure port priority.
Examples:
   Set the priority of the GE0/3 port to 96.
   OLT(config-ge-0/3)# rstp port-priority 96
Command:
   show rstp interface-info
View:
   Ge view
Parameters:
   None
Descriptions:
   Display the RSTP information of the port.
                                             109
                              GPON OLT CLI User Manual V2.1
Examples:
   Display RSTP information of GE 0/3 ports
   OLT(config-ge-0/3)# show rstp interface-info
    RSTP State       : Enabled
    Port Roles     : Unknown Port
    Port State     : Disabled
    Port Priority    : 128
    Port Cost      : Config=200000 / Active=200000
    Port Edged       : Config=disable / Active=disable
    Point to Point   : Config=auto / Active=enable
                                           110
                                GPON OLT CLI User Manual V2.1
Command:
   1) link-aggregation group {TRUNK-GROUP} psc {TRUNK-PSC}
   2) no link-aggregation group {TRUNK-GROUP | all}
View:
   Config view
Parameters:
    TRUNK-GROUP:The created trunk-id, in the range of 1-32.
    TRUNK-PSC: Created trunk traffic distribution policy, ranging from 1-6.1 for
        based on source MAC address; 2 for based on destination MAC address; 3 for
        simultaneous based on source and destination MAC addresses; 4 for based on
        source IP address; 5 for based on destination IP address; 6 means based on
        both source and destination IP addresses.
    all:Select all trunk groups.
Descriptions:
   The link-aggregation group creates a trunk group and specifies the trunk id and the
   distribution policy of traffic between ports.
   No link-aggregation group deletes the specified/all trunk groups.
Examples:
   Display trunk group information with trunk id 1
   OLT(config)# show link-aggregation group 2
   The trunk group does not exist.
    Create a trunk id of 2, and the traffic distribution policy is based on the source MAC
    address.
    OLT(config)# link-aggregation group 2 psc 1
Command:
   link-aggregation group {TRUNK-GROUP} new-psc {TRUNK-PSC }
View:
   Config view
                                              111
                                  GPON OLT CLI User Manual V2.1
Parameters:
    TRUNK-GROUP:The trunk id of the traffic distribution policy which will be
       modified, in the range 1-32.
    TRUNK-PSC: trunk new traffic distribution policy, ranging from 1-6.1 means
       based on source MAC address; 2 means based on destination MAC address; 3
       means based on Simultaneously based on source and destination MAC
       addresses; 4 means based on source IP address; 5 means based on
       destination IP address; 6 means Simultaneously based source and destination
       IP addresses.
Descriptions:
   Modify the traffic distribution policy of a trunk group.
Examples:
   Display trunk group information with trunk id 2
   OLT(config)# show link-aggregation group 2
    Trunk 2: psc: srcmac
    Ports: none
Command:
   1) port link-aggregation group {TRUNK-GROUP }
   2) no port link-aggregation group {TRUNK-GROUP }
View:
   Ge and xge view
Parameters:
    TRUNK-GROUP:The trunk group number, in the range of 1-8.
Descriptions:
   Port link-aggregation group adds the current interface to the specified trunk group.
   The no port link-aggregation group command deletes the current interface from the
   specified trunk group.
Examples:
   Add the current port to trunk 2
   OLT(config-if-ge-0/3)# port link-aggregation group 2
                                               112
                                GPON OLT CLI User Manual V2.1
Command:
   show link-aggregation group {TRUNK-GROUP | all}
View:
   config view
Parameters:
    TRUNK-GROUP:Display the trunk-id value, in the range of 1-8.
    all:Display information about all trunks, including the id of the trunk, the
        distribution policy of the traffic between the trunk ports, the ports belonging to
        the trunk, and so on.
Descriptions:
   Display information about the trunk, including the id of the trunk, the distribution
   policy of the traffic between the trunk ports, the ports belonging to the trunk, and so
   on.
Examples:
   Display all trunk information
   OLT(config)# show link-aggregation group all
    Trunk 2: psc: destip
    Ports: GE3
    Trunk 3: psc: srcdestmac
    Ports: none
                                              113
                                       GPON OLT CLI User Manual V2.1
Command:
   show alarm history { all | id | level | type | time }
View:
   Config view
Parameters:
    id:Query alarms and event history records according to the alarm id.
    level:Query alarm and event history according to the alarm level.
    time:Query alarm and event history according to the alarm time.
    type:Query alarm and event history according to the alarm type.
    all:Display all alarm type query alarms and event history records.
Descriptions:
   Display all alarm and event history in the system.
Examples:
    OLT(config)# show alarm history all
    Alarm SN Alarm ID LOCATION MAC ADDRESS                                         TIME                 DESCRIPTION
     --------- ------------ ------------ ------------------ ---------------------- --------------------
     1        0x00001002 SYS:00/00:00 00:00:00:00:00:00 2012/09/21 14:15:41 System init
     2        0x00003001 PON:05/00:00 00:00:00:00:00:05 2012/09/21 14:15:42 PON add ok
     3        0x00003001 PON:06/00:00 00:00:00:00:00:06 2012/09/21 14:15:43 PON add ok
     4        0x00003001 PON:07/00:00 00:00:00:00:00:07 2012/09/21 14:15:43 PON add ok
     5        0x00003001 PON:08/00:00 00:00:00:00:00:08 2012/09/21 14:15:43 PON add ok
     6        0x00003001 PON:01/00:00 00:00:00:00:00:01 2012/09/21 14:15:43 PON add ok
     7        0x00003001 PON:02/00:00 00:00:00:00:00:02 2012/09/21 14:15:43 PON add ok
     8        0x00003001 PON:03/00:00 00:00:00:00:00:03 2012/09/21 14:15:43 PON add ok
     9        0x00003001 PON:04/00:00 00:00:00:00:00:04 2012/09/21 14:15:43 PON add ok
Command:
   show alarm active
View:
   Config view
Parameters:
                                                         114
                                     GPON OLT CLI User Manual V2.1
   None
Descriptions:
   It display that there are still alarms and event history records in the current system,
   and will be cleared after restart.
Examples:
   OLT(config)# show alarm active
    Alarm SN Alarm ID LOCATION MAC ADDRESS                                         TIME
   DESCRIPTION
     --------- ------------ ------------ ------------------ ---------------------- --------------------
     1        0x00001002 SYS:00/00:00 00:00:00:00:00:00 2012/09/21 14:15:41
   System init
     2        0x00003001 PON:05/00:00 00:00:00:00:00:05 2012/09/21 14:15:42
   PON add ok
Command:
   1) no alarm all
   2) no alarm history {all | ALARM_ID }
   3) no alarm active {all | ALARM_ID }
View:
   Config view
Parameters:
    all: All historical alarm list information.
    History:Clear historical alarms and event record lists.
    active :Clear current alarm and event record list
    ALARM_ID:Alarm id, hexadecimal show it.
Descriptions:
   Clear the historical alarm record of the specified alarm id or clear all historical alarm
   records. For display history alarms, please refer to show alarm.
Examples:
   OLT (config)# no alarm all
Command:
  alarm display {disable|enable}
                                                     115
                               GPON OLT CLI User Manual V2.1
View:
   Config view
Parameters:
    disable:Cancel the display of alarms and events
    enable:Open the display of alarms and events
Descriptions:
   Alarm display / no display of the main switch, after opening, the alarm information
   will be displayed in real time on the terminal interface.
Examples:
   OLT(config)# alarm display enable
Command:
   show alarm display status
View:
   Config view
Parameters:
   None
Descriptions:
   View current alarm and event display total switch enable status
Examples:
   OLT(config)# show alarm display status
    Alarm display enable
Command:
   1) alarm output {system|onu|pon|switch} {ALARM_ID} {disable|enable}
   2) alarm {system | onu | pon | switch} {ALARM_ID} {disable | enable}
View:
   Config view
Parameters:
    system: system module alarms and events
    onu: onu module alarms and events
    pon: pon module alarms and events
    switch: switch module alarms and events
    ALARM_ID:Alarm ID number
    Enable: Enable an alarm and event output to the terminal switch.
    Disable: Disable an alarm and event output to the terminal switch.
                                             116
                               GPON OLT CLI User Manual V2.1
Descriptions:
   Configure whether an alarm or event in a module is output to the terminal
   Configure whether alarms and events under a module are output,No impact on
   alarms and events. The alarms and events generated by the system will still be
   recorded. In the history table and activity record table, the alarms and events can be
   viewed. It will also report to the network management, whether the network
   management is displayed, depending on the configuration of the network
   management.
Examples:
   The system reset alarm id is 0x00001001. Configure the OLT so that this event not
   output to the terminal
   OLT (config)# alarm output system 0x00001001 disable
Command:
   alarm output level {critical l major | minor | warning} {enable | disable}
View:
   Config view
Parameters:
    critical l major | minor | warning:Configure whether a certain level of alarms
       and events are output to the terminal.
    enable:Enable a certain level of alarm and event output to the terminal switch.
    diable:Forbid certain levels and events from being output to the terminal
       switch.
Descriptions:
   Configure whether a certain level of alarm or event is output to the terminal.
Examples:
   Configure alarms and events for the warning level to not be output to the terminal.
   OLT(config)# alarm output level warning disable
    OLT(config)# show alarm config level
        ALARM LEVEL OUTPUT
        ------------    ------------
        warning        disable
        minor         enable
        major         enable
        critical      enable
Type
                                             117
                               GPON OLT CLI User Manual V2.1
Command:
   alarm output type {communication l service| process | equipment | environment | tca}
   {enable | disable}
View:
   Config view
Parameters:
    communication: Configure communication alarms and events to be output to
       the terminal or not.
    service: Configure service quality alarms and events to be output to the
       terminal or not.
    process:Configure whether to handle error type alarms and events output to
       the terminal or not.
    equipment: Configure hardware device alarms and events to be output to
       the terminal or not.
    environment:Configure environment-level alarms and events to be output to
       the terminal or not.
    Tca:Configure whether threshold alarms and events are output to the terminal or
       not.
    enable:Enable certain types of alarms and event output to the terminal switch
       or not.
    Disable:Disable certain types of alarms and events from being output to the
       terminal switch or not.
Descriptions:
   Configure whether certain types of alarms and events are output to the terminal.
Examples:
   Disable service class alarms and event output to the terminal
     OLT(config)# show alarm config type
        ALARM TYPE            OUTPUT
        --------------    ------------
        environment        enable
        equipment         enable
        process         enable
        service         enable
        communication enable
        tca            enable
   OLT(config)# alarm output type service disable
    OLT(config)# show alarm config type
        ALARM TYPE            OUTPUT
        --------------     ------------
        environment         enable
        equipment          enable
        process          enable
        service         disable
                                            118
                  GPON OLT CLI User Manual V2.1
communication enable
tca      enable
                               119
                              GPON OLT CLI User Manual V2.1
Command:
   show alarm config {level | type}
View:
   Config view
Parameters:
    level:Displays whether a certain level of alarms and events are output to the
       terminal configuration.
    type:Displays whether certain types of alarms and events are output to the
       terminal configuration.
Descriptions:
   Displays mask information for alarms and events when the command has no
   parameters.
   When the command has parameters, display alarms and event output to the
   terminal information.
Examples:
   Display whether a certain level of alarms and events are output to the terminal.
   OLT(config)# show alarm config type
        ALARM TYPE           OUTPUT
        --------------    ------------
        environment        enable
        equipment         enable
        process          enable
        service         disable
        communication enable
        tca            enable
                                           120
                                  GPON OLT CLI User Manual V2.1
Command:
   show alarm info all
View:
   Config view
Parameters:
   None
Descriptions:
   Displays a list of alarms and events. Displays the id, description, level, type, enable
   switch, output to terminal switch, alarm, and time stamp of each alarm or event.
Examples:
   Display alarm and event list
   OLT(config)# show alarm info all
        alarm id       description         level     type         trap output class
        ------------ ----------------------------- -------------- ----------  --------- --------
   --- ---------
        0x00001001 system reset critical                 equipment enable enable event
        0x00001002 system init               warning equipment enable enable event
Command:
   show alarm info { system|onu|pon|switch} {ALARM_ID}
View:
   Config view
Parameters:
    system:System module alarms and events
    onu:Onu module alarms and events
    pon:Pon module alarms and events
    switch:Switch module alarms and events
    ALARM_ID :The id of the alarm or event in the corresponding module
Descriptions:
   Displays the id, description, level, type, enable switch, output to terminal switch,
   alarm, and time stamp of an alarm or event.
Examples:
   OLT(config)# show alarm info system 0x00001001
     ID       : 0x00001001
                                                121
                                GPON OLT CLI User Manual V2.1
Command:
   alarm {system | onu | pon | switch} {ALARM_ID} {critical | default | major | minor |
   warning }
View:
   Config view
Parameters:
    System:System module alarms and events
    onu:onu module alarms and events
    pon:pon module alarms and events
    switch:Alarms and events of the switch module
    ALARM_ID:Alarm ID number
    Critical:The levels of alarms and events are severe.
    Default:Configure alarm and event levels as default values.
    Major:Configure the level of alarms and events is important.
    Minor:Configure alarm and event levels as secondary
    Warning:Configure alarm and event levels as warnings.
Descriptions:
   Configure alarm and event levels. Turn on and off alarms and events according to
   the alarm id.
Examples:
   The alarm ID of the system time change is 0x00001001. Configure this event level
   as minor.
   OLT(config)# alarm system 0x00001001 minor
   OLT(config)# show alarm info system 0x00001001
     ID       : 0x00001001
     Description : System reset
     Level      : minor
     Type        : equipment
     Output       : enable
     Trap       : enable
     Class       : event
                                             122
                               GPON OLT CLI User Manual V2.1
Command:
   alarm log {enable | disable | save}
View:
   Config view
Parameters:
    enable:Turn on alarms and event output to the log switch.
    disable:Turn off alarms and event output to the log switch.
Descriptions:
   Enables or disables the logging of alarms and event output (the default state is to
   disable alarms and event output logs).
Examples:
   Enable alarm and event output to the log switch
   OLT(config)# alarm log enable
Command:
   show alarm log status
View:
   Config view
Parameters:
   None
Descriptions:
   Display alarm and event output to log switch configuration.
Examples:
   OLT(config)# show alarm log status
    Alarm to log status :Disable
Command:
                                             123
                               GPON OLT CLI User Manual V2.1
Command:
   snmp-trap ip-address {IPADDRESS}
View:
   Config view
Parameters:
   IPADDRESS: SNMP trap server ipaddress
Descriptions:
   set the SNMP trap server.
Examples:
   OLT(config)# snmp-trap ip-address 192.168.0.116
Command:
   show alarm trap
View:
   Config view
Parameters:
   None
Descriptions:
   Displays alarms and events output to the Trap Server switch state.
Examples:
   OLT(config)# show alarm trap status
                                            124
GPON OLT CLI User Manual V2.1
             125
                                 GPON OLT CLI User Manual V2.1
Command:
   onu auto-find {PON_ID} {enable| disable}
View:
   Config or gpon-olt view
Parameters:
    PON_ID:Pon port ID pon 口 ID;
    enable:Turn on ONU auto discovery function ;
    disable: Turn off ONU auto discovery function .
Descriptions:
   Configure to turn on or turn off the ONU automatic discovery function of a PON port.
   The default is to turn off the ONU auto-discovery feature.
Examples:
   Open the ONU auto discovery function of the PON 1 port:
   OLT(config)# onu auto-find 1 enable
Command:
   show onu auto-find list { PON_ID }
View:
   Config or gpon-olt view
Parameters:
   PON_ID:pon port ID;
Descriptions:
   View the ONUs automatically discovered by a PON port.
Examples:
   View the ONUs automatically discovered by the PON 1 port:
   OLT(config)# show onu auto-find list 1
      id Vendor-ID GPON-SN
      01 GPON       GPON18060155 (47504f4e18060155)
                                               126
                               GPON OLT CLI User Manual V2.1
Command:
   1) onu add {ONU_ID} {sn GPON_SN | sn-pw GPON_SN PASSWORD | pw
       PASSWORD | loid LOID | loid_lopw LOID } [desc NAME]
   2) onu add { ONU_ID } {sn GPON_SN | sn-pw GPON_SN PASSWD | pw
       PASSWORD | loid LOID | loid_lopw LOID } {line-profile-name NAME| line-
       profile-id ID} [desc NAME]
   3) onu add { ONU_ID } {sn GPON_SN | sn-pw GPON_SN PASSWD | pw
       PASSWORD | loid LOID | loid_lopw LOID } {line-profile-name NAME| line-
       profile-id ID} {service-profile-name NAME| service-profile-id ID} [desc NAME]
View:
   Gpon-olt view
Parameters:
    ONU_ID:ONU ID;
    GPON_SN:ONU Serial number, fixed 12 characters, such as: GPON18060155;
    PASSWORD:Authentication password;
    LOID:Logical ID
    LOPW:Logical ID password
    desc NAME:ONU description information, up to 32 characters, optional
    line-profile-name NAME:Register the ONU and bind the line Profile according
       to the name. Optional;
    line-profile-id ID:Register the ONU and bind the line Profile according to the
       ID.
    service-profile-name NAME:Register the ONU and bind the service Profile
       according to the name. Optional;
    service-profile-id ID:Register the ONU and bind the service Profile according
       to the ID.
Descriptions:
   As above, ONU registration supports the following authentication methods:
   GPON SN, GPON SN plus password, password, LOID, LOID plus LOID password.
   As above, ONU registration supports 3 modes:
   1) If not bind the line Profile, and not bind service Profile. The configuration
       commands of the line Profile and service Profile are configured in the gpon-onu
       node.
   2) Only bind the line Profile, and do not bind the service Profile. The configuration
       command of the corresponding service Profile is configured in the gpon-onu
       node.
   3) Bind line profiles and service templates at the same time
Examples:
   Enter the PON 1 port, register the ONU, do not bind the line profile, and do not bind
   the service Profile:
   OLT(config)# interface gpon-olt 0/1
   OLT(config-if-gpon-olt_0/1)# onu add 1 sn GPON18060183
                                             127
                               GPON OLT CLI User Manual V2.1
    Enter PON 1 port, register ONU, and bind line Profile HGU:
    OLT(config-if-gpon-olt_0/1)# onu add 2 sn GPON18060184 line-profile-name HGU
    Enter PON 1 port, register ONU, bind line profile HGU and service Profile HGU:
    OLT(config-if-gpon-olt_0/1)# onu add 3 sn GPON18060178 line-profile-name HGU
    service-profile-name HGU
Command:
  1) onu auto-config {all-onu | gpon-olt { SLOT_ID/PON_ID} | equipment-id {EQUID} |
     vendor-id {VENDORID} equipment-id {EQUID}}
  2) onu auto-config {all-onu | gpon-olt { SLOT_ID/PON_ID} | equipment-id {EQUID} |
     vendor-id {VENDORID} equipment-id {EQUID}} {line-profile-id
     {LINE_PROFILE_ID} | line-profile-name {LINE_PROFILE_NAME}}
  3) onu auto-config {all-onu | gpon-olt { SLOT_ID/PON_ID} | equipment-id {EQUID} |
     vendor-id {VENDORID} equipment-id {EQUID}} {line-profile-id
     {LINE_PROFILE_ID} | line-profile-name {LINE_PROFILE_NAME}} {service-
     profile-id {SERVICE_PROFILE_ID} | service-profile-name
     { SERVICE_PROFILE_NAME}}
View:
   gpon-olt view
Parameters:
    all-onu:All ONUs are automatically registered;
    gpon-olt { SLOT_ID/PON_ID}:The ONU under the PON port specified by
        SLOT_ID/PON_ID is automatically registered.;
    equipment-id {EQUID}:The ONU of the specified equipment-id is automatically
        registered.;
    vendor-id {VENDORID} equipment-id {EQUID}:Automatic registration of ONUs
        for specified vendor-id and equi-ment-id
    LINE_PROFILE_ID:Line Profile ID bound after auto registration
    LINE_PROFILE_NAME: Line Profile name bound after auto registration
    SERVICE_PROFILE_ID: Line Profile ID bound after auto registration
    SERVICE _PROFILE_NAME: Service Profile name bound after auto
        registration
Descriptions:
   Auto-find function should be enable.
Examples:
   All ONUs under PON port 1 are registered automatically, and bind the line Profile
   100, and the service Profile is 100:
   OLT(config-if-gpon-olt_0/1)# onu auto-find enable
   OLT(config-if-gpon-olt_0/1)# onu auto-config gpon-olt 0/1 service-profile-id 100 line-
   profile-id 100
                                             128
                               GPON OLT CLI User Manual V2.1
Command:
   onu delete {{ ONU_ID }|all}
View:
   gpon-olt view
Parameters:
    ONU_ID:delete single ;
    all:delete all ONU;
Descriptions:
   None
Examples:
   Delete onu 1 in PON 1 port:
   OLT(config-if-gpon-olt_0/1)# onu delete 1
Command:
   onu activate { ONU_ID }
View:
   Gpon-olt view
Parameters:
    ONU_ID:ONU ID;
Descriptions:
   Activate ONU.
Examples:
   Activate the ONU under the PON 1 port 1:
   OLT(config-if-gpon-olt_0/1)# onu activate 1
Command:
   onu deactivate { ONU_ID }
View:
   Gpon-olt view
Parameters:
                                            129
                               GPON OLT CLI User Manual V2.1
    ONU_ID:
Descriptions:
   Deactivate ONU Note: After deactivation, the ONU is disconnected and will be
   automatically activated after a while.
Examples:
   Deactivate the ONU under the PON 1 port 1:
   OLT(config-if-gpon-olt_0/1)# onu deactivate 1
Command:
   onu reboot { ONU_ID }
View:
   Gpon-olt view
Parameters:
    ONU_ID:
Descriptions:
   Restart the ONU.
Examples:
   Restart the ONU under the PON 1 port 1:
   OLT(config-if-gpon-olt_0/1)# onu reboot 1
                                            130
                              GPON OLT CLI User Manual V2.1
Command:
   1) show onu state
   2) show onu state {all| gpon-olt SLOT_ID/PON_ID}
View:
Gpon-onu view
    all:View the registration status of all ONUs;
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:Pon id, range 1-16;
Descriptions:
   The ONU status mainly has the following types:
   1) offline:Means that the ONU is offline;
   2) processing:Means during processing;
   3) ranging:It means that the ONU is in the ranging state;
   4) online:The ONU is online but has no delivery configuration.
   5) syncmib:The ONU is online and the configuration is being syncmib.
   6) syncmib-fail:The ONU is online and the configuration is being syncmib-fail
   7) working:The ONU is online and the configuration is successfully delivered.
Examples:
   Check all ONU registration status under PON 1
   OLT(config)# show onu state gpon-olt 0/1
    --------------------------------------------------------------------------
    ONU-ID             GPON-SN                    ONU-State
    --------------------------------------------------------------------------
    0/1:1           GPON18060183                  working
    0/1:2           GPON18060184                  working
    0/1:3           GPON18060178                  working
    0/1:99           GPON18010360                  offline
    --------------------------------------------------------------------------
    Total Num: 4 (num of working: 3)
Command:
   show running-config gpon-onu {SLOT_ID/PON_ID:ONU_ID}
View:
   Gpon-onu view
Parameters:
                                           131
                              GPON OLT CLI User Manual V2.1
Command:
   show onu version gpon-onu {SLOT_ID/PON_ID:ONU_ID}
View:
   Gpon-onu view
Parameters:
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:Pon id, range 1-16;
    ONU_ID:Onu id, range 0-127;
Descriptions:
   Version information includes Vendor ID, hardware version number, SN, device ID,
   software version, etc.
   Note: Only the ONU in online status can view it version information.
Examples:
   View the registration information and configuration information of ONU 1 under PON
   1 port:
   OLT(config)# show onu version gpon-onu 0/1:1
    ------------------------------------------------------
    ONU-ID                     : 0/1:1
    Vendor-ID                   : GPON
    ONU Version                   : V1.0
    Serial Number                 : GPON18060183
    Equipment-ID                  : TSGP6101
    Main Software Version : V001R01B02
    Standby Software Version : V1R01B002
                                           132
                                       GPON OLT CLI User Manual V2.1
------------------------------------------------------
Command:
   show onu capability gpon-onu {SLOT_ID/PON_ID:ONU_ID}
View:
   Gpon-onu view
Parameters:
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:Pon id, range 1-16;
    ONU_ID:Onu id, range 0-127;
Descriptions:
   The capability set information includes the number of eth ports, the number of pots,
   the number of veips, the number of supported gemports, and the number of
   supported tcont.
   Note: Only when the ONU is in the working state can you view its capability set
   information.
Examples:
   View the capability set information of ONU 1 under PON 1 port:
    OLT(config)# show onu capability gpon-onu 0/1:1
Command:
   show onu optical-info gpon-onu {SLOT_ID/PON_ID:ONU_ID}
View:
   Gpon-onu view
Parameters:
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:Pon id, range 1-16;
    ONU_ID:Onu id, range 0-127;
Descriptions:
   Optical power information includes transmitted optical power, received optical
   power, temperature, voltage, and current.
   Note: The optical power information can be viewed only when the ONU is online.
Examples:
   View the optical power information of ONU 1 under PON 1 port:
   OLT(config)# show onu optical-info gpon-onu 0/1:1
    ----------------------------------------------------------
    ONU-ID                    : 0/1:1
    Temperature(C)                : 34
    Voltage(V)                : 3.320
                                                         133
                                       GPON OLT CLI User Manual V2.1
Command:
   show onu eth-port state gpon-onu {SLOT_ID/PON_ID:ONU_ID}
View:
   gpon-onu view
Parameters:
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:Pon id, range 1-16;
    ONU_ID: onu id, range 0-127;
Descriptions:
   Status information of the ONU Ethernet interface includes the GE/FE interface, link
   status, negotiation rate, and duplex mode.NOTE: Only when the ONU is in the
   working state can you view the status information of its Ethernet port.
Examples:
   View the Ethernet port status information of ONU 99 under PON 1 port:
   OLT(config)# show onu eth-port state gpon-onu 0/1:99
     ------------------------------------------------------------------------------------
     ONU-ID Port-ID Port-type Speed(Mbps) Duplex LinkState
     ------------------------------------------------------------------------------------
     0/1:99 1            GE          1000         full up
     ------------------------------------------------------------------------------------
Command:
   show statistics port {PORT_ID} {current-15minutes | historic-15minutes}
View:
   gpon-onu view
Parameters:
    PORT_ID:ONU port ID
    current-15minutes:
    historic-15minutes:
Descriptions:
   View the statistics of the ONU Ethernet port current-15minutes or historical-
   15minutes.
Examples:
   Check the current-15minutes statistics of Ethernet port 1 on ONU 0/1:1:
                                                         134
                            GPON OLT CLI User Manual V2.1
Command:
                                         135
                              GPON OLT CLI User Manual V2.1
Command:
   mapping-mode vlan
View:
   Gpon-onu view
Parameters:
   None
Descriptions:
   Configure the gemport mapping mode.
   Note: This command can be configured only when the ONU is registered and the
   line Profile is not bound.
Examples:
   Configure the mapping mode of ONU1 on the PON 1 port as vlan mapping mode:
                                           136
                             GPON OLT CLI User Manual V2.1
Command:
   1) tcont {TCONT_ID} {dba-profile-name NAME|dba-profile-id ID}
   2) no tcont {0-7}
View:
   Gpon-onu view
Parameters:
    TCONT_ID: tcont ID or index;
    NAME:DBA mode name
    ID:DBE mode ID
Descriptions:
   Create tcont and bind the DBA Profile; you can create 8 tcont.
   Note: This command can be configured only when the ONU is registered and the
   line Profile is not bound.
Examples:
   Create tcont 1, bind DBA UP-1G:
    OLT(config-if-gpon-onu_0/1:1)# tcont 1 dba-profile-name UP-1G
   Delete tcont 1
   OLT(config-if-gpon-onu_0/1:1)# no tcont 1
   Delete gemport 1:
   OLT(config-if-gpon-onu_0/1:1)# no gemport 1
                                          137
                             GPON OLT CLI User Manual V2.1
Command:
   1) gemport {GEMINDEX} mapping vlan (VID|transparent)
   2) no gemport {GEMINDEX} mapping vlan (VID|transparent)
View:
   Gpon-onu view
Parameters:
    GEMINDEX:Gemport index
    VID:Vlan ID, which means that the gemport allows the vlan to pass;
    transparent:Vlan transparent means that the gemport allows all vlans to
        pass;vlan
Descriptions:
   Configure gemport mapping. Each gemport can be configured with 8 mappings.
   Note: This command can be configured only when the ONU is registered and the
   line Profile is not bound.
Examples:
   Configure gemport 1 to allow vlan100 to pass:
    OLT(config-if-gpon-onu_0/1:1)# gemport 1 mapping vlan 100
Command:
   1) shutdown port eth {PORT_ID}
   2) no shutdown port eth {PORT_ID}
View:
   gpon-onu view
Parameters:
    PORT_ID: Ethernet port port id;
Descriptions:
   shutdown port eth The command closes the specified LAN port.
   no shutdown The command opens the specified LAN port.
Examples:
   Close eth 1:
   OLT(config-if-gpon-onu_0/1:1)# shutdown port eth 1
                                          138
                               GPON OLT CLI User Manual V2.1
Command:
   port eth { PORT_ID } vlan mode {transparent|tag|translation|trunk}
View:
   gpon-onu view
Parameters:
    PORT_ID:Ethernet port port id;
    transparent:Transparent mode
    tag:tag mode
    translation:translation mode
    trunk:trunk mode
Descriptions:
   Configure the vlan mode of an Ethernet interface.
   Currently supports 4 modes: transparent, tag, translation, trunk mode.
   Note: This command can be configured only when the ONU is registered and the
   service Profile is not bound.
Examples:
   Configure eth 1 as the transparent transmission mode:
   OLT(config-if-gpon-onu_0/1:1)# port eth 1 vlan mode transparent
Command:
   port eth {PORT_ID} tag vlan {VID} priority {PRI}
View:
   gpon-onu view
Parameters:
    PORT_ID:Ethernet port ID;
    VID:vlan ID;
    PRI:Vlan priority
Descriptions:
   Configure the default vlan of the eth interface. The uplink packet will be marked with
   the vlan. The downlink packets carrying the vlan will be stripped and other packets
   will be discarded.
   note:
   1) The command can be configured only when the service Profile is not bound to the
   ONU.
   2) This command can be configured only when the vlan mode of the eth port is in
   tag mode.
Examples:
   Configure the default vlan of eth 1 as 100, the priority as 0:
                                             139
                               GPON OLT CLI User Manual V2.1
Command:
   1) port eth {PORT_ID} translation default vlan {VID} {PRI}
   2) port eth {PORT_ID} translation {INDEX} {CVID} [CPRI] to {SVID} [SPRI]
   3) no port eth {PORT_ID} translation {INDEX}
View:
   gpon-onu view
Parameters:
    PORT_ID:Ethernet port port id;
    VID:default vlan ID;
    PRI:Default vlan priority
    INDEX:Convert entry index to support up to support 8 conversion entries;
    CVID:User side vlan ID
    CPRI: User side vlan priority, optional;
    SPRI: Network side vlan priority, optional;
Descriptions:
   Configure the default vlan of the eth interface. The uplink packet will be marked with
   the vlan. The downlink packets carrying the vlan will be stripped and other packets
   will be discarded.
   Configure the conversion entry of the eth interface, and change the direction: the
   packet carrying the CVID [CPRI] on the uplink is converted to carry the SVID [SPRI];
   the packet carrying the SVID [SPRI] on the downlink is converted to carry the CVID
   [CPRI];
   note:
   1) The command can be configured only when the service Profile is not bound to the
   ONU.
   2) 2) This command can be configured only when the vlan mode of the eth port is in
   the translation mode.
Examples:
   Configure the default vlan of eth 1 as 100, the priority as 0:
   OLT(config-if-gpon-onu_0/1:1)# port eth 1 translation default vlan 100 0
Command:
                                             140
                                GPON OLT CLI User Manual V2.1
Examples:
   Configure the default vlan of eth 1 as 100, priority as 0:
   lt vlan 100 0
Command:
   1) multicast vlan add vlanlist {VID}
   2) multicast vlan delete vlanlist {VID}
   3) multicast vlan delete all
View:
   gpon-onu view
Parameters:
                                              141
                                GPON OLT CLI User Manual V2.1
    Clear all multicast vlans and restore them to the default do not care about multicast
    vlan:
    OLT(config-if-gpon-onu_0/1:1)# multicast vlan delete all
Command:
   igmp {eth {PORT_ID} | veip 1} fast-leave {enable|disable}
View:
   Gpon-onu view
Parameters:
    PORT_ID:Ethernet port port id;
    enable:Turn on the quick leave feature;
    disable:Turn off the fast leave feature.
Descriptions:
   Configure the fast leave function of eth or veip; the default fast leave function is
   turned on.
   Note: This command can be configured only when the ONU is registered and the
   service Profile is not bound.
Examples:
   Turn off the fast leave feature of eth 1:
    OLT(config-if-gpon-onu_0/1:1)# igmp eth 1 fast-leave disable
Command:
  1) igmp {eth { PORT_ID }|veip 1} igmp-forward add {VID} {PRI}
  2) igmp {eth { PORT_ID }|veip 1} igmp-forward translation{VID} [PRI]
  3) igmp {eth { PORT_ID }|veip 1} igmp-forward transparent
  4) no igmp {eth { PORT_ID }|veip 1} igmp-forward
                                              142
                                GPON OLT CLI User Manual V2.1
View:
   gpon-onu view
Parameters:
    PORT_ID:Ethernet port ID;
    add VID PRI:Means that the uplink igmp packet mark a VID and a priority PRI;
    translation VID:Replace the vlan ID of the uplink igmp packet with the VID.
    translation VID PRI:Replace the vlan ID of the uplink igmp packet with the VID
       and the priority with the PRI.
    transparent:Mean transparent of igmp packets.
Descriptions:
   Configure the uplink igmp packet forwarding function of eth or veip. The default is to
   transparent uplink igmp packets.
   Note: This command can be configured only when the ONU is registered and the
   service Profile is not bound.
Examples:
   Configure eth 1 to match the upstream igmp packet and mark vlan 100, priority 7:
   OLT(config-if-gpon-onu_0/1:1)# igmp eth 1 igmp-forward add 100 7
    Delete the uplink igmp packet function of eth 1 and restore it to the default:
    OLT(config-if-gpon-onu_0/1:1)# no igmp eth 1 igmp-forward
Command:
   igmp {eth { PORT_ID }|veip 1} igmp-version {v1 | v2| v3| mld_v1| mld_v2}
View:
   Gpon-onu view
Parameters:
    PORT_ID:Ethernet port port id; 以太网口 port id;
    v1:igmp version 1
    v2:igmp version 2
    v3:igmp version 3
    mld_v1:mld version 1
    mld_v2:mld version 2
Descriptions:
   Configure the igmp version of eth or veip; the default is igmp v2.
   Note: This command can be configured only when the ONU is registered and the
   service Profile is not bound.
Examples:
   Configure the igmp version of eth 1 as igmp v3:
   OLT(config-if-gpon-onu_0/1:1)# igmp eth 1 igmp-version v3
                                              143
                              GPON OLT CLI User Manual V2.1
Command:
   igmp {eth { PORT_ID }|veip 1} max-bandwidth {BW_VAL| no-limit}
View:
   Gpon-onu view
Parameters:
    PORT_ID:Ethernet port ID;
    BW_VAL:Maximum multicast bandwidth limit value;
    no-limit:No limit
Descriptions:
   Configure the maximum multicast bandwidth of eth or veip; the default is
   unlimited.Note: This command can be configured only when the ONU is registered
   and the service Profile is not bound.
Examples:
   Configure the maximum multicast bandwidth of eth 1 to be 1 Mbps:
    OLT(config-if-gpon-onu_0/1:1)# igmp eth 1 max-bandwidth 1024
Command:
   igmp {eth { PORT_ID }|veip 1} max-groups {NUM| no-limit}
View:
   gpon-onu view
Parameters:
    PORT_ID:Ethernet port ID
    NUM:Maximum number of multicast groups;
    no-limit:No limit
Descriptions:
   Configure the maximum number of multicast groups for eth or veip; the default is
   unlimited.Note: This command can be configured only when the ONU is registered
   and the service Profile is not bound.
Examples:
   Configure the maximum number of multicast for eth 1 is 8:
    OLT(config-if-gpon-onu_0/1:1)# igmp eth 1 max-groups 8
Command:
  1) igmp {eth { PORT_ID }|veip 1} multicast-forward add {VID} {PRI}
  2) igmp {eth { PORT_ID }|veip 1} multicast-forward translation {VID} [PRI]
  3) igmp {eth { PORT_ID }|veip 1} multicast-forward transparent
  4) igmp {eth { PORT_ID }|veip 1} multicast-forward vlan-strip
                                           144
                               GPON OLT CLI User Manual V2.1
   Delete the downlink multicast forwarding function of eth 1 and restore it to the
   default:
   OLT(config-if-gpon-onu_0/1:1)# no igmp eth 1 multicast-forward
Command:
   igmp {eth { PORT_ID }|veip 1} work-mode {snooping|proxy|spr}
View:
   gpon-onu view
Parameters:
    PORT_ID:Ethernet port ID;
    snooping:Configure igmp to work in snooping mode.
    proxy:Configure igmp to work in proxy mode.
    spr:Configure igmp to work in snooping with proxy reporting mode.
Descriptions:
   Configure the igmp working mode of eth or veip;
   The default is snooping mode.
   Note: This command can be configured only when the ONU is registered and the
   service Profile is not bound.
Examples:
   Configure the igmp working mode of eth 1 as proxy:
                                             145
                               GPON OLT CLI User Manual V2.1
Command:
   igmp {eth { PORT_ID }|veip 1} non-match-group {forward|discard}
View:
   gpon-onu view
Parameters:
    PORT_ID:Ethernet port port id;
    forward:Indicate forwarding an igmp request packet whose uplink is not in the
         dynamic control list.
    discard:Indicate the igmp request packet that is not in the dynamic control list
         is discarded.
Descriptions:
   Configure the eth or veip igmp request packet process behavior which uplink are
   not in the dynamic control list.The default is forward.
   Note: This command can be configured only when the ONU is registered and the
   service Profile is not bound.
Examples:
   Configure eth 1 to discard igmp request packets that are not in the dynamic control
   list.
    OLT(config-if-gpon-onu_0/1:1)# igmp eth 1 non-match-group discard
Command:
   load onu-image {NAME} tftp {IPADDR}
View:
   Enable view
Parameters:
    NAME:ONU upgrade image file name, up to 64 characters;
    IPADDR:Tftp server IP address;
Descriptions:
   Import the ONU upgrade image file to the OLT through tftp.
Examples:
   Import the img.tar image file from the tftp server 192.168.0.99 to the OLT:
    OLT# load onu-image img.tar tftp 192.168.0.99
                                             146
                                GPON OLT CLI User Manual V2.1
Command:
   load onu-image {NAME} ftp { IPADDR } user {USER} passwd {PASSWORD}
View:
   Enable view
Parameters:
    NAME:ONU upgrade image file name, up to 64 characters;
    IPADDR:Ftp server IP address;
    USER:Ftp login username;
    PASSWORD: ftp login password.
Descriptions:
   Import the ONU upgrade image file to the OLT through ftp.
Examples:
   Import the img.tar image file from the ftp server 192.168.0.99 to the OLT:
    OLT# load onu-image img.tar ftp 192.168.0.99 user 123 passwd 123456
Command:
   onu {upgrade|upgrade-active|upgrade-commit|upgrade-commit-reboot} {NAME}
   gpon-onu {SLOT_ID/PON_ID:ONU_ID}
View:
   Enable view
Parameters:
    upgrade:Only the upgrade operation is performed, the ONU does not
       automatically restart, and the new version needs to be manually switched to
       take effect.
    upgrade-active:After upgrading and activating the new version, the ONU will
       automatically restart. After the first restart, the new version is the main version;
       after that, the new version becomes the backup version, and the previous
       version is switched back to the main version.
    upgrade-commit:Upgrade, and submit, ONU will not automatically restart; after
       manual or remote restart, the new version becomes the main version;
    upgrade-commit-reboot:Upgrade, submit, and restart the ONU, the new
       version is the main version;
    NAME:ONU upgrade image file name, up to 64 characters;
    SLOT_ID:Olt slot, fixed at 0
    PON_ID:Pon id, range 1-16;
    ONU_ID:Onu id, range 0-127;
Descriptions:
   Upgrade the ONU remotely, supporting 4 upgrade modes: upgrade, upgrade-active,
   upgrade-commit, upgrade-commit-reboot; the details are as follows:
   1) upgrade:It means that only the image file is upgraded to the ONU backup
       area,the ONU does not automatically restart. After the manual or remote restart,
       the new version or the backup version will not become the main version.
                                              147
                               GPON OLT CLI User Manual V2.1
    2)upgrade-active:The image file is upgraded to the ONU backup area. The ONU
      will automatically restart. After the restart, the new version becomes the main
      version, and the previous version becomes the backup version.But after the
      ONU restarts, it will automatically switch back to the previous version. The new
      version becomes Backup version
   3) upgrade-commit:The image file is upgraded to the ONU backup area. The
      ONU does not restart automatically. After the manual or remote restart, the new
      version becomes the main version, and the previous version becomes the
      backup version. The ONU restarts again, and the new version is still the main
      version.
   4) upgrade-commit-reboot:The image file is upgraded to the ONU backup area.
      The ONU will automatically restart. After the restart, the new version becomes
      the main version, and the previous version becomes the backup version. The
      ONU restarts again, and the new version is still the main version
       Note: The ONU can be upgraded remotely only if the ONU is online.
Examples:
   Upgrade the ONU 0/1:99 remotely though upgrading-commit-reboot:
   OLT# onu upgrade-commit-reboot img.tar gpon-onu 0/1:99
Command:
   onu {upgrade|upgrade-active|upgrade-commit|upgrade-commit-reboot} {NAME}
   gpon-olt {SLOT_ID/PON_ID [ONU_ID]}
View:
   Enable view
Parameters:
    upgrade: Only the upgrade operation is performed. The ONU does not
       automatically restart. The new version needs to be manually switched to take
       effect.
    upgrade-active: Upgrade and activate the new version. The ONU will restart
       automatically. After the first restart, the new version is the main version. After
       that, the new version becomes the backup version. The previous version is
       switched back to the main version.
    upgrade-commit:Upgrade, and submit, ONU will not restart automatically; after
       manual or remote restart, the new version becomes the main version;
    upgrade-commit-reboot:Upgrade, submit, and restart the ONU, the new
       version is the main version;
    NAME:ONU upgrade image file name, up to 64 characters;
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:pon id, range 1-16;
    ONU_ID:The onu id here mean the onu id range, such as: 3-10, optional.
Descriptions:
   The upgrade method is the same as upgrading a single ONU.
                                             148
                                GPON OLT CLI User Manual V2.1
   Note: At present, the batch upgrade only supports upgrading all online ONUs under
   a certain PON port (or within an ONU range of a PON port).
Examples:
   Upgrade all online ONUs under the PON1 port remotely though upgrading-commit-
   reboot:
   OLT# onu upgrade-commit-reboot img.tar gpon-olt 0/1
Command:
   show onu-upgrade status gpon-onu {SLOT_ID/PON_ID:ONU_ID}
View:
   Enable view
Parameters:
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:pon id, range 1-16;
    ONU_ID:onu id, range 0-127;
Descriptions:
   There are four main upgrade statuses:
   ready:Prepare the status, check the upgrade image has the required conditions
   before the upgrade or not;
   updating:During the upgrade process, the image is being downloaded to the ONU;
   success:The upgrade is successful and the upgrade image is downloaded to the
   ONU.
   fail:The upgrade failed. The cause of the failure can be viewed through show onu-
   upgrade info.
   In addition, the ONU upgrade progress will also be displayed.
   Note: When upgrading to 99%, the waiting time may be slightly longer, because the
   ONU is writing the image file to the flash at this time, the waiting time depend on the
   ONU write time.
Examples:
   View the ONU 0/1:99 upgrade status:
   OLT# show onu-upgrade status gpon-onu 0/1:99
     ------------------------------------------------------------------
     ONU-ID Upgrade-status Upgrade-progress
     ------------------------------------------------------------------
     0/1:99       updating                87%
     ------------------------------------------------------------------
Command:
  show onu-upgrade info gpon-onu {SLOT_ID/PON_ID:ONU_ID}
                                             149
                               GPON OLT CLI User Manual V2.1
View:
   Enable view
Parameters:
    SLOT_ID:olt slot, fixed to 0;
    PON_ID:pon id, range 1-16;
    ONU_ID:Onu id, range 0-127;
Descriptions:
   The upgrade information includes the name of the ONU upgrade image file, the
   upgrade method (such as upgrade-commit-reboot), the upgrade result
   (success/failure), and the reason for the failure.
Examples:
   Check the ONU 0/1:99 upgrade information:
   OLT# show onu-upgrade info gpon-onu 0/1:99
     --------------------------------------------------------
     ONU-ID              : 0/1:99
     onu-image            : img.tar
     action           : upgrade-commit-reboot
     result          : success
     fail-reason : -
     --------------------------------------------------------
Command:
   show onu-upgrade status gpon-olt {SLOT_ID/PON_ID}
View:
   Enable view
Parameters:
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:Pon id, range 1-16;
Descriptions:
   There are four main upgrade statuses:
   1) ready:Prepare the status, check the upgrade image has the required
        conditions before the upgrade or not;
   2) updating:During the upgrade process, the image is being downloaded to the
        ONU;
   3) success:The upgrade is successful and the upgrade image is downloaded to
        the ONU.
   4) fail:The upgrade failed. The cause of the failure can be viewed through show
        onu-upgrade info.
   In addition, it also displays the progress of the ONU upgrade, the total number of
   upgraded ONUs, the number of successful upgrades, and the number of upgrade
   failures.
                                            150
                                GPON OLT CLI User Manual V2.1
   Note: When upgrading to 99%, the waiting time may be slightly longer, because the
   ONU is writing the image file to the flash at this time,the waiting time depend on the
   ONU write time.
Examples:
   Check all ONU upgrade status of the PON1 port:
   OLT# show onu-upgrade status gpon-olt 0/1
    -----------------------------------------------------------------
    ONU-ID Upgrade-status Upgrade-progress
    -----------------------------------------------------------------
    0/1:99       success                 100%
    -----------------------------------------------------------------
    Total Num: 1 (success: 1, fail: 0)
Command:
   show onu-upgrade info gpon-olt {SLOT_ID/PON_ID}
View:
   Enable view
Parameters:
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:Pon id, range 1-16;
Descriptions:
   The upgrade information includes the name of the ONU upgrade image file, the
   upgrade method (such as upgrade-commit-reboot), the upgrade result
   (success/failure), and the reason for the failure.
Examples:
   View all ONU upgrade information on the PON1 port:
   OLT# show onu-upgrade info gpon-olt 0/1
     ------------------------------------------------------
     ONU-ID              : 0/1:99
     onu-image            : img.tar
     action           : upgrade-commit-reboot
     result          : success
     fail-reason : -
     ------------------------------------------------------
Command:
   onu confirm version gpon-onu {SLOT_ID/PON_ID:ONU_ID}
View:
                                             151
                                GPON OLT CLI User Manual V2.1
   Enable view
Parameters:
    SLOT_ID:Olt slot, fixed to 0;
    PON_ID:Pon id, range 1-16;
    ONU_ID:Onu id, range 0-127;
Descriptions:
   This function is mainly used in conjunction with the upgrade mode upgrade-active;
   when the ONU use upgrade-active upgrade, after the first reboot, you can use this
   command to confirm the current version, so that even if you restart again, it will not
   switch back to the previous version.
Examples:
   Confirm the current version of ONU 0/1:99:
   OLT# onu confirm version gpon-onu 0/1:99
Command:
   1) onu auto-commit {enable|disable}
   2) show onu auto-commit
View:
   Enable view
Parameters:
    enable:Enable automatic confirmation of the ONU version;
    disable:Disable automatic confirmation of the ONU version;
Descriptions:
   This function can be used in conjunction with the upgrade mode upgrade-active.
   After the ONU version is confirmed automatically, the ONU uses the upgrade-active
   complete the upgrade. After the first restart, the OLT will confirm the current version
   of the ONU automatically. Even if it is restarted again, it will not switch to the
   previous version.
   The default is to turn off the automatic confirmation ONU version function.
Examples:
   Enable automatic confirmation of the current version of the ONU:
   OLT# onu auto-commit enable
    Check the status of the ONU current version function enable automatically:
    OLT# show onu auto-commit
     Auto commit : enable
                                              152
                               GPON OLT CLI User Manual V2.1
Command:
   1) wan add {WAN_INDEX} { bridge | dhcp | pppoe | static } service-type {internet |
       tr069 | voice | internet-tr069 | internet-voice | internet-tr069-voice | other}
   2) no wan {WAN_INDEX}
View:
   GPON ONU view
Parameters:
    WAN_INDEX:WAN connection index value, ranging from 1-6
    bridge | dhcp | pppoe | static:Specify the mode of the WAN connection
    internet | tr069 | voice | internet-tr069 | internet-voice | internet-tr069-voice |
       other:Specify the service type of the WAN connection
Descriptions:
   The wan add command creates a new WAN connection, specifying the
   corresponding WAN connection index, mode and service type.The no wan
   command deletes the specified WAN connection.
   Create an internet WAN connection in dhcp mode:
   OLT(config-if-gpon-onu_0/1:1)# wan add 1 dhcp service-type internet
Command:
   1) wan {WAN_INDEX} vlan {VLAN_ID} [PRI]
   2) no wan { WAN_INDEX } vlan
View:
   GPON ONU view
Parameters:
    WAN_INDEX:WAN connection index value, ranging from 1 to 16
    VLAN_ID:WAN connected VLAN
    PRI:WAN connection 802.1P priority
Descriptions:
   The wan vlan command configures the WAN connection VLAN and its priority.The
   no wan vlan command deletes the VLAN configuration of the WAN connection.
Examples:
   Configure VLAN 1 for WAN connection 1 to be 100, priority is 1:
   OLT(config-if-gpon-onu_0/1:1)# wan 1 vlan 100 1
Command:
                                             153
                                GPON OLT CLI User Manual V2.1
    1)   wan { WAN_INDEX } port-bind [lan1] [lan2] [lan3] [lan4] [ssid1] [ssid2] [ssid3]
         [ssid4] [ssid5] [ssid6] [ssid7] [ssid8]
   2)    no wan { WAN_INDEX } port-bind
View:
   GPON ONU view
Parameters:
    WAN_INDEX:WAN connection index value, ranging from 1 to 16
    lan1~lan4/ssid1~ssid8:To bind the LAN and SSID, you can bind multiple at the
        same time.
Descriptions:
   The wan port-bind command configures port binding for a WAN connection.
   The no wan port-bind command deletes the port binding of the WAN connection.
   For the internet service, you must bind the port, and the corresponding port can get
   the internet service.
Examples:
   Wan 1 is bound to lan1 lan2 and ssid1.
   OLT(config-if-gpon-onu_0/1:1)# wan 1 port-bind lan1 lan2 ssid1
Command:
   1) wan { WAN_INDEX } pppoe user {USERNAME} password {PASSWORD}
   2) no wan { WAN_INDEX } pppoe user
View:
   GPON ONU view
Parameters:
    WAN_INDEX:WAN connection index value, ranging from 1 to 16
    USERNAME:Dial-up username for pppoe WAN connection
    PASSWORD:Pppoe WAN connection dial password
Descriptions:
   After the wan pppoe user command increases the pppoe type WAN connection, you
   must configure its dial-up username and password.
   No wan pppoe user deletes the account configuration of the pppoe type WAN
   connection.
Examples:
   Wan 1 is the pppoe WAN, configured with the username admin and password
   123456.
   OLT(config-if-gpon-onu_0/1:1)# wan 1 pppoe user admin password 123456
                                              154
                             GPON OLT CLI User Manual V2.1
Command:
   1) wan { WAN_INDEX } static ip {IP_ADDR} mask {MASK} gw {GATEWAY} [pri-
       dns {PRI-DNS}] [sec-dns {SEC-DNS}]
   2) no wan { WAN_INDEX } static ip
View:
   GPON ONU view
Parameters:
    WAN_INDEX:WAN connection index value, ranging from 1 to 16
    IP_ADDR:Static IP address of the WAN connection
    MASK:IP address mask for WAN connection
    GATEWAY:WAN connection default gateway
    PRI-DNS:Preferred DNS address, optional
    SEC-DNS:Alternate DNS address, optional
Descriptions:
   The wan static ip command configures the parameters of the static WAN
   connection.
   The no wan static ip command deletes the parameters of the static WAN
   connection.
Examples:
   Wan 1 is a static WAN with a configuration IP of 10.10.10.10, a mask of
   255.255.255.0, a gateway of 10.10.10.1 and a preferred DNS of 202.0.1.1.
   OLT(config-if-gpon-onu_0/1:1)# wan 1 static ip 10.10.10.10 mask 255.255.255.0 gw
   10.10.10.1 pri-dns 202.0.1.1
Command:
   1) iphost { WAN_INDEX } dhcp
   2) iphost { WAN_INDEX } static ip-address {IP_ADDR} mask {MASK} [gateway
       {GATEWAY} ] [primary-dns {PRI-DNS}] [ secondary-dns {SEC_DNS} ]
   3) no iphost { WAN_INDEX }
View:
   GPON ONU view
Parameters:
    WAN_INDEX:VOIP WAN connection index value, ranging from 0-7
    IP_ADDR:Static IP address of the WAN connection
    MASK:IP address mask of WAN connection
    GATEWAY:WAN connection default gateway, optional
    PRI-DNS:Preferred DNS address, optional
    SEC-DNS:Alternate DNS address, optional
Descriptions:
   The iphost dhcp command creates a VOIP WAN connection of a DHCP address.
   The iphost static command creates a statically configured VOIP WAN connection.
                                          155
                              GPON OLT CLI User Manual V2.1
   Use wan add command also can establish VOIP WAN connection, but the VOIP
   WAN created in this way does not support omci configuration VOIP configuration
   information.The iphost command can be used to support omci configuration VOIP
   configuration information.
Examples:
   Create a VOIP WAN connection in dhcp mode:
    OLT(config-if-gpon-onu_0/1:1)# iphost 1 dhcp
Command:
   1) iphost { WAN_INDEX } vlan {VLAN_ID} pri [PRI]
   2) no iphost { WAN_INDEX } vlan
View:
   GPON ONU view
Parameters:
    WAN_INDEX:WAN connection index value, ranging from 1 to 16
    VLAN_ID:WAN connected VLAN
    PRI:WAN connection 802.1P priority
Descriptions:
   The iphost vlan command configures the VOIP WAN connection VLAN and its
   priority.
   The no iphost vlan command deletes the VLAN configuration of the VOIP WAN
   connection.
Examples:
   Configure the VLAN of VOIP WAN connection 1 to be 100, the priority is 1:
   OLT(config-if-gpon-onu_0/1:1)# iphost 1 vlan 100 pri 1
Command:
   wan {WAN_INDEX} apply
View:
   GPON ONU view
Parameters:
    WAN_INDEX:WAN connection index value, ranging from 1 to 16
Descriptions:
   Apply WAN connection configuration. Only after apply, the WAN configuration takes
   effect.
Examples:
                                           156
                                GPON OLT CLI User Manual V2.1
Command:
   wifi intf {1-2} status {enable | disable}
View:
   GPON ONU view
Parameters:
    {1-2}:1is 2.4G WIFI, 2 is 5G WIFI
    enable:Turn on WIFI
    disable:Turn off WIFI
Descriptions:
   Turn on/off 2.4G/5G WIFI.
Examples:
   Turn on 2.4G WIFI
   Turn off 5G WIFI
   OLT(config-if-gpon-onu_0/1:1)# wifi intf 1 status enable
   OLT(config-if-gpon-onu_0/1:1)# wifi intf 2 status disable
Command:
   no wifi intf {1-2} status
View:
   GPON ONU view
Parameters:
    {1-2}:1 is 2.4G WIFI, 2 is 5G WIFI
Descriptions:
   Cancel omci control wifi function, users can freely turn off / turn on WIFI.
Examples:
   Cancel the control of 2.4G wifi function.
   OLT(config-if-gpon-onu_0/1:1)# no wifi intf 1 status
                                              157
                             GPON OLT CLI User Manual V2.1
Command:
   1) shutdown port catv {CATV_ID}
   2) no shutdown port catv { CATV_ID }
View:
   gpon-onu view
Parameters:
    CATV_ID:CATV ID
Descriptions:
   Shutdown port catv command to close the specified CATV;
   The no shutdown command turns on the specified CATV.
Examples:
   Turn on catv 1
   OLT(config-if-gpon-onu_0/1:1)# no shutdown port catv 1
Command:
   show onu catv-info
View:
   gpon-onu view
Parameters:
   None
Descriptions:
   View information of ONU CATV
Examples:
   OLT(config-if-gpon-onu_0/1:1)# show onu catv-info
                                          158
                              GPON OLT CLI User Manual V2.1
Command:
   sip agent add proxy-server {SERVER_IP} outbound-proxy {OUTBOUND_PROXY}
   registrar-server {REG_SERVER} domain-name {DOMAIN-NAME}
View:
   gpon-onu view
Parameters:
    SERVER_IP:server IP
    OUTBOUND_PROXY:outbound proxy
    REG_SERVER:registra server
    DOMAIN-NAME:domain name
Descriptions:
   Configure sip proxy related configuration.
Examples:
   OLT(config-if-gpon-onu_0/1:1)# sip agent add proxy-server 192.168.200.129
   outbound-proxy 192.168.200.129 registrar-server 192.168.200.129 domain-name
   192.168.200.129
Command:
   sip agent signal-port {SIGNAL_PORT} iphost {IPHOST}
View:
   gpon-onu view
Parameters:
    SIGNAL_PORT:IP server port number
    IPHOST:VOIP WAN 的 index
Descriptions:
   Bind the sip proxy server port number and WAN connection.
Examples:
   OLT(config-if-gpon-onu_0/1:1)# sip agent signal-port 5060 iphost 0
Command:
   sip user add 1 username {NAME} password {PASSWORD} telno {NUMBER}
View:
   gpon-onu view
Parameters:
    NAME:account name
                                           159
                             GPON OLT CLI User Manual V2.1
    PASSWORD:account password
    NUMBER:telephone number
Descriptions:
   Configure the SIP account number and phone number.
Examples:
   OLT(config-if-gpon-onu_0/1:1)# s sip user add 1 username 123456 password
   123456 telno 123456
160