Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RIP: Incorrect canceling interface passive status #18239

Open
2 tasks done
Shbinging opened this issue Feb 24, 2025 · 0 comments
Open
2 tasks done

RIP: Incorrect canceling interface passive status #18239

Shbinging opened this issue Feb 24, 2025 · 0 comments
Labels
triage Needs further investigation

Comments

@Shbinging
Copy link
Contributor

Shbinging commented Feb 24, 2025

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs further investigation
Projects
None yet
Development

No branches or pull requests

1 participant