You are not logged in.

#1 2022-02-19 20:06:08

Gulag_Jonny
Member
Registered: 2022-02-19
Posts: 2

issues adding ipv6 address

Greetings, I want to add an IPv6 address to my machine.

I'm using "NetworkManager",
------------------------------------------------------------------------------------
~ systemctl status NetworkManager
● NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
             └─NetworkManager-ovs.conf
     Active: active (running)
[...]
------------------------------------------------------------------------------------

and I have added the following rule to my iptables
------------------------------------------------------------------------------------
~ iptables -S | grep ipv6-icmp             
-A INPUT -p ipv6-icmp -j ACCEPT
------------------------------------------------------------------------------------

Unfortunately I don't get an IPv6 address and adding it manually was not successful either
------------------------------------------------------------------------------------
~ /sbin/ip -6 addr add <IPv6>/64 dev ens3
~ ip -6 route add <IPv6> dev ens3

~ ip a
[...]
inet6 <IPv6>/64 scope global noprefixroute                           # this is what bothers me :(
       valid_lft forever preferred_lft forever
[...]
------------------------------------------------------------------------------------

When I installed a Debian system, I worked fine with the IPv6 address.

Please don't be too hard on me, I'm pretty new to Linux so I might need an explanation for dummy :)
Thanks in advance

Offline

#2 2022-02-20 14:27:22

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,256

Re: issues adding ipv6 address

Usually you get ipv6 addresses from a dhcp server that runs somewhere in your network .

please post output of

$ ip address
$ ip -6 route

(run them as normal user.)
See https://wiki.archlinux.org/title/List_o … n_services for methods to upload text output as text somewhere.

Welcome to archlinux forums

Last edited by Lone_Wolf (2022-02-20 14:27:46)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-02-21 01:20:03

Gulag_Jonny
Member
Registered: 2022-02-19
Posts: 2

Re: issues adding ipv6 address

Thanks @Lone_Wolf for your effort to help. I tried to take some inspiration from archlinux-x86_64.iso, because there I get an IPv6 address via dhcp, but I didn't succeed.
I ended up configuring it statically as followed:

$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
<IPv4> archlinux
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
<IPv6>  archlinux

$ cat /etc/systemd/network/10-ens3.network 
[Match]
Name=ens3

[Network]
DHCP=ipv4
Address=<IPv6>/64
Gateway=172.31.1.1
Gateway=fe80::1

$ systemctl restart systemd-networkd

Maybe this will help someone who is facing the same problem as me.

Last edited by Gulag_Jonny (2022-02-21 01:20:54)

Offline

#4 2022-02-21 13:21:28

digitalone
Member
Registered: 2011-08-19
Posts: 355

Re: issues adding ipv6 address

I see you were using networkmanager. I use it on Gnome and the easy way to get an IPv6 is to enable DHCP in IPv6 section inside the connection graphical configuration. No need to enable systemd-networkd with static configuration.

If you have a router/modem from your internet service providing a public IPv6, you will get an address starting with 2xxx:. Otherwhise you should get an address starting with fxxx:, which is not public, but reserved for the local network.

To test if you have a public IPv6, thy this: https://ipv6-test.com/

Offline

Board footer

Powered by FluxBB