Project

General

Profile

Actions

Feature #11103

closed

Use virtual link local IP address as RA source address for HA environments

Added by znerol znerol about 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
IPv6 Router Advertisements (radvd/rtsold)
Target version:
Start date:
11/25/2020
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
21.05
Release Notes:
Default

Description

If radvd is configured with RA interface set to a virtual link local IP, then add it to AdvRASrcAddress in radvd.conf. This ensures that the virtual IP is advertised as the gateway address to clients.

More background:

Related issues

Related to Regression #12582: RADVD can be started on both HA nodes when configured with an IPv6 link-local addressResolvedViktor Gurov

Actions
Actions #1

Updated by znerol znerol about 4 years ago

Filed PR: https://github.com/pfsense/pfsense/pull/4487

Instructions for testing this feature:

  • Setup HA cluster with primary and fallback
  • Setup a IPv6 link-local VIP on the LAN interface, e.g.: fe80::1:1
  • Configure the link-local VIP as the RA Interface on primary and fallback hosts

Observe that:

  • radvd.conf is present with a configuration section for the LAN interface on both machines (primary and fallback)
  • radvd.conf includes an AdvRASrcAddress section
  • RA packets are sent by the primary host with the VIP as source address, no RA packets are sent by the fallback host.
  • RA packets are sent by the fallback host with the VIP as source address as soon as the VIP switches over to the fallback host. No RA packets are sent by the primary host.
  • Default route on client machines stays the same regardless whether the VIP is currently on primary or fallback host.
Actions #2

Updated by Jim Pingle about 4 years ago

  • Status changed from New to Pull Request Review
  • Target version set to CE-Next
Actions #3

Updated by Renato Botelho almost 4 years ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Renato Botelho

PR has been merged. Thanks!

Actions #4

Updated by znerol znerol almost 4 years ago

Thanks for merging. I just opened a PR for a small followup:

https://github.com/pfsense/pfsense/pull/4502

Sorry that I did not notice that earlier.

Actions #5

Updated by Renato Botelho almost 4 years ago

MErged. Thanks!

Actions #6

Updated by znerol znerol over 3 years ago

Found another thing I've missed before:
https://github.com/pfsense/pfsense/pull/4515

Actions #7

Updated by Jim Pingle over 3 years ago

  • Status changed from Feedback to Pull Request Review
  • Target version changed from CE-Next to 2.6.0
Actions #8

Updated by Jim Pingle over 3 years ago

  • Plus Target Version set to 21.05
Actions #9

Updated by Anonymous over 3 years ago

  • Status changed from Pull Request Review to Feedback
Actions #10

Updated by Jim Pingle over 3 years ago

  • Subject changed from radvd: use virtual link local IP as source address in HA setups to Use virtual link local IP address as RA source address for HA environments

Updating subject for release notes.

Actions #11

Updated by Viktor Gurov over 3 years ago

  • Status changed from Feedback to Resolved

works as expected on 21.05.r.20210526.1807

`AdvRASrcAddress` in `/var/etc/radvd.conf`:

# Automatically Generated, do not edit
# Generated for DHCPv6 Server lan
interface vtnet0 {
    AdvSendAdvert on;
    AdvRASrcAddress {
        fe80:88::7272;
    };
    MinRtrAdvInterval 5;
    MaxRtrAdvInterval 20;
    AdvDefaultLifetime 60;
    AdvLinkMTU 1500;
    AdvDefaultPreference medium;
    AdvManagedFlag on;
    AdvOtherConfigFlag on;
    prefix fc00:88::/64 {
        DeprecatePrefix off;
        AdvOnLink on;
        AdvAutonomous on;
        AdvValidLifetime 86400;
        AdvPreferredLifetime 14400;
    };
    route ::/0 {
        AdvRoutePreference medium;
        RemoveRoute off;
    };
    RDNSS fc00:88::72 {
        AdvRDNSSLifetime 60;
    };
    DNSSL home.arpa  { };
};

it's better to hide non-linklocal VIPs from the dropdown menu, but this is not critical

Actions #12

Updated by Jim Pingle over 3 years ago

  • Target version changed from 2.6.0 to 2.5.2
Actions #13

Updated by Viktor Gurov about 3 years ago

  • Related to Regression #12582: RADVD can be started on both HA nodes when configured with an IPv6 link-local address added
Actions

Also available in: Atom PDF