< Home

Example for Configuring ALS

Networking Requirements

As shown in Figure 1, GigabitEthernet0/0/1 on SwitchA connects to GigabitEthernet0/0/1 on SwitchB through optical fibers.

When a link fails, the laser on the optical module is required to automatically stop sending pulses and recover pulse sending after the link is recovered.

Figure 1 Networking diagram for configuring ALS

Configuration Roadmap

The configuration roadmap is as follows:
  1. Enable ALS on the interface so that the laser automatically stops sending pulses when a link fails.

  2. Set the restart mode of the laser to automatic restart mode so that the laser sends pulses again after the link is recovered.

Procedure

  1. Configure ALS on the interface and the restart mode of the laser.

    # Enable ALS on GigabitEthernet0/0/1 of SwitchA and set the restart mode of the laser to automatic restart. By default, a laser works in automatic restart mode.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] interface gigabitethernet 0/0/1
    [SwitchA-GigabitEthernet0/0/1] als enable
    [SwitchA-GigabitEthernet0/0/1] undo als restart mode manual
    [SwitchA-GigabitEthernet0/0/1] return
    

    # Enable ALS on GigabitEthernet0/0/1 of SwitchB and set the restart mode of the laser to automatic restart. By default, a laser works in automatic restart mode.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchB
    [SwitchB] interface gigabitethernet 0/0/1
    [SwitchB-GigabitEthernet0/0/1] als enable
    [SwitchB-GigabitEthernet0/0/1] undo als restart mode manual
    [SwitchB-GigabitEthernet0/0/1] return
    

  2. Verify the configuration.

    # Check ALS configurations on interfaces of SwitchA and SwitchB.

    <SwitchA> display als configuration interface gigabitethernet 0/0/1
    -------------------------------------------------------------------------------
    Interface               ALS        Laser      Restart    Interval(s)   Width(s)
                            Status     Status     Mode
    -------------------------------------------------------------------------------
    GigabitEthernet0/0/1    Enable     On         Auto       100           2
    -------------------------------------------------------------------------------  
    
    <SwitchB> display als configuration interface gigabitethernet 0/0/1
    -------------------------------------------------------------------------------
    Interface               ALS        Laser      Restart    Interval(s)   Width(s)
                            Status     Status     Mode
    -------------------------------------------------------------------------------
    GigabitEthernet0/0/1    Enable     On         Auto       100           2
    -------------------------------------------------------------------------------  
    

Configuration file

  • SwitchA configuration file

    #
    sysname SwitchA
    #
    interface GigabitEthernet0/0/1
     als enable
    #
    return  
    
  • SwitchB configuration file

    #
    sysname SwitchB
    #
    interface GigabitEthernet0/0/1
     als enable
    #
    return  
    
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >