IPv6-subnets with systemd-networkd
up vote
1
down vote
favorite
My new ISP gives me a public IPv6 address with a /56 prefix to play around:
2001:b:c:d:5:6:7:8/56
I would like to create two subnets divided by a linux server like this:
internet - fritzbox - server - pc
But I need to understand how to propagate a prefix to the internal subnet. So far, I configured the external interface of my server to accept router advertisments and request an IPv6 prefix from the Fritz!Box:
/etc/systemd/network/eth1.network
[Match]
Name=eth1
[Network]
DHCP=ipv6
IPv6AcceptRA=yes
IPv6PrefixDelegation=dhcpv6
IPForward=yes
After a systemctl restart systemd-networkd the externel interface gets an address:
ip -6 addr
...
inet6 2001:b:e:f:1:2:3:4/64 scope global noprefixroute dynamic
Is this correct so far? Also confusing: The prefix of the internet connection and of the interface differ in the second half:
internet: 2001:b:c:d::
server: 2001:b:e:f::
Now the main question: How do I configure the internal interface? Can it request another prefix from the Fritz!Box?
/etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
???
My server is running Debian stretch with systemd 239 from stretch-backports (because 232 in stable does not yet support prefix delegation). I removed the ifupdown package because my goal is to learn how to solve this with systemd-networkd only.
ipv6 router systemd-networkd
add a comment |
up vote
1
down vote
favorite
My new ISP gives me a public IPv6 address with a /56 prefix to play around:
2001:b:c:d:5:6:7:8/56
I would like to create two subnets divided by a linux server like this:
internet - fritzbox - server - pc
But I need to understand how to propagate a prefix to the internal subnet. So far, I configured the external interface of my server to accept router advertisments and request an IPv6 prefix from the Fritz!Box:
/etc/systemd/network/eth1.network
[Match]
Name=eth1
[Network]
DHCP=ipv6
IPv6AcceptRA=yes
IPv6PrefixDelegation=dhcpv6
IPForward=yes
After a systemctl restart systemd-networkd the externel interface gets an address:
ip -6 addr
...
inet6 2001:b:e:f:1:2:3:4/64 scope global noprefixroute dynamic
Is this correct so far? Also confusing: The prefix of the internet connection and of the interface differ in the second half:
internet: 2001:b:c:d::
server: 2001:b:e:f::
Now the main question: How do I configure the internal interface? Can it request another prefix from the Fritz!Box?
/etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
???
My server is running Debian stretch with systemd 239 from stretch-backports (because 232 in stable does not yet support prefix delegation). I removed the ifupdown package because my goal is to learn how to solve this with systemd-networkd only.
ipv6 router systemd-networkd
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
My new ISP gives me a public IPv6 address with a /56 prefix to play around:
2001:b:c:d:5:6:7:8/56
I would like to create two subnets divided by a linux server like this:
internet - fritzbox - server - pc
But I need to understand how to propagate a prefix to the internal subnet. So far, I configured the external interface of my server to accept router advertisments and request an IPv6 prefix from the Fritz!Box:
/etc/systemd/network/eth1.network
[Match]
Name=eth1
[Network]
DHCP=ipv6
IPv6AcceptRA=yes
IPv6PrefixDelegation=dhcpv6
IPForward=yes
After a systemctl restart systemd-networkd the externel interface gets an address:
ip -6 addr
...
inet6 2001:b:e:f:1:2:3:4/64 scope global noprefixroute dynamic
Is this correct so far? Also confusing: The prefix of the internet connection and of the interface differ in the second half:
internet: 2001:b:c:d::
server: 2001:b:e:f::
Now the main question: How do I configure the internal interface? Can it request another prefix from the Fritz!Box?
/etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
???
My server is running Debian stretch with systemd 239 from stretch-backports (because 232 in stable does not yet support prefix delegation). I removed the ifupdown package because my goal is to learn how to solve this with systemd-networkd only.
ipv6 router systemd-networkd
My new ISP gives me a public IPv6 address with a /56 prefix to play around:
2001:b:c:d:5:6:7:8/56
I would like to create two subnets divided by a linux server like this:
internet - fritzbox - server - pc
But I need to understand how to propagate a prefix to the internal subnet. So far, I configured the external interface of my server to accept router advertisments and request an IPv6 prefix from the Fritz!Box:
/etc/systemd/network/eth1.network
[Match]
Name=eth1
[Network]
DHCP=ipv6
IPv6AcceptRA=yes
IPv6PrefixDelegation=dhcpv6
IPForward=yes
After a systemctl restart systemd-networkd the externel interface gets an address:
ip -6 addr
...
inet6 2001:b:e:f:1:2:3:4/64 scope global noprefixroute dynamic
Is this correct so far? Also confusing: The prefix of the internet connection and of the interface differ in the second half:
internet: 2001:b:c:d::
server: 2001:b:e:f::
Now the main question: How do I configure the internal interface? Can it request another prefix from the Fritz!Box?
/etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
???
My server is running Debian stretch with systemd 239 from stretch-backports (because 232 in stable does not yet support prefix delegation). I removed the ifupdown package because my goal is to learn how to solve this with systemd-networkd only.
ipv6 router systemd-networkd
ipv6 router systemd-networkd
edited 2 days ago
asked Dec 4 at 17:34
Frank
1485
1485
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f485956%2fipv6-subnets-with-systemd-networkd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown