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

radvd only sends a router lifetime of 0 #206

Closed
Colum31 opened this issue Feb 28, 2023 · 3 comments
Closed

radvd only sends a router lifetime of 0 #206

Colum31 opened this issue Feb 28, 2023 · 3 comments

Comments

@Colum31
Copy link

Colum31 commented Feb 28, 2023

Hello,

with my config:

interface ipoe.666 
{
	
    AdvDefaultLifetime 1800;
    MaxRtrAdvInterval 60;
    MinRtrAdvInterval 30;
    AdvSendAdvert on;
    AdvRASolicitedUnicast on;
	
    AdvSendAdvert on;
    AdvManagedFlag on;
    AdvOtherConfigFlag on;

    prefix 2001:db8:1234:8000::/64
    {
        AdvOnLink on;
        AdvAutonomous off;
        AdvRouterAddr off;
    };
};

all RA have a router lifetime of 0. It does not matter which values I plug into AdvDefaultLifetime.

Is this a bug or am I missing something?

I have built radvd from source:

Version: 2.19

Compiled in settings:
default config file "/etc/radvd.conf"
default pidfile "/var/run/radvd.pid"
default logfile "/var/log/radvd.log"
default syslog facility 24

@robbat2
Copy link
Member

robbat2 commented Mar 1, 2023

Can you please include the output of ip -6 addr (mask out the first 4-6 octets of your non-fe80 addresses for privacy.

Also, are you sure that /proc/sys/net/ipv6/conf/all/forwarding or per-interface variable is enabled?

@Neustradamus
Copy link
Member

@Colum31: Have you seen the @robbat2 comment from 2023-03-01?

@robbat2
Copy link
Member

robbat2 commented Dec 30, 2024

Cannot reproduce. I suspect your system may have a dynamic address with a lower lifetime, causing what you observed.

Using your config, minor tweaks to dummy0 & 2001:db8::/64:

tcpdump: listening on dummy0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
e2:6a:7a:f5:2c:42 > 33:33:00:00:00:01, ethertype IPv6 (0x86dd), length 110: (flowlabel 0x417d0, hlim 255, next-header ICMPv6 (58) payload length: 56) fe80::e06a:7aff:fef5:2c42 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 56
	hop limit 64, Flags [managed, other stateful], pref medium, router lifetime 1800s, reachable time 0ms, retrans timer 0ms
	   prefix info option (3), length 32 (4): 2001:db8::/64, Flags [onlink], valid time 86400s, pref. time 14400s
	     0x0000:  4080 0001 5180 0000 3840 0000 0000 2001
	     0x0010:  0db8 0000 0000 0000 0000 0000 0000
	   source link-address option (1), length 8 (1): e2:6a:7a:f5:2c:42
	     0x0000:  e26a 7af5 2c42

@robbat2 robbat2 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants