wer hilft mir meine /etc/network/interfaces mit 3 Netzwerk-Einträgen für eth0, eth0:1 und wg0 in eine zeitgemäße Variante mit 3 einzelnen Netzwerk-Devices in /etc/network/interface.d/ zu verwandeln?
Habe es versucht ... ist mir nicht gelungen:
Code: Alles auswählen
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 10.0.0.104
netmask 255.255.255.0
network 10.0.0.0
gateway 10.0.0.1
broadcast 10.0.0.255
auto eth0:1
iface eth0:1 inet static
address 10.0.0.102
netmask 255.255.255.0
network 10.0.0.0
gateway 10.0.0.1
broadcast 10.0.0.255
# indicate that wg0 should be created when the system boots, and on ifup -a
auto wg0
# describe wg0 as an IPv4 interface with static address
iface wg0 inet static
# static IP address
address 10.0.2.1/24
#address 192.168.2.1/24
# before ifup, create the device with this ip link command
pre-up ip link add $IFACE type wireguard
# before ifup, set the WireGuard config from earlier
pre-up wg setconf $IFACE /etc/wireguard/$IFACE.conf
# after ifdown, destroy the wg0 interface
post-down ip link del $IFACE
Eckard