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

IPv6 address autoconf 'create-global-addresses true' does not bite #136

Closed
jovatn opened this issue Sep 13, 2023 · 1 comment · Fixed by #139
Closed

IPv6 address autoconf 'create-global-addresses true' does not bite #136

jovatn opened this issue Sep 13, 2023 · 1 comment · Fixed by #139
Milestone

Comments

@jovatn
Copy link
Contributor

jovatn commented Sep 13, 2023

The yang/cli setting for autoconfiguring global addresses does not seem to bite.
I.e., the following will not give me a global address even when receiving router advertisements on eth0

root@infix-00-00-00:/config/> set interfaces interface eth0 ipv6 autoconf create-global-addresses true

A look in proc shows the following.

root@infix-00-00-00:~$ cat /proc/sys/net/ipv6/conf/eth0/autoconf 
0

Flipping it to "1" and taking eth0 down/up will give me the global address

root@infix-00-00-00:~$ echo 1 > /proc/sys/net/ipv6/conf/eth0/autoconf 
root@infix-00-00-00:~$ ip link set down dev eth0
root@infix-00-00-00:~$ ip link set up dev eth0
root@infix-00-00-00:~$ ip a show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 02:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
    inet6 2001:db8:0:1:0:ff:fe00:0/64 scope global dynamic mngtmpaddr               <=======
       valid_lft 86399sec preferred_lft 14399sec
    inet6 fe80::ff:fe00:0/64 scope link 
       valid_lft forever preferred_lft forever
root@infix-00-00-00:~$ 

In this case I had a router advertising prefix 2001:db8:0:1::/64

linux-router # cat /etc/radvd.conf 
interface tap-infix
       {
               AdvSendAdvert on;
               prefix 2001:db8:0:1::/64
               {
                       AdvOnLink on;
                       AdvAutonomous on;
               };
       };

linux-router #
@troglobit
Copy link
Contributor

Awesome report, thank you for taking the time to report it! I've noticed this myself but didn't put as much time into isolating it as you did. This will really save us a lot of time and help construct a Python regression test!

@troglobit troglobit added this to the Infix v23.09 milestone Sep 13, 2023
troglobit added a commit that referenced this issue Sep 18, 2023
 - Enable privacy feature, allows true random address instead of EUI64
 - Allow global addresses to use router prefix

Fixes #136

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@wkz wkz closed this as completed in #139 Sep 21, 2023
wkz pushed a commit that referenced this issue Sep 21, 2023
 - Enable privacy feature, allows true random address instead of EUI64
 - Allow global addresses to use router prefix

Fixes #136

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants