forked from systemd/systemd
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test-network: add one more test case for DHCP prefix delegation
For issue systemd#31349.
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
test/test-network/conf/25-dhcp6pd-upstream-no-assign.network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
[Match] | ||
Name=veth99 | ||
|
||
[Network] | ||
IPv6PrivacyExtensions=yes | ||
IPv6AcceptRA=no | ||
DHCP=ipv6 | ||
DHCPPrefixDelegation=yes | ||
|
||
[DHCPv6] | ||
WithoutRA=solicit | ||
|
||
[DHCPPrefixDelegation] | ||
UplinkInterface=:self | ||
SubnetId=10 | ||
Announce=no | ||
Token=eui64 | ||
Token=::1a:2b:3c:4d | ||
Assign=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
default-lease-time 2592000; | ||
preferred-lifetime 604800; | ||
|
||
option dhcp-renewal-time 3600; | ||
option dhcp-rebinding-time 7200; | ||
|
||
# Enable RFC 5007 support (same than for DHCPv4) | ||
allow leasequery; | ||
|
||
option dhcp6.name-servers 3ffe:501:ffff:100:200:ff:fe00:3f3e; | ||
option dhcp6.domain-search "test.example.com","example.com"; | ||
|
||
option dhcp6.info-refresh-time 21600; | ||
|
||
subnet6 3ffe:501:ffff:100::/64 { | ||
# Some /64 prefixes available for Prefix Delegation (RFC 3633) | ||
prefix6 3ffe:501:ffff:200:: 3ffe:501:ffff:f00:: /56; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters