Skip to content

RIP: Incorrect canceling interface passive status #18239

Open
@Shbinging

Description

@Shbinging

Description

When we configure RIP protocol with the following configuration

int r1-eth0
  ip address  XXXX

router rip
  network r1-eth0
  passive-interface default
  passive-interface r1-eth0
  no passive-interface default

The running-config is as following, which is wrong

int r1-eth0 
  ip address  XXXX
router rip
   network r1-eth0

The no passive-interface default will also cancling passive-interface r1-eth0, leaving all interfaces active, which is an unexpected behavior as the r1-eth0 is explicitly marked as passive. If we want to set r1-eth0 active, we should use an explicit command no passive-interface r1-eth0.

The right running-config should be

int r1-eth0...
  ip address XXX
router rip
  passive-interface r1-eth0

This behavior should be same as those in other protocols such as OSPF. For example,

int r1-eth0
  ip address XXX
  ip ospf passive
  ip ospf area 1
router ospf  
  passive interface default
  no passive interface default

The running-configuration is

int r1-eth0
  ip address XXX
  ip ospf passive
router ospf

Here the no passive interface default command only cancles passive interface default command, leaving ip ospf passive alive

Version

10.3

How to reproduce

Input

router rip
  passive-interface default
  passive-interface r1-eth0
  no passive-interface default

Expected behavior

show running-config

router rip
  passive-interface r1-eth0

Actual behavior

show running-config

router rip

Additional context

No response

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds further investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions