[GLLUG] Using IPv6 addresses with Debian

John Winters john at sinodun.org.uk
Fri Mar 12 11:31:22 UTC 2021

On 12/03/2021 10:58, Chris Bell via GLLUG wrote:
> On Friday, 12 March 2021 10:15:04 GMT John Winters via GLLUG wrote:
>> On a plain (headless) Raspbian system, what I did was to edit
>> /etc/dhcpcd.conf and added the following two lines at the end:
>> interface eth0
>> static ip6_address=2001:<more of it>:4001/64
>> That causes dhcpcd to allocate that one in addition to the one it
>> calculates from the MAC address.
> Thanks for the suggestion, which I will try, but I have had problems with even
> dhcpcd.conf on a raspberrypi. Systemd instructions go into great detail, but
> it still does not enable more than one IPv6 address per interface.

The stanza which I quoted above does exactly that:

john at pi4:~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet scope host lo
        valid_lft forever preferred_lft forever
     inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP 
group default qlen 1000
     link/ether dc:a6:32:03:9b:d9 brd ff:ff:ff:ff:ff:ff
     inet brd scope global dynamic 
noprefixroute eth0
        valid_lft 2039sec preferred_lft 1589sec
     inet6 2001:[XX:XX:XX]:ce85:59ad:e040:5f41/64 scope global dynamic 
mngtmpaddr noprefixroute
        valid_lft 2591974sec preferred_lft 604774sec
     inet6 2001:[XX:XX:XX]::4001/64 scope global noprefixroute
        valid_lft forever preferred_lft forever
     inet6 fe80::e55c:d17e:25cc:9cd2/64 scope link
        valid_lft forever preferred_lft forever
john at pi4:~ $ cat /etc/debian_version
john at pi4:~ $ uname -a
Linux pi4 5.4.79-v8+ #1373 SMP PREEMPT Mon Nov 23 13:32:41 GMT 2020 
aarch64 GNU/Linux
john at pi4:~ $


Xronos Scheduler - https://xronos.uk/
All your school's schedule information in one place.
Timetable, activities, homework, public events - the lot
Live demo at https://schedulerdemo.xronos.uk/

More information about the GLLUG mailing list