Skip to content

Instantly share code, notes, and snippets.

@Dragod
Last active May 6, 2022 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dragod/52b76773d13fd26fb32a59d68d6b12e2 to your computer and use it in GitHub Desktop.
Save Dragod/52b76773d13fd26fb32a59d68d6b12e2 to your computer and use it in GitHub Desktop.
Proxmox network config
#etc/network/interfaces
auto lo
iface lo inet loopback
auto enp4s0
iface enp4s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.0.11/24
gateway 192.168.0.1
bridge-ports enp4s0
bridge-stp off
bridge-fd 0
iface wlp3s0 inet manual
@Dragod
Copy link
Author

Dragod commented Apr 23, 2022

NOTE

Sometimes when proxmox reboot it does change the network interface Ex: from enp4s0 to enp3s0 so the network will stop working completely.

How to fix it:

  • Check that etc/network/interfaces do not contains errors by using ifup vmbr0 on the command line
  • Check network interfaces with ls /sys/class/net, it should give you all the current interfaces. Update the file etc/network/interfaces with the new bridge ex: enp3s0
  • Another command could be hwinfo --short --network

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