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 )
Using different DHCP servers for different clients
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Aug 15, 2011 8:26 am
-
- Forum Team
- Posts: 117
- Joined: Tue Jun 09, 2009 4:25 pm
- Location: St. Louis, MO USA
Re: Using different DHCP servers for different clients
If you need to assign clients IP addresses on different subnets, use ccd files:
http://openvpn.net/index.php/open-sourc ... tml#policy
http://openvpn.net/index.php/open-sourc ... tml#policy
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Aug 15, 2011 8:26 am
Re: Using different DHCP servers for different clients
Not quite, I need that client "B" could resolve DNS-name on his subnet and "A" could resolve other subnet. Is it possible?
- Mimiko
- Forum Team
- Posts: 1564
- Joined: Wed Sep 22, 2010 3:18 am
Re: Using different DHCP servers for different clients
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.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Aug 15, 2011 8:26 am
Re: Using different DHCP servers for different clients
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.
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.