[SOLVED] LAN - only one NIC Routing to the Internet

mcdaniels

Member
Feb 1, 2021
44
0
11
48
Hi,
I try to run Proxmox on the internal (lab) network. The only physical nic (=management IP of Proxmox) has got the IP 192.168.252.100 and is able to connect to the internet via my router. In the /etc/network/interfaces of Proxmox, this nic is configured to eno1.

Can I now create a VMBR1 without any IP, install a VM which uses VMBR1 and configure a static IP of 192.168.252.101 with the same gateway the Proxmox-host has and the VM should have internetaccess?

EDIT: I can answer it myself - no, this does not work. The VM cannot do anything in the network. Also a ping to the gateway in the same net is not possible. I think this comes because of the missing bridgeport to the physical nic.

So I wonder how i have to configure this. If I rename the eno1 to vmbr0 and use bridgeport = eno1, then I cannot access the gui anymore. Otherwise I cannot use eno1 for bridgeport.

Then I thought of this:
Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.252.100/24
        gateway 192.168.252.254
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address 192.168.252.101/24
        gateway 192.168.252.254
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

But then, the GUI is not accessible anymore.

Hm. So how is it possible to set up multiple VMs which are all on the same LAN, with only one nic in the Proxmoxhost? They all should have internetaccess and use the same gateway, the Proxmoxhost uses (same network).
 
Last edited:
I dont have a vmbr0 in the standard config. Only an eno1. When I do this
Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.252.100/24
        gateway 192.168.252.254
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

I cannot Connect to the GUI anymore or ping the Management IP.

So I am stuck now. Perhaps important: I run Proxmox in top of Debian.
 
confiT
I dont have a vmbr0 in the standard config. Only an eno1. When I do this
Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.252.100/24
        gateway 192.168.252.254
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

Looks fine and should work if the IP and gateway are correct. Do you also used that IP in the hosts file?
 
I reinstall the box again. Perhaps I did something weird. If you say it should work, then the mistake had to be on my side.

UPDATE: After reinstalling from scratch it worked like it should.
 
Last edited: