I am trying to install Ubuntu on a newly created VM but I can't get the network to autoconfigure during installation. I have tried manual config and nothing I've tried works. I've spent hours on this and can't get it down. I'm doing this on a Hetzner dedi. I've read their guide on it, but can't figure it out.
In /etc/sysctl.conf I have commented out the two lines of "net.ipv4.ip_forward=1 " & "net.ipv6.conf.all.forwarding=1".
/etc/network/interfaces: (I've changed sensitive values)
In /etc/sysctl.conf I have commented out the two lines of "net.ipv4.ip_forward=1 " & "net.ipv6.conf.all.forwarding=1".
/etc/network/interfaces: (I've changed sensitive values)
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp0s31f6
iface enp0s31f6 inet static
address <SERVER_IP>
netmask 255.255.255.192
gateway <SERVER_IP_GATEWAY>
post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp
iface enp0s31f6 inet6 static
address 2a01:7s9:13a:3306::2
netmask 64
gateway fe80::1
up sysctl -p
auto vmbr1
iface vmbr1 inet static
address <UNUSED_SUBNET_IP>
netmask 255.255.255.248
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward