Skip to content

Instantly share code, notes, and snippets.

@portothree
Created November 3, 2021 16:39
Show Gist options
  • Select an option

  • Save portothree/3de08c3cb24683879f6bc172493cb16d to your computer and use it in GitHub Desktop.

Select an option

Save portothree/3de08c3cb24683879f6bc172493cb16d to your computer and use it in GitHub Desktop.
Ubuntu Proxmox VM network

Ubuntu 16.04

ip add

vi /etc/network/interfaces

auto ens18
iface ens18 inet static
address 128.204.192.xxx
netmask 255.255.255.0
gateway 128.204.192.1
dns-nameservers 89.207.128.252 89.207.130.252

ip link set ens18 up systemctl restart networking

Ubuntu 18.04/20.04

ip add

vi /etc/netplan/01-netcfg.yaml

network:
  version: 2
  renderer: networkd
  ethernets:
    ens18:
      dhcp4: no
      addresses: [128.204.192.xxx/24]
      gateway4: 128.204.192.1
      nameservers:
        addresses: [89.207.128.252,89.207.130.252]
      dhcp6: no

netplan apply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment