Page 1 of 1
Using different DHCP servers for different clients
Posted: Mon Aug 15, 2011 9:29 am
by evors
Hi all! How can I configure openvpn that different clients could use different DHCP servers? For example: the client "A" gets dhcp-server 192.168.164.5, but the client "B" has to get dhcp-server 192.168.2.1 (it is native dhcp-server to client "B"). If you need more information, please tell me about it, I'll try give it.
Thanks.
Sorry for my english, I'm just learning )
Re: Using different DHCP servers for different clients
Posted: Mon Aug 15, 2011 1:15 pm
by george
If you need to assign clients IP addresses on different subnets, use ccd files:
http://openvpn.net/index.php/open-sourc ... tml#policy
Re: Using different DHCP servers for different clients
Posted: Tue Aug 16, 2011 6:25 am
by evors
Not quite, I need that client "B" could resolve DNS-name on his subnet and "A" could resolve other subnet. Is it possible?
Re: Using different DHCP servers for different clients
Posted: Tue Aug 16, 2011 7:49 am
by Mimiko
Are you talking about DHCP or DNS? First you saied about getting IP from DHCP, now about DNS. Draw a sketch about what you really want, please.
Re: Using different DHCP servers for different clients
Posted: Wed Aug 17, 2011 1:40 pm
by evors
I really sorry if I confused you. DNS server to subnet is gotten by DHCP, then I need use different DHCP-servers for different subnets.
Now I have decision: add string "dhcp-option DNS 192.168.2.5 " to client's config (client "B" in my example).
Thank you for help.