Patrick Coleman <blin...@gmail.com> wrote:
> Ok, the following should fix this. It's a little more involved; here's
> what's new:
> - Avoid sending LSAs if the link state is down (to avoid
> double-advertising CARP interfaces). OSPFd does this a little more
> elegantly using metrics[1], but I wasn't able to get that to work,
> perhaps I'm not understanding the protocol. Suggestions appreciated.
> - Don't send LSAs if the interface is down (ifconfig carp1 down),
> because that's silly
> - Make the OSPF engine update the RDE about interface changes even
> when the interface state does not change, so the RDE is informed when
> a passive interface's link state changes (so we can then make a
> decision using that data)
> - Resend intra-area LSAs in the RDE when interface flags change, not
> just interface state (avoids a race condition where LSAs get sent
> before the OSPF engine updates the RDE with new linkstate data)


Initial testing looks good.

With your first patch:
Cisco# show ipv6 route 2001:dead:5:7357::13
IPv6 Routing Table - 23 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
O   2001:DEAD:5:7357::/64 [110/10]
     via FE80::214:22FF:FE73:466B, GigabitEthernet2/1
     via FE80::214:22FF:FE73:44A3, GigabitEthernet2/1

Now:
Cisco# show ipv6 route 2001:dead:5:7357::13
IPv6 Routing Table - 23 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
O   2001:DEAD:5:7357::/64 [110/10]
     via FE80::214:22FF:FE73:466B, GigabitEthernet2/1

And then lets shift the CARP:
Cisco# show ipv6 route 2001:dead:5:7357::13
IPv6 Routing Table - 23 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
O   2001:DEAD:5:7357::/64 [110/10]
     via FE80::214:22FF:FE73:44A3, GigabitEthernet2/1

I will do some more testing.

Reply via email to