newbie: how to configure network interfaces veth bridged?

M

melinameline

Guest
Hi,
i'm newbie on proxmox virtualisation.
i installed proxmox 1.9 on a debian squeeze, and create two CTs to contain my two web servers.

the physical caracteristics of the host machine are:

1- 2 network cards (physical interfaces),
2- 2 hard disks (500Go each one),
3- 8Go of RAM,

i don't now how to configure my two network cards to be able to give public adresses to the VMs (CTs) to be viewed from outside.

i have two network cards: eth0 and eth1 on the host machine, so:
eth0 have a private ip adresse as 192.168.0.2,
and eth1 is linked to the to interfaces of my servers (CTs), so i dont now how to configure the bridge or bridges (because i don't now if i must use one or two) on this NI.

that's what i put in the /etc/network/interfaces host file:

Code:
# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address  192.168.0.1
        netmask  255.255.0.0
        gateway  192.168.0.1
        broadcast  192.168.0.255
        network 192.168.0.0
        dns-nameservers 192.168.0.1
        dns-search mydomain.org
# dns-* options are implemented by the resolvconf package, if installed

auto eth1
iface eth1 inet manual

auto vmbr0
iface vmbr0 inet manual
       bridge_ports eth1
       bridge_stp off
       bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
       bridge_ports eth1
       bridge_stp off
       bridge_fd 0

and in the /etc/network/interfaces file of the first VM:
Code:
auto lo
iface lo inet loopback

#auto eth1
#allow-hotplug eth1
#iface eth0 inet static
#        address IPpublic1@
#        netmask NetmaskPublic@
#        network Network-Public@
#        broadcast Broadcastpublic@
#        gateway IPpublicgateway@
#        # dns-* options are implemented by the resolvconf package, if installed
 #       dns-nameservers DNSIpPublic@
  #      dns-search mydomain.ory

and the same on the second VM:
Code:
auto lo
iface lo inet loopback

#auto eth1
#allow-hotplug eth1
#iface eth1 inet static
#        address IPpublic2@
#        netmask NetmaskPublic@
#        network Network-Public@
#        broadcast Broadcastpublic@
#        gateway IPpublicgateway@
#        # dns-* options are implemented by the resolvconf package, if installed
 #       dns-nameservers DNSIpPublic@
  #      dns-search mydomain.ory

but it deosn't function, it shows me that eth1 is already a member of a bridge; can't enslave it to bridge vmbr1.
so, how can i configure the eth1 to link to the two VMs public interfaces?
Thanks
 
Hi,
i'm newbie on proxmox virtualisation.
i installed proxmox 1.9 on a debian squeeze, and create two CTs to contain my two web servers.

...

Before going further:

  • 1.9 is based on Lenny, do not install this on Squeeze
  • 1.9 is really outdated and not maintained since a long time, do not use it anymore
  • => use always latest stable, see http://pve.proxmox.com/wiki/Roadmap
 

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!