robert wrote:
> Hi all I have a simple problem:
>
> 1) I get an IP and default gw from DHCP.
> 2) I need to sometimes connect to an external vpn. To do this, I use a
> program called pptpconfig .
> 3) When connecting via pptpconfig, I authenticate but the same default
> gw is there. So:
>
> original dhcp gw: 10.101.44.1
> vpn gw I need to use sometimes: 192.168.2.101
>
> So I do:
>
> route del default gw 10.101.44.1
> route add default gw 192.168.2.101
>
> That gives me everything on the vpn, but then I don't have internate /
> local lan access. How can I get both the vpn and local lan access.
You do not need to add a new default route. If pptpconfig doesn't do it
by itself add the command:
add -net 192.168.2.101 netmask 192.168.2.0 dev <device>
Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 <
http://giovanni.homelinux.net/ >