Reserve an IP address from the DHCP server

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
gp0000000000
OpenVpn Newbie
Posts: 1
Joined: Thu Jul 28, 2011 10:26 pm

Reserve an IP address from the DHCP server

Post by gp0000000000 » Thu Jul 28, 2011 10:38 pm

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.

User avatar
Bebop
Forum Team
Posts: 301
Joined: Wed Dec 15, 2010 9:24 pm

Re: Reserve an IP address from the DHCP server

Post by Bebop » Fri Jul 29, 2011 1:10 am

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.
The cure for boredom is curiosity

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Reserve an IP address from the DHCP server

Post by maikcat » Fri Jul 29, 2011 6:09 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Reserve an IP address from the DHCP server

Post by janjust » Mon Aug 01, 2011 1:15 pm

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.

Post Reply