[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] Getting IP Address for tap0 via DHCP (Linux)


  • Subject: [Openvpn-users] Getting IP Address for tap0 via DHCP (Linux)
  • From: Dominik Meister <meister@xxxxxxxxxxxx>
  • Date: Mon, 01 Aug 2005 09:37:54 +0200

Dear OpenVPN users

I've set up an OpenVPN server in a bridged setup for securing my
Wireless LAN. There is a DHCP server on the same machine as the OpenVPN
server.

I've have Mac OS X and Linux clients. With the Macs I've managed to get
the IP Address by setting the config option:

up "ifconfig tap0 up; ipconfig set tap0 DHCP; echo"

(as stated here:
http://lists.debian.org/debian-isp/2005/05/msg00008.html)

My problem is that I don't know how to get the Linux clients to get
their IP Address for tap0 also by DHCP. If I start the OpenVPN
connection, the tap device doesn't have an IP Address. When I do a
"dhclient tap0" command line afterwards, it works and an IP address is
pulled from the DHCP server. So my idea was to set something like 

up "ifconfig tap0 up; dhclient tap0"

in the OpenVPN config file but this did not work.

Does anyone have a similar setup and working DHCP addressing by Linux
clients?

Thanks and best regards.
-- 
Dominik Meister <meister@xxxxxxxxxxxx>
My public GnuPG key is available at http://meischter.homelinux.org/gpg.txt

Attachment: signature.asc
Description: This is a digitally signed message part


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-08/msg00000.html on line 202

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-08/msg00000.html on line 202