About Proxmox vmbr0 internet gateway

pilgrimage

Member
Oct 17, 2021
65
2
13
44
Hello,

don't know what I am doing wrong, but my proxmox server itself has no gateway to the internet - the vm's do have access! I can't downloading templates, updating the system or ping a website. But just from the proxmox server itself. The internet access within the virtual machines

vmbr1 bridge-ports "ens6" : The 2nd ethernet card is connected to the internet connection and is automatically connected to the internet via dhcp. On vm machines, it goes to the internet through vmbr1 without any problems.

vmbr0
vmbr0 is defined as static ip that I reach to proxmox server.

When I look with the ip a command, it looks like vmbr1 has taken the internet ip 10.40.32.172
but the proxmox server itself does not go to the internet.

What setting should I do so that vmbr0 can exit the internet.

/etc/networks/interafce settings

auto lo
iface lo inet loopback

iface enp1s0 inet manual

iface ens6 inet manual

auto vmbr0
iface vmbr0 inet static

auto vmbr0
iface vmbr0 inet static
address 192.168.100.2/24
gateway 192.168.100.1
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
#proxmox web

auto vmbr1
iface vmbr1 inet dhcp
bridge-ports ens6
bridge-stp off
bridge-fd 0

thankyou.

#internet
 
You told PVE with "gateway 192.168.100.1" to send all packets targeted at the internet using vmbr0 to 192.168.100.1. So your router with the IP 192.168.100.1 needs to route these packets to the internet. Is your router able to do this?
 
The cable connected to the internet connection is the bridge of the ethernet card vmbr1 vmbr0 is only connected to the simple hub between the laptop and the proxmox server to connect from the proxmox web interface.
So how can I redirect the internet on vmbr1 to vmbr0.

vmbr1 do I need to type vmbr0 the gateway of the connected internet? How can I solve the problem?

thankyou.
 
If 192.168.100.1 isn't your gateway just dont add it as a gateway to vmbr0.
A host can only use one gateway and if you use DHCP on vmbr1 it should get its gateway and DNS on vmbr1 automatically assigned from the DHCP server.