Re: Adding a new route



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/ >
.



Relevant Pages

  • Re: VPN Zugriff auf Zweitstandort
    ... der zuhause sitzt und sich per VPN über seinen DSL ... dieses ROUTE ADD über den DHCP ... Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de ...
    (microsoft.public.de.german.isaserver)
  • Re: Multiple routes on LAN now I cant get DHCP addresses
    ... Networking, Internet, Routing, VPN Troubleshooting on ... Before we were able to use DHCP for this (DHCP was on an old 2000 server. ... LAN subnet: 10.10.8.x / 24 ... I used the Windows ROUTE comand (e.g. Route -p ADD 10.10.9.0 mask ...
    (microsoft.public.windowsxp.network_web)
  • Re: Multiple routes on LAN now I cant get DHCP addresses
    ... gateway set to 10.10.8.5 I cannot get a DHCP address. ... I may need to create a static route on the .8.5 gateway as it doesn't seem to ... How does windows know what router to use to get a DHCP address? ... Networking, Internet, Routing, VPN Troubleshooting on ...
    (microsoft.public.windowsxp.network_web)
  • Re: DNS and NetBIOS names not resolving over a PPTP VPN using RRAS
    ... whatever DNS and WINS wettings are on the VPN server will be inherited ... by all VPN clients. ... with the DHCP Relay Agent. ...
    (microsoft.public.windows.server.networking)
  • Re: VPN Folder Sharing
    ... PPP adapter RAS Server Interface: ... > If you allocate a static IP to your VPN Server, ... > static IP address is within the sub-net of the router, but outside the DHCP ... > DHCP pool range is 192.168.0.100 and higher, then you should allocate static ...
    (microsoft.public.windowsxp.work_remotely)