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

OSPFD is not taking linux secondary IP #4299

Open
ghost opened this issue May 9, 2019 · 0 comments
Open

OSPFD is not taking linux secondary IP #4299

ghost opened this issue May 9, 2019 · 0 comments
Assignees
Labels
ospf triage Needs further investigation

Comments

@ghost
Copy link

ghost commented May 9, 2019

I use the following configuration with FRRouting for OSPFv2, the IP address 172.16.0.1 is a secondary IP added by vrrpd, the ospfd daemon does not add the Stub network to OSPF but if I use it as the primary IP is working as expected.

hostname PC2

router ospf
  ospf router-id 10.0.0.2
  passive-interface eth0

interface vpn0
  ip ospf area 0

interface eth0
  ip ospf area 0 172.16.0.1

log file /var/log/frr/ospfd.log

Linux shows the address as follow:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    inet 172.16.0.2/24 scope global eth0
       valid_lft forever preferred_lft forever
    inet 172.16.0.1/24 scope global secondary eth0
       valid_lft forever preferred_lft forever

[X ] Did you check if this is a duplicate issue?
[ ] Did you test it on the latest FRRouting/frr master branch?

Expected behavior
Add the network of the specified address (172.16.0.1) to OSPF when the selected IP is secondary.

  • OS Kernel: Linux 4.9.32
  • FRR Version 6.0.2

The secondary IP is shown if I do show interface eth0

PC2# show interface eth0
Interface eth0 is up, line protocol is up
  Link ups:       0    last: (never)
  Link downs:     0    last: (never)
  vrf: Default-IP-Routing-Table
  index 2 metric 0 mtu 1500 speed 1000 
  flags: <UP,BROADCAST,RUNNING,MULTICAST>
  Type: Ethernet
  HWaddr: xx:xx:xx:xx:xx:xx
  inet 172.16.0.2/24
  inet 172.16.0.1/24 secondary
  inet6 fe80::xxx:xxx:xxxx:xxxx/64
  Interface Type Other

Thanks

@ghost ghost added the triage Needs further investigation label May 9, 2019
@qlyoung qlyoung added the ospf label May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ospf triage Needs further investigation
Projects
None yet
Development

No branches or pull requests

2 participants