Completely confused with networking.

llek100

New Member
Dec 2, 2020
6
0
1
26
Hi, I am fairly new to virtualization and completely new to proxmox. I want to ask about the host network configuration. I want the completely basic config just 2 VMs and the 2 VMs to have access to internet. I have 2 IPs in the dedicated server. Here's my config:

iface enp4s0 inet static
address 89.xxx.135.xxx/24
gateway 89.xxx.135.1
pointopoint 89.xxx.135.1
dns-nameservers 62.141.32.5 62.141.32.4 62.141.32.3

iface enp4s0:1 inet static
address 89.xxx.154.xxx
gateway 89.xxx.135.1

auto vmbr0
iface vmbr0 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0

However if I add my port to bridge-ports, my node will stop responding to commands because it gets disconnected.
I am really confused by this, I tried about anything I googled even from this forum but almost everything results in the node being disconnected.
 
Well, since you want to use both public IPs at the same time, you will have to have two virtual bridges, vmbr0 and vmbr1.

I suggest setting IP directly on vmbrs and bridging physical ports to them.

For example:

auto lo
iface lo inet loopback

auto enp4s0
iface enp4s0 inet manual

auto enp4s0:1
iface enp4s0:1 inet manual

auto vmbr0
iface vmbr0 inet static
address 89.xxx.135.xxx/24
gateway 89.xxx.135.1
bridge-ports enp4s0
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet static
address 89.xxx.154.xxx
bridge-ports enp4s0:1
bridge-stp off
bridge-fd 0
 
Thank you for your suggestion, but after I create these bridges I can't connect to ssh anymore. And when I try to ping the IP I get "Request timed out" or "Destination host unreachable"
 
I tried doing it with the routing method. On my testing rig with private IP it worked without a problem, but on my production server with the public IP it resulted in the same thing. I mean on my test server it even works like this with ssh:

auto enp2s14
iface enp2s14 inet manual


auto vmbr0
iface vmbr0 inet static
address 192.168.100.77/24
gateway 192.168.100.1
bridge-ports enp2s14
bridge-stp off
bridge-fd 0

But as soon as I put this on the server (of course I change the ip and iface settings) it just crashes the network and I can no longer access it.

Edit:
I mean this routing method:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
address 198.51.100.5
netmask 255.255.255.0
gateway 198.51.100.1
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp


auto vmbr0
iface vmbr0 inet static
address 203.0.113.17
netmask 255.255.255.248
bridge-ports none
bridge-stp off
bridge-fd 0
 
Last edited:
6 different IP pools, but ok..

You have to decide, where you gonna use your public ip and where private, if you even need private ip pool.

this example with one public IP works for me if I only want one IP/VM to be accessible:

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 212.xxx.xxx.xx/29
gateway 212.xxx.xxx.25
bridge-ports eno1
bridge-stp off
bridge-fd 0
 
6 different IP pools, but ok..

You have to decide, where you gonna use your public ip and where private, if you even need private ip pool.

this example with one public IP works for me if I only want one IP/VM to be accessible:

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 212.xxx.xxx.xx/29
gateway 212.xxx.xxx.25
bridge-ports eno1
bridge-stp off
bridge-fd 0
Thank you very much, I just came to the conclusion that the configs are good, but something in my server installation is screwed up. Even when I just change the nameservers I can no longer connect to ssh, so it is probably something to do with that, even when I add a space to the config it crashes for some reason. So I am trying to solve that right now.
Thanks for everything.
 
I managed to solve it out, I used the config u suggested and it works, and I can connect to ssh, although I still have no access to internet on the VMs, I configured the gateway, ip and subnet mask, it recognises that it is connected to a network but it still says "No Internet access".
Thank you for everything!
 

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!