Proxmox 3 Bridge config not working

ichtaina

New Member
Oct 20, 2015
1
0
1
Hi all,

i had installed a Proxmox 3 on Dedicated Solutions Cloud, i have problems configuring the network on de VM, heres my config

/etc/netwrok/interfaces on proxmox host

HTML:
auto lo
iface lo inet loopback

iface eth0 inet manual
    broadcast  67.219.147.223
    network 67.219.147.216
    dns-nameservers 8.8.8.8
    dns-search localhost.local
# dns-* options are implemented by the resolvconf package, if installed

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
    address  67.219.147.218
    netmask  255.255.255.248
    gateway  67.219.147.217
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet static
    address  67.219.147.219
    netmask  255.255.255.248
    bridge_ports eth1
    bridge_stp off

On the VM

HTML:
iface eth0 inet static
    address 67.219.147.219
    netmask  255.255.255.248
    gateway 67.219.147.217
    dns-nameservers 8.8.8.8

Here are the routes

On the host
HTML:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.248 U     0      0        0 vmbr0
localnet        *               255.255.255.248 U     0      0        0 vmbr1
default         67.219.147.217  0.0.0.0         UG    0      0        0 vmbr0

On the vm

HTML:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
 default         67.219.147.217  0.0.0.0         UG    0      0        0 eth0
localnet               *           255.255.255.248    U   0    0   0 eth0

How i get my VM reaching the internet?

Cheers,
 
HTML:
auto lo
iface lo inet loopback

iface eth0 inet manual
    broadcast  67.219.147.223
    network 67.219.147.216
    dns-nameservers 8.8.8.8
    dns-search localhost.local
# dns-* options are implemented by the resolvconf package, if installed

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
    address  67.219.147.218
    netmask  255.255.255.248
    gateway  67.219.147.217
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet static
    address  67.219.147.219
    netmask  255.255.255.248
    bridge_ports eth1
    bridge_stp off


You must not have an IP address assigned to a NIC (eth0) which is member of a bridge (vmbr0).

vmbr0 and vmbr1 (eth1) are in the same subnet - really connected to the same physical subnet?

How to access to internet from a VM depends on your resources respectively net environment.

Assuming you have two public addresses as above, and the second (address 67.219.147.219) is for the VM, you have to remove the address from vmbr1 and bridge it to your VM; inside it assign this address to the virtual NIC there.

vmbr0 is probably not necessary then (unless you have more public addresses dedicated for more VMs) - remove it and assing all IP configuration to eth0.
 

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!