DHCP for proxmox clients

S

Siggib

Guest
Hi all,

just started to use proxmox ..or trying that is.

I am running into problems with virtual machines not getting DHCP from my vmbr0 interface.. dhcp works in the interface.. but not on the clients

SERVER:
[Proxmox1 Production] root@grbsr0112 [ /etc/network ]$ dhclient -v
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/vmbr0/f0:92:1c:0b:21:00
Sending on LPF/vmbr0/f0:92:1c:0b:21:00
Sending on Socket/fallback
DHCPREQUEST on vmbr0 to 255.255.255.255 port 67
DHCPACK from 10.8.3.254
RTNETLINK answers: File exists
Stopping NTP server: ntpd.
Starting NTP server: ntpd.
bound to 10.8.3.3 -- renewal in 330931 seconds.

config
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto vmbr0
iface vmbr0 inet static
address 10.8.3.112
netmask 255.255.255.0
gateway 10.8.3.254
bridge_ports eth0
bridge_stp on
bridge_fd 0


ON the clients I get
[root@test network-scripts]# dhclient
Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/d6:8a:e9:99:71:33
Sending on LPF/eth0/d6:8a:e9:99:71:33
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4 (xid=0x270aeed9)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 (xid=0x270aeed9)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21 (xid=0x270aeed9)



just hangs and no ip added to the machine?

Can someone point me in the right direction with this please?!

Best Regards
SIggi
 
...

auto eth0
iface eth0 inet dhcp

...

you cannot use DHCP for the Host, you need to specify a fixed IP.

here is an example of a very simple host network:

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


iface eth0 inet manual


auto vmbr0
iface vmbr0 inet static
        address  192.168.7.201
        netmask  255.255.240.0
        gateway  192.168.2.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
 
Hi Tom!

Thank you for your answer, I have setup the vmbr0 as you describe.. however my virtual clients on this proxmox host are not getting DHCP from the vmbr0 :/ DHCP is obviously working however looks like the network setup of the Proxmox is not allowing or in some way blocking the virtual clients getting dhcp.. any idea ?

Now I have in the interfaces:

auto lo
iface lo inet loopback


iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.8.3.112
netmask 255.255.255.0
gateway 10.8.3.254
bridge_ports eth0
bridge_stp off
bridge_fd 0




-Siggi
 
For further information for anyone with this problem.. it started working.. when I added Broadcast and Network to the mix along with bridge_stp on

auto vmbr0
iface vmbr0 inet static
address 10.8.3.112
netmask 255.255.255.0
network 10.8.3.0
broadcast 10.8.3.255
gateway 10.8.3.254
bridge_ports eth0
bridge_stp on
bridge_fd 0


Hope this can be of any help to other!

-Siggi
 
good that you solved you issue.
but my vm get dhcp but do not need those, only

Code:
auto vmbr0
iface vmbr0 inet static
        address  192.168.x.x
        netmask  255.255.255.0
        gateway  192.168.x.x
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

Marco
 

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!