Benutzer-Werkzeuge

Webseiten-Werkzeuge


knowledge_base:linux:ipconfig:ifupdown

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
knowledge_base:linux:ipconfig:ifupdown [2025/02/19 14:50] – gelöscht - Externe Bearbeitung (Unknown date) 127.0.0.1knowledge_base:linux:ipconfig:ifupdown [2025/02/19 14:50] (aktuell) – ↷ Seite von knowledge_base:linux:staticip nach knowledge_base:linux:ipconfig:ifupdown verschoben und umbenannt julian.lemmerich
Zeile 1: Zeile 1:
 +====== 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 ===
 +
 +<file . /etc/network/interfaces>
 +# 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
 +</file>
 +
 +=== IPv6: token or DHCP ===
 +
 +<file bash /etc/network/interfaces>
 +iface eth1 inet6 dhcp #DHCPv6
 +</file>
 +
 +=== 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))
 +
 +<file . /etc/dhcp/dhclient.conf>
 +send dhcp-client-identifier = hardware;
 +</file>
 +
 +or this option in ''/etc/network/interface'':((https://superuser.com/a/1648918))
 +
 +<file . /etc/network/interfaces>
 +iface eth0 inet dhcp
 +    client no
 +</file>
 +
 +===== IPv6 Token =====
 +
 +add token addr and fe80 with that number
 +
 +<file . /etc/network/interfaces>
 +iface eth0 inet6 auto
 +        pre-up /sbin/ip token set ::40 dev eth0
 +        up /sbin/ip -6 addr add fe80::40/64 dev eth0
 +</file>
 +((token setup from [[https://medium.com/@xchewtoyx/token-ipv6-post-8ad39d645636]]))