aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJaco Kroon <jaco@uls.co.za>2024-07-01 16:50:33 +0200
committerJaco Kroon <jaco@uls.co.za>2024-07-01 16:51:25 +0200
commitbde6dd2ad5b393e351ae8fd8d89f3bec62e52914 (patch)
tree671d83331f7e5c2e56587b687fdbd455380c5284 /doc
parentAppend wireguard docs at net.example with arbitrary interface name example (diff)
downloadnetifrc-bde6dd2ad5b393e351ae8fd8d89f3bec62e52914.tar.gz
netifrc-bde6dd2ad5b393e351ae8fd8d89f3bec62e52914.tar.bz2
netifrc-bde6dd2ad5b393e351ae8fd8d89f3bec62e52914.zip
Implement ip-token(8) addressing for IPv6.
This enables setting ip-token(8) up during pre-up from a config variable ip6token_${IFVAR} to set up tokens to be used during SLAAC auto-configuration. Closes: https://bugs.gentoo.org/935280 Signed-off-by: Jaco Kroon <jaco@uls.co.za>
Diffstat (limited to 'doc')
-rw-r--r--doc/net.example.Linux.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/net.example.Linux.in b/doc/net.example.Linux.in
index 143dc9d..c117f4d 100644
--- a/doc/net.example.Linux.in
+++ b/doc/net.example.Linux.in
@@ -106,6 +106,16 @@
#config_eth0="192.168.0.2/24 scope host
#4321:0:1:2:3:4:567:89ab/64 nodad home preferred_lft 0"
+# Tokenized IPv6 addressing (as per ip-token(8)) is also possible. This will
+# grab the last 64 bits of the IP address below, and use that to auto-configure
+# IPv6 addresses, when using SLAAC. For example, given ::dead:beef below and an
+# advertised prefix of 100::/64 then Linux will configure an IPv6 address of
+# 100::dead:beef/64 on the interface. You can use "tail-end IPv4 addresses" too.
+#ip6token_eth0="::dead:beef"
+#ip6token_eth0="::192.168.0.1"
+#ip6token_eth0="::dead:beef:192.168.0.1"
+#ip6token_eth0="::ffff:192.168.0.1" # OK because the prefix won't be ::/64.
+
# Here's how to do routing if you need it
# We add an IPv4 default route, IPv4 subnet route and an IPv6 unicast route
#routes_eth0="default via 192.168.0.1