====== IP configuration: ifupdown ====== ifupdown is the classic debian way of configuring network. It is on its way out tho. Still works on Debian 12, but for example Raspian Bookworm and Debian Cloud Images have moved away from it. === Static Configuration === # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.21.2/24 gateway 192.168.21.1 iface eth0 inet6 static address fd18:76a0:3427:201::2/64 iface eth0 inet6 auto === IPv6: token or DHCP === iface eth1 inet6 dhcp #DHCPv6 === DHCPv4 DUID identifier === ''ifupdown'' sends ''dhclient -i'' Flag (use DHCPv6 DUID for v4) by default now. To revert backt to MAC-Address set following item in ''dhclient.conf'':((https://superuser.com/a/1553114)) send dhcp-client-identifier = hardware; or this option in ''/etc/network/interface'':((https://superuser.com/a/1648918)) iface eth0 inet dhcp client no ===== IPv6 Token ===== add token addr and fe80 with that number iface eth0 inet6 auto pre-up /sbin/ip token set ::40 dev eth0 up /sbin/ip -6 addr add fe80::40/64 dev eth0 ((token setup from [[https://medium.com/@xchewtoyx/token-ipv6-post-8ad39d645636]]))