vtun, bridging and dhcp
fabrice.gautier_at_gmail.com
Date: 04/30/05
- Next message: James Knott: "Re: how to get a network's IPs?"
- Previous message: Unruh: "Re: how to get a network's IPs?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Apr 2005 17:08:59 -0700
Hi,
I'm trying to setup some kind of linux VPN.
The host network IP is (lets says) 192.168.1.x My goal is too have a
remote client computer connected to a virtual interface with an IP
adress in the 192.168.1.x range. Both client and "VPN server" are
running linux.
Right know it works as long as I use a static IP for the remote client.
Here are the details:
Initially I have "VPN server" (Server) in the host network with
eth0=192.168.1.1.
1/ On Server I configure a bridge br0 with only one port (eth0):
br0=192.168.1.1, eth0=0.0.0.0
2/ I setup a vtun tunnel, ether type, between Server and Client so I
have two virtual interfaces tap0 on Server and tap1 on Client
(unconfigured yet)
3/ I add tap0 port to br0 and bring it up
tap0=0.0.0.0
4/ I manually configure tap1 on Client :
ifconfig tap1 192.168.1.101
This works fine, my Client is now seen as being on the host network,
and I can ping anyways...
Now if I replace 4/ by ifup tap1, with tap1 configure for dhcp, its not
working so well. Apparently I get a DHCP lease from a server on the
host network, but then it stalls and eventually the tunnel will
disconnect and I will even loose my ssh connection to the Client.
Any ideas why DHCP is different ?
Thanks
-- F.G.
- Next message: James Knott: "Re: how to get a network's IPs?"
- Previous message: Unruh: "Re: how to get a network's IPs?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|