No Internet on VM

KeithHetzner

New Member
Oct 2, 2018
1
0
1
40
I've just installed proxmox for the 10th time and I am unable to get the network working inside a VM. No matter what, the VM never has internet access when i create it.

I thought Proxmox worked out of the box, or at least it used to when i used to use the older versions on version 4?

Or perhaps I am doing something wrong?

I tried adding the additional ip's to the network section on Proxmox and rebooted. But the VM once again has no internet at all.

Here is my interfaces file from /etc/network/interfaces:

Code:
Linux Proxmox 4.15.18-5-pve #1 SMP PVE 4.15.18-24 (Thu, 13 Sep 2018 09:15:10 +0200) x86_64

The programs included with the Debian GNU/Linux system are free software;

auto enp2s0
iface enp2s0 inet static
        address  176.***.***.50
        netmask  255.255.255.224
        gateway  176.***.***.33
        up route add -net 176.***.***.32 netmask 255.255.255.224 gw 176.***.***.33 dev enp2s0
# route 176.***.***.32/27 via 176.***.***.33

iface enp2s0 inet6 static
        address  2a01:4f8:160:1412::2
        netmask  64
        gateway  fe80::1

auto vmbr0
iface vmbr0 inet static
        address  176.***.***.38
        netmask  255.255.255.224
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address  176.***.***.30
        netmask  255.255.255.224
        bridge-ports none
        bridge-stp off
        bridge-fd 0

And this one in the screenshot is of the VM interfaces file:
prnt.sc/l1bjt7 <<Copy paste to your browser

I don't know what other info to give at this point, but if you need me to input any commands into console, tell me.

Might be worth mentioning, I'm considering getting a subscription providing I can get this working.

Many thanks in advance.
 
Last edited:
Hi,

some observations:
* Usually you do not assign an IP to the interface, which you put into the bridge - just assign the ip to vmbr0 (should you really need 2 IPs on the same network - add the second one as an alias interface vmbr0:0)
* the `up route add ....` entry for enp2s0 seems superfluous/wrong - the route you're trying to add should already be there as the link local route for the interface
* the inet6 static interface defintions should likewise be defined for vmbr0
* what do you plan to do with vmbr1? - In general it can be tricky to add IPs from the same subnet to different interfaces on the same host

check our reference documentation : https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration, and the network configuration entry in the wiki: https://pve.proxmox.com/wiki/Network_Configuration
 

About

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!