41Enabling DLDPTo properly configure DLDP on the device, first enable DLDP globally, and then enable it on each port.To enable DLDP:Step Command Remarks1. Enter system view. system-view N/A2. Enable DLDP globally. dldp enable Globally disabled by default.3. Enter Layer 2 Ethernetinterface view or port groupview.Enter Layer 2 Ethernetinterface view:interface interface-typeinterface-numberEnter port group view:port-group manualport-group-nameUse either approach.Configurations made in Layer 2 Ethernetinterface view apply to the current port only.Configurations made in port group viewapply to all ports in the port group.4. Enable DLDP. dldp enable Disabled on a port by default.NOTE:• DLDP takes effect only on Ethernet interfaces (fiber or copper).• DLDP can detect unidirectional links only after all physical links are connected. Therefore, beforeenabling DLDP, make sure that optical fibers or copper twisted pairs are connected.Setting DLDP modeDLDP operates in normal or enhanced mode.In normal mode, DLDP does not actively detect neighbors when the corresponding neighbor entries ageout.In enhanced mode, DLDP actively detects neighbors when the corresponding neighbor entries age out.To set DLDP mode:Step Command Remarks1. Enter system view. system-view N/A2. Set DLDP mode. dldp work-mode { enhance | normal } Optional.Normal by default.Setting the interval to send advertisement packetsDLDP detects unidirectional links by sending Advertisement packets. To make sure that DLDP can detectunidirectional links promptly without affecting network performance, set the advertisement intervalappropriately depending on your network environment. The interval should be set shorter than one thirdof the STP convergence time. If the interval is too long, STP loops may occur before unidirectional linksare detected and shut down. If the interval is too short, the number of advertisement packets will increase.H3C recommends that you use the default interval in most cases.