No internet

mkdir

New Member
Oct 9, 2020
3
0
1
42
I managed to install the proxmox on Debian, but a machine created virtual does not have access to the internet. My config on /etc/network/interfaces.

#########################
iface lo inet6 loopback

auto enp3s0
iface enp3s0 inet static
address 5.9.78.60
netmask 255.255.255.224
gateway 5.9.78.33
# route 5.9.78.32/27 via 5.9.78.33
up route add -net 5.9.78.32 netmask 255.255.255.224 gw 5.9.78.33 dev enp3s0

iface enp3s0 inet6 static
address 2a01:4f8:161:9130::2
netmask 64
gateway fe80::1


auto vmbr0
iface vmbr0 inet static
address 5.9.78.58
netmask 255.255.255.224
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add 5.9.78.58/27 dev vmbr0

###########################


Is the configuration correct?




Best regards,

André
 
Without an ethernet port configured for the bridge how should your VMs have internet acccess?
You need to assign a bridge port to the vmbr.
 
Without an ethernet port configured for the bridge how should your VMs have internet acccess?
You need to assign a bridge port to the vmbr.

#########################
iface lo inet6 loopback

auto enp3s0
iface enp3s0 inet static
address 5.9.78.60
netmask 255.255.255.224
gateway 5.9.78.33
# route 5.9.78.32/27 via 5.9.78.33
up route add -net 5.9.78.32 netmask 255.255.255.224 gw 5.9.78.33 dev enp3s0

iface enp3s0 inet6 static
address 2a01:4f8:161:9130::2
netmask 64
gateway fe80::1


auto vmbr0
iface vmbr0 inet static
address 5.9.78.58
netmask 255.255.255.224
bridge_ports enp3s0
bridge_stp off
bridge_fd 0
up ip route add 5.9.78.58/27 dev vmbr0

###########################

I did as you mentioned, but the server with the configration does not start. I have the main IP and an additional IP, I would like to be able to use the additional IP with a VM or LXC container. I have read several manuals but I cannot solve the problem. Can you tell me the correct configuration?
 
Try this:

Code:
iface lo inet6 loopback

auto enp3s0
iface enp3s0 inet manual
iface enp3s0 inet6 manual

auto vmbr0
iface vmbr0 inet static
address 5.9.78.58
netmask 255.255.255.224
bridge_ports enp3s0
bridge_stp off
bridge_fd 0

iface vmbr0 inet6 static
address 2a01:4f8:161:9130::2
netmask 64
gateway fe80::1
 
Last edited:
As soon as an address is assigned to the vmbr0, the bridged port must not have its own address. It's still only a rough guess though, especially the inet6 part, since I haven't configured that yet.
 
Try this:

iface lo inet6 loopback auto enp3s0 iface enp3s0 inet manual iface enp3s0 inet6 manual auto vmbr0 iface vmbr0 inet static address 5.9.78.58 netmask 255.255.255.224 bridge_ports enp3s0 bridge_stp off bridge_fd 0 iface vmbr0 inet6 static address 2a01:4f8:161:9130::2 netmask 64 gateway fe80::1

Error on boot " Could not generate persistent MAC Address for vmbr0: No such file or directory"
 
Next try

Code:
auto lo
iface lo inet loopback

iface enp3s0 inet manual

auto vmbr0
iface vmbr0 inet static
address 5.9.78.60
netmask 255.255.255.224
gateway 5.9.78.33
bridge_ports enp3s0
bridge_stp off
bridge_fd 0