KVM and IP

gnt

New Member
Dec 3, 2013
1
0
1
Hello,

I installed on KVM - windows OS. How to install/configure local DHCP for KVM windows client?
I want to reinstall OS and setup network automatic (now I have set IP,netmask, GW... from VNC)
I install isc-dhcp-server but win not found dhcp server (ipconfig /renew), windows found router dhcp (I testing on home network)

Server IP: 192.168.0.100
GW 192.168.0.1

I want for KVM windows IP subnet: 192.168.1.0/24 and with iptable routing from 192.168.1.0 to 192.168.0.0

dhcp.conf:
ddns-update-style none;

option domain-name-servers 145.253.2.75, 193.174.32.18;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.200 192.168.1.229;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
}

Error:
# cat /var/log/syslog

Dec 3 19:53:47 i3 dhcpd: Wrote 0 leases to leases file.
Dec 3 19:53:47 i3 dhcpd:
Dec 3 19:53:47 i3 dhcpd: No subnet declaration for vmbr0 (192.168.0.100).
Dec 3 19:53:47 i3 dhcpd: ** Ignoring requests on vmbr0. If this is not what
Dec 3 19:53:47 i3 dhcpd: you want, please write a subnet declaration
Dec 3 19:53:47 i3 dhcpd: in your dhcpd.conf file for the network segment
Dec 3 19:53:47 i3 dhcpd: to which interface vmbr0 is attached. **
Dec 3 19:53:47 i3 dhcpd:
Dec 3 19:53:47 i3 dhcpd:
Dec 3 19:53:47 i3 dhcpd: Not configured to listen on any interfaces!



Maybe you can help?
 
Hi,
I would use an second network for that (like vmbr1 - without real NIC) and create an firewall/router/dhcp-server with two nics (vmbr0 + vmbr1).
There are some distros which are running fine for this purpose - I love devil-linux for that. But this is normal network/linux doing and has not much to do with pve ;)

Udo
 

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!