Ruijie Community

Title: How to configure RLDP? [Print this page]

Author: GTAC-Daisy    Time: 2021-9-9 21:08
Title: How to configure RLDP?

The RLDP configuration guide is shown as below:

I. Requirements

Administrator wants to enable RLDP on edge ports on access switch to prevent loop

II. Configuration Tips

1. Enable RLDP globally

2. Configure RLDP on interfaces

3. Configure error recovery interval

III. Network Topology

                                               

IV. Configuration Steps

Configuring access switch :

Rujijie#configure terminal

Rujijie(config)#rldp enable   ------>enable RLDP globally

Rujijie(config)#interface range g0/1-24    ------> configure a range interfaces

Rujijie(config-if-range)#rldp port loop-detect shutdown-port ------>If RLDP detects a loop , RLDP shutdown this port

Rujijie(config-if-range)#exit

Rujijie(config)#errdisable recovery interval 300    ------> those ports  recover after 300s

Rujijie(config)#end

Rujijie#wr

Note

1) We suggest you to enable BPDU Guard and Portfast at the same time (you must enable STP first)

Rujijie#configure terminal

Ruijie(config)#spanning-tree

Ruijie(config)#interface range g0/1-24

Ruijie(config-if-range)#spanning-tree bpduguard enable

Ruijie(config-if-range)#spanning-tree portfast

Ruijie(config)#interface gigabitEthernet 0/25

Ruijie(config-if-GigabitEthernet 0/25)#spanning-tree bpdufilter enable

Ruijie(config-if-GigabitEthernet 0/25)#exit

Rujijie(config)#errdisable recovery interval 300

Rujijie(config)#end

Rujijie#wr

V. Verification

1. How to display RLDP status

2. System returns following messages when a loop occurs between ports G0/5 and G0/7

Rujijie#

*Mar 19 20:16:00: %RLDP-3-LINK_DETECT_ERROR: loop detection error detect on interface GigabitEthernet 0/7.set this interface errordisable!

*Mar 19 20:16:00: %RLDP-3-LINK_DETECT_ERROR: loop detection error detect on interface GigabitEthernet 0/5.set this interface errordisable!

Mar 19 20:16:01: %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN 1, changed state to down.

*Mar 19 20:16:02: %LINK-3-UPDOWN: Interface GigabitEthernet 0/5, changed state to down.

*Mar 19 20:16:02: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet 0/5, changed state to down.

*Mar 19 20:16:02: %LINK-3-UPDOWN: Interface GigabitEthernet 0/7, changed state to down.

*Mar 19 20:16:02: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet 0/7, changed state to down.



Author: ICT-infra    Time: 2023-10-20 19:00
Hi
In this example, both RLDP and spanning-tree bpduguard are enabled on all interface of the switch.

how about the below command? what does it mean in the configuration and how would it affect in the network.

Ruijie(config)#interface gigabitEthernet 0/25

Ruijie(config-if-GigabitEthernet 0/25)#spanning-tree bpdufilter enable




Currently, we have the following setup: RLDP is enabled on all switches, and we're planning to enable BPDU Guard and Portfast as suggested above. I'm uncertain about whether I should enable
'spanning-tree bpdufilter'
and, if so, on which port it should be enabled, or if it can be safely ignored






Author: GTAC-Jayden    Time: 2023-11-7 14:28
ICT-infra replied at 2023-10-20 19:00
Hi
In this example, both RLDP and spanning-tree bpduguard are enabled on all interface of the switch ...

Dear ICT-infra,

Spanning-tree bpdufilter enable is used to configure the port not to receive nor send BPDU packets, and the port will be in forwarding mode directly.
While the downlink ports are recommended to enable RLDP with BPDU Guard and Portfast, the command "spanning-tree bpdufilter enable" should be configured on the uplink port to prevent the STP packets from being sent to the uplink core switch and affecting the network.


Best regards,
Jayden





Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2