Re: Adding a new route
- From: Giovanni <lsodgf0@xxxxxxxxxxx>
- Date: Mon, 28 Aug 2006 16:49:00 +0200
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/ >
.
- References:
- Adding a new route
- From: robert
- Adding a new route
- Prev by Date: Best router appliance with integrated DNS
- Next by Date: Re: Adding a new route
- Previous by thread: Adding a new route
- Next by thread: Re: Adding a new route
- Index(es):
Relevant Pages
|