From: Yu Watanabe Date: Thu, 27 Jan 2022 20:25:47 +0000 (+0900) Subject: man: extend the DHCPv6-PD example and add a DHCPv4-6RD example X-Git-Tag: v251-rc1~439 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d45798257b7811d197d26587d847b015623c2b5a;p=thirdparty%2Fsystemd.git man: extend the DHCPv6-PD example and add a DHCPv4-6RD example --- diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 4f413946828..44be11de196 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -4410,22 +4410,48 @@ DHCP=yes - IPv6 Prefix Delegation + IPv6 Prefix Delegation (DHCPv6 PD) - # /etc/systemd/network/55-ipv6-pd-upstream.network + # /etc/systemd/network/55-dhcpv6-pd-upstream.network [Match] Name=enp1s0 [Network] -DHCP=ipv6 +DHCP=ipv6 + +# The below setting is optional, to also assign an address in the delegated prefix +# to the upstream interface. If not necessary, then comment out the line below and +# the [DHCPPrefixDelegation] section. +DHCPPrefixDelegation=yes + +# If the upstream network provides Router Advertisement with Managed bit set, +# then comment out the line below and WithoutRA= setting in the [DHCPv6] section. +IPv6AcceptRA=no + +[DHCPv6] +WithoutRA=solicit - # /etc/systemd/network/56-ipv6-pd-downstream.network +[DHCPPrefixDelegation] +UplinkInterface=:self +SubnetId=0 +Announce=no + + # /etc/systemd/network/55-dhcpv6-pd-downstream.network [Match] Name=enp2s0 [Network] +DHCPPrefixDelegation=yes IPv6SendRA=yes -DHCPPrefixDelegation=yes + +# It is expected that the host is acting as a router. So, usually it is not +# necessary to receive Router Advertisement from other hosts in the downstream network. +IPv6AcceptRA=no + +[DHCPPrefixDelegation] +UplinkInterface=enp1s0 +SubnetId=1 +Announce=yes This will enable DHCPv6-PD on the interface enp1s0 as an upstream interface where the DHCPv6 client is running and enp2s0 as a downstream interface where the prefix is delegated to. @@ -4433,6 +4459,46 @@ DHCPPrefixDelegation=yes + + IPv6 Prefix Delegation (DHCPv4 6RD) + + # /etc/systemd/network/55-dhcpv4-6rd-upstream.network +[Match] +Name=enp1s0 + +[Network] +DHCP=ipv4 + +# When DHCPv4-6RD is used, the upstream network does not support IPv6. +# Hence, it is not necessary to wait for Router Advertisement, which is enabled by default. +IPv6AcceptRA=no + +[DHCPv4] +Use6RD=yes + + # /etc/systemd/network/55-dhcpv4-6rd-downstream.network +[Match] +Name=enp2s0 + +[Network] +DHCPPrefixDelegation=yes +IPv6SendRA=yes + +# It is expected that the host is acting as a router. So, usually it is not +# necessary to receive Router Advertisement from other hosts in the downstream network. +IPv6AcceptRA=no + +[DHCPPrefixDelegation] +UplinkInterface=enp1s0 +SubnetId=1 +Announce=yes + + This will enable DHCPv4-6RD on the interface enp1s0 as an upstream interface where the + DHCPv4 client is running and enp2s0 as a downstream interface where the prefix is delegated to. + The delegated prefixes are distributed by IPv6 Router Advertisement on the downstream network. + + + A bridge with two enslaved links