how to configure static ip in Proxmox VM


Active Member
Jul 25, 2019

I have a Proxmox installed server and I have internet in that with the network device eno1 and I can see Linux Bride with name vmbr0

I have created a VM now I don't have internet in that
How can I get internet in my VMs form base machine?
you need to configure it from inside the VM after assigning it to the bridge vmbr0

Thank you for the update

How can I assign VM to bridge vmbr0 ?
Do you have any sample configuration?
you need to assign it while creating the vm on the proxmox gui.

in the config file /etc/pve/qemu-server/VMID.conf, it looks like this for example:

net0: virtio=AA:BB:CC:DD:EE:FF,bridge=vmbr0,firewall=1

bridge=vmbr0 is the important part

after that just do the network config based on the distribution for example in /etc/network/interfaces or similar
  • Like
Reactions: Thundercat

It is almost same in the /etc/pve/qemu-server/VMID.conf

net0: virtio=C6:99:D8:2B:7D:ED,bridge=vmbr0,firewall=1

And I have configured /etc/network/interfaces as below

auto vmbr0
iface vmbr0 inet static
address [public ip]
gateway [gw ip]
bridge_ports eno1
bridge_stp off
bridge_fd 0

Any suggestion may be appreciated
i meant the /etc/network/interfaces inside the VM

that should just be a regular one without bridge

for static ip:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
   address [VM IP]
   netmask [netmask]
   gateway [GW IP]
  • Like
Reactions: mikeinnyc
thanks very much, i did again like written here from you.
now it runs with no further problems.

thanks a lot, really helpfull forum


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!