No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 12

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuration Examples

Configuration Examples

This section provides examples for the DLDP configuration, including networking requirements, configuration notes, and configuration roadmap.

Example for Configuring DLDP to Detect a Disconnected Optical Fiber Link

Networking Requirements

As shown in Figure 11-66, SwitchA and SwitchB are connected through a pair of optical fibers. On an optical fiber, Rx indicates the receive end, and Tx indicates the transmit end. The requirement is to detect unidirectional links.

Figure 11-66 Correct optical fiber connections
Configuration Roadmap
  1. Configure the interfaces on both ends to work in non-auto-negotiation mode.

  2. Enable DLDP to detect unidirectional links between SwitchA and SwitchB.

  3. Adjust DLDP parameters to detect unidirectional links more efficiently.

Procedure

  1. Enable DLDP globally.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*Switch ModuleA] commit
    [~Switch ModuleA] dldp enable
    [*Switch ModuleA] commit
    

  2. Enable DLDP on an interface of Switch ModuleA.

    [~Switch ModuleA] interface 10ge 1/17/1
    [~Switch ModuleA-10GE1/17/1] dldp enable
    [*Switch ModuleA-10GE1/17/1] commit
    [~Switch ModuleA-10GE1/17/1] quit

  3. Set the interval for sending Advertisement packets to 10 seconds on Switch ModuleA.

    [~Switch ModuleA] dldp interval 10
    [*Switch ModuleA] commit

  4. Set the timeout value of the DelayDown timer to 4 seconds on Switch ModuleA.

    [~Switch ModuleA] dldp delaydown-timer 4
    [*Switch ModuleA] commit

  5. Set the authentication mode of DLDP packets to sha password authentication and set the password to Huawei-123 on Switch ModuleA.

    [~Switch ModuleA] dldp authentication-mode sha Huawei-123
    [*Switch ModuleA] commit

    Perform steps 1 to 5 on Switch ModuleB.

  6. Verify the configuration.

    After the configuration is complete, run the display dldp command in the interface view. The command output shows that the DLDP status of the interface is advertisement.

    [*Switch ModuleA] display dldp
    DLDP global status              : enable 
    DLDP interval(s)                : 10
    DLDP work mode                  : enhance
    DLDP authentication mode        : sha
    DLDP authentication password    : ******
    DLDP unidirectional shutdown    : auto
    DLDP delaydown timer(s)         : 4
    The number of enabled ports     : 1
    The number of global neighbors  : 1
    
    Interface  10GE1/17/1
    DLDP port state                 : advertisement
    DLDP link state                 : up 
    The neighbor number of the port : 1
       Neighbor MAC address         : 0025-9e95-7c21                                
       Neighbor port index          : 80                                            
       Neighbor state               : two way                                       
       Neighbor aged time(s)        : 11                                            
       Neighbor created time        : 2012-06-09 15:09:25

    Simulate an optical fiber disconnection by removing the receive optical fiber from Switch ModuleA. DLDP automatically shuts down 10GE1/17/1 on Switch ModuleB when a unidirectional link occurs between Switch ModuleA and 10GE1/17/1 on Switch ModuleB.

    # Run the display dldp command on Switch ModuleA and Switch ModuleB. The command output shows that the DLDP status of 10GE1/17/1 on Switch ModuleA is inactive, and the DLDP status of 10GE1/17/1 on Switch ModuleB is inactive.

    [~Switch ModuleA] display dldp interface 10ge 1/17/1
    Interface  10GE1/17/1
    DLDP port state                 : inactive
    DLDP link state                 : down 
    The neighbor number of the port : 0
    [~Switch ModuleB] display dldp interface 10ge 1/17/1
    Interface  10GE1/17/1
    DLDP port state                 : inactive
    DLDP link state                 : down 
    The neighbor number of the port : 0

Configuration Files
  • Configuration file of Switch ModuleA

    #
    sysname SwitchA
    #
     dldp enable
     dldp interval 10
     dldp delaydown-timer 4
     dldp authentication-mode sha @%@%[l/E3}5]w#lVyvAR=ToF%"*i@%@%
    #
    interface 10GE1/17/1
     dldp enable
    #
    return
    
  • Configuration file of Switch ModuleB

    #
    sysname SwitchB
    #
     dldp enable
     dldp interval 10
     dldp delaydown-timer 4
     dldp authentication-mode sha @%@%[l/E3}5]w#lVyvAR=ToF%"*i@%@%
    #
    interface 10GE1/17/1
     dldp enable
    #
    return
    

Example for Configuring DLDP to Detect Intersected Fibers

Networking Requirements

As shown in Figure 11-67, SwitchA and SwitchB are connected through a pair of optical fibers. On an optical fiber, Rx indicates the receive end, and Tx indicates the transmit end. Optical fibers may be cross connected, as shown in Figure 11-68. The requirement is to detect unidirectional links caused by cross connections of optical fibers.

Figure 11-67 Correct optical fiber connections
Figure 11-68 Intersected fibers
Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure the interfaces on both ends to work in non-auto-negotiation mode.

  2. Enable DLDP to detect unidirectional links between SwitchA and SwitchB.

  3. Adjust DLDP parameters to detect unidirectional links more efficiently.

Procedure

  1. Enable DLDP globally on Switch ModuleA.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*Switch ModuleA] commit
    [~Switch ModuleA] dldp enable
    [*Switch ModuleA] commit
    

  2. Enable DLDP on an interface of Switch ModuleA.

    [~Switch ModuleA] interface 10ge 1/17/1
    [~Switch ModuleA-10GE1/17/1] dldp enable
    [*Switch ModuleA-10GE1/17/1] commit
    [~Switch ModuleA-10GE1/17/1] quit
    [~Switch ModuleA] interface 10ge 1/17/2
    [~Switch ModuleA-10GE1/17/2] dldp enable
    [*Switch ModuleA-10GE1/17/2] commit
    [~Switch ModuleA-10GE1/17/2] quit

  3. Set the interval for sending Advertisement packets to 10 seconds on Switch ModuleA.

    [~Switch ModuleA] dldp interval 10
    [*Switch ModuleA] commit

  4. Set the timeout value of the DelayDown timer to 4 seconds on Switch ModuleA.

    [~Switch ModuleA] dldp delaydown-timer 4
    [*Switch ModuleA] commit

  5. Set the authentication mode of DLDP packets to sha password authentication and set the password to Huawei-123 on Switch ModuleA.

    [~Switch ModuleA] dldp authentication-mode sha Huawei-123
    [*Switch ModuleA] commit

    Perform steps 1 to 6 on Switch ModuleB.

  6. Verify the configuration.

    After the configuration is complete, run the display dldp command in the interface view. The command output shows that the DLDP status of the interface is advertisement.

    [~Switch ModuleA] display dldp interface 10ge 1/17/1
    Interface 10GE1/17/1
     DLDP port state                 : advertisement
     DLDP link state                 : up 
     The neighbor number of the port : 1
        Neighbor MAC address         : 0001-0001-0001 
        Neighbor port index          : 26
        Neighbor state               : two way 
        Neighbor aged time(s)        : 206 
        Neighbor created time        : 2009/2/13 11:40:49
    [~Switch ModuleA] display dldp interface 10ge 1/17/2
    Interface 10GE 1/17/2
     DLDP port state                 : advertisement
     DLDP link state                 : up 
     The neighbor number of the port : 1
        Neighbor MAC address         : 0001-0001-0001
        Neighbor port index          : 28
        Neighbor state               : two way 
        Neighbor aged time(s)        : 188
        Neighbor created time        : 2009/2/13 11:40:49
    [~Switch ModuleB] display dldp interface 10ge 1/17/1
    Interface 10GE1/17/1
     DLDP port state                 : advertisement
     DLDP link state                 : up 
     The neighbor number of the port : 1
        Neighbor MAC address         : 781d-ba57-c24a 
        Neighbor port index          : 51
        Neighbor state               : two way 
        Neighbor aged time(s)        : 235
        Neighbor created time        : 2009/2/13 11:40:49
    [~Switch ModuleB] display dldp interface 10ge 1/17/2
    Interface 10GE 1/17/2
     DLDP port state                 : advertisement
     DLDP link state                 : up 
     The neighbor number of the port : 1
        Neighbor MAC address         : 781d-ba57-c24a
        Neighbor port index          : 53
        Neighbor state               : two way 
        Neighbor aged time(s)        : 214
        Neighbor created time        : 2009/2/13 11:40:49

    As shown in Figure 11-68, if a unidirectional link occurs between the interfaces on Switch ModuleA and Switch ModuleB due to cross connections of optical fibers, DLDP will shut down the interfaces.

    Run the display dldp command on Switch ModuleA and Switch ModuleB. The command output shows that the DLDP status of interfaces on Switch ModuleA and Switch ModuleB is disable.

    [~Switch ModuleA] display dldp interface 10ge 1/17/1
    Interface 10GE1/17/1
     DLDP port state                   : disable
     DLDP link state                   : up
     The neighbor number of the port is: 0
    [~Switch ModuleA] display dldp interface 10ge 1/17/2
    Interface 10GE1/17/2
     DLDP port state                   : disable
     DLDP link state                   : up
     The neighbor number of the port is: 0
    
    [~Switch ModuleB] display dldp interface 10ge 1/17/1
    Interface 10GE1/17/1
     DLDP port state                   : disable
     DLDP link state                   : up
     The neighbor number of the port is: 0
    [~Switch ModuleB] display dldp interface 10ge 1/17/2
    Interface 10GE1/17/2
     DLDP port state                   : disable
     DLDP link state                   : up
     The neighbor number of the port is: 0 

Configuration Files
  • Configuration file of Switch ModuleA

    #
    sysname SwitchA
    #
     dldp enable
     dldp interval 10
     dldp delaydown-timer 4
     dldp authentication-mode sha @%@%[l/E3}5]w#lVyvAR=ToF%"*i@%@%
    #
    interface 10GE1/17/1
     dldp enable
    #
    interface 10GE1/17/2
     dldp enable
    #
    return
    
  • Configuration file of Switch ModuleB

    #
    sysname SwitchB
    #
     dldp enable
     dldp interval 10
     dldp delaydown-timer 4
     dldp authentication-mode sha @%@%[l/E3}5]w#lVyvAR=ToF%"*i@%@%
    #
    interface 10GE1/17/1
     dldp enable
    #
    interface 10GE1/17/2
     dldp enable
    #
    return
    
Translation
Download
Updated: 2019-08-09

Document ID: EDOC1000041694

Views: 57967

Downloads: 3621

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next