Help with network settings needed

southy

New Member
Sep 18, 2012
2
0
1
Hi there,

I am a complete newbie to proxmox but I'd like very much to try it.
I have installed it and all looks nice and shiny in the web frontend, however I don't seem to get the network config of the host right.

My /etc/network/interfaces is as follows (to allow for checking stuff like masks, I have masked not the last but the first digits):

Code:
auto lo
iface lo inet loopback
 
# device: eth0
auto  eth0
iface eth0 inet static
  address   X.Y.90.19
#  broadcast X.Y.90.31
  netmask   255.255.255.224
  pointopoint X.Y.90.1
  gateway   X.Y.90.1

auto vmbr0
iface vmbr0 inet static
  adress   X.Y.90.19
  netmask 255.255.255.192
  gateway X.Y.90.1
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  up route add -host X.Y.103.114/32 dev vmbr0
  up route add -host X.Y.103.115/32 dev vmbr0
  up route add -host X.Y.103.115/32 dev vmbr0

Obviously the .19 ist the host's Ip whereas the .114 and following should be for the guests.

However whatever I do I end up with:

Code:
/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...Don't seem to have all the variables for vmbr0/inet.
Failed to bring up vmbr0.
done.

I also tried to create the bridge manually with brctl and ended up to be able to ping the additional IPs, but when I tried to SSH I ended up on the Host again, not on the guests :-(
This might be an easy one for you but I can't seem to get my head around it.

Also I am wondering what to do in the guests then: Do I only need to add a veth or also a venet?

Please help. Thanks!
southy
 
Hello.
What kind of networks are you going for ?
i am not sure a bridge would work without a any ports.
 
second part i see . is that you should not give eth0 any ip, just the wmbr0 and set its port to eth0.
 
auto lo
iface lo inet loopback
Your config must be like this

# device: eth0
auto eth0
iface eth0 inet manual


auto vmbr0
iface vmbr0 inet static
adress X.Y.90.19
netmask 255.255.255.192
gateway X.Y.90.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
up route add -host X.Y.103.114/32 dev vmbr0
up route add -host X.Y.103.115/32 dev vmbr0
up route add -host X.Y.103.115/32 dev vmbr0


Your error was you set an IP for eth0 and did not set the bridge_ports to vmbr0
 
Code:
/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...Don't seem to have all the variables for vmbr0/inet.
Failed to bring up vmbr0.
done.

Try:

Code:
/etc/init.d/networking stop
/etc/init.d/networking start
 
Dear all,

thanks for all your help.
Indeed I had a couple of mistakes there.
The first was: "adress" instead of "address".

The second was to assign the same IP to eth0 as well as to vmbr0.
I have corrected the config as cmassoglie suggested.

All works fine now.

Thanks very much for your help, very much appreciated!

southy.
 

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!