Page 1 of 1

Reserve an IP address from the DHCP server

Posted: Thu Jul 28, 2011 10:38 pm
by gp0000000000
Without using all the ccd nonsense, is there a way to reserve an IP address to prevent it from being given out by openvpn's DHCP "server"?

server.conf:
dev tap
server 192.168.113.0 255.255.255.0
...

Client router has a static IP address of 192.168.113.3. How do I prevent IP conflicts? I can't change IP addresses on the router and it has to be in the same 24 subnet. What I really want is the functionality of server-bridge where you can specify the dhcp range.

Thanks.

Re: Reserve an IP address from the DHCP server

Posted: Fri Jul 29, 2011 1:10 am
by Bebop
gp0000000000 wrote:Without using all the ccd nonsense, is there a way to reserve an IP address to prevent it from being given out by openvpn's DHCP "server"
CCD is hard to understand at first, I give you that. But far from nonsense though. If its just a single IP to reserve, then CCD is actually the least nonsensical method available to you.

Re: Reserve an IP address from the DHCP server

Posted: Fri Jul 29, 2011 6:09 am
by maikcat
hi there,

if your clients router has the same range with your vpn range
then you have to choose another subnet for openvpn...

you can still use any of the private ranges for this job.

Michael.

Re: Reserve an IP address from the DHCP server

Posted: Mon Aug 01, 2011 1:15 pm
by janjust
What I really want is the functionality of server-bridge where you can specify the dhcp range.
try using

Code: Select all

  ifconfig 192.168.113.10 255.255.255.0
  ifconfig-pool 192.168.113.100 192.168.113.200 255.255.255.0
this assigns the .10 address to the server and reserves the range .100 - .200 for the clients.