You are not logged in.

#1 2020-05-14 10:42:15

Serabob
Member
From: Deutschland
Registered: 2020-03-15
Posts: 3

systemd-networkd ipv6 Prefix delegation

Currently i am trying to get ipv6 working in my home-network.

I have the following setup :

ISP Router <--> My Router <--> home network

On my router runs dnsmasq for dns and dhcp with a simple iptable ruleset which is working for ipv4 (NAT) and i also want to get ipv6 working.

systemd-networkd is used for ipconfig on the Router : 
/etc/systemd/network/20-WAN.network:

[Match]
Name=WAN
[Network]
DHCP=yes

/etc/systemd/network/80-LAN.network

[Match]
Name=LAN
[Network]
Address=192.168.11.1/24
IPv6PrefixDelegation=dhcpv6

which should enable IPv6 Prefix Delegation on the interface WAN ( interface which is connected to the isp Router )  and result in an ipv6 adress on the LAN interface. But there is no ipv6 adress which is nonloca on the LAN interface :

# ip -6 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: WAN: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 2a02:908:eb44:4140:8616:f9ff:fe03:4c4/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 172800sec preferred_lft 86400sec
    inet6 fe80::8616:f9ff:fe03:4c4/64 scope link 
       valid_lft forever preferred_lft forever
3: LAN: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 fe80::be5f:f4ff:fe04:c033/64 scope link 
       valid_lft forever preferred_lft forever

how can i receive ipv6 addresses on both my WAN interface and my LAN interface ? or is it not possible with the fixed ipv4 nat setup.

Thanks in advance

Last edited by Serabob (2020-05-14 10:43:09)

Offline

#2 2020-05-14 13:28:57

Serabob
Member
From: Deutschland
Registered: 2020-03-15
Posts: 3

Re: systemd-networkd ipv6 Prefix delegation

I have to read more about this as the router is already delegating ...

Last edited by Serabob (2020-05-14 13:34:03)

Offline

Board footer

Powered by FluxBB