Re: Adding a new route




Allen McIntosh escreveu:

3) When connecting via pptpconfig, I authenticate but the same default
gw is there. So:

original dhcp gw: 10.101.44.1

pptp needs to have some way to get packets to the network at the other
end, so you need to keep this entry.

vpn gw I need to use sometimes: 192.168.2.101
What network do you need to contact?

You really need to give us more information. Post the output of "route
-n" before and after starting pptp, and tell us a bit more about the VPN.

To the other poster, I tried:

route add -net 192.168.2.101 netmask 255.255.255.255 dev eth0

But still had the same problem - I can't 'ping 192.168.2.93' .

Before:

/root> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.101.40.0 0.0.0.0 255.255.248.0 U 0 0 0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 10.101.45.1 0.0.0.0 UG 0 0 0
eth0

After pptpconfig (24.199.x.x of course fictitious) :

/root> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
24.199.x.x 10.101.45.1 255.255.255.255 UGH 0 0 0
eth0
192.168.2.101 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
10.101.40.0 0.0.0.0 255.255.248.0 U 0 0 0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 10.101.45.1 0.0.0.0 UG 0 0 0
eth0

Still can't 'ping 192.168.2.93' . The only way I can ping so far is
by:

linux(root)]
/root> route del default gw 10.101.45.1
[linux(root)]
/root> route add default gw 192.168.2.101

The only info I have on the vpn is its microsoft. Thanks for any help,
Robert

.



Relevant Pages

  • Re: Proper routes for linux machine with two network ports to same network
    ... I run a Fedora Core 4 system with two network devices eth0 (assigned ... interface is working or sort of, and choose the correct route? ...
    (comp.os.linux.networking)
  • Re: linux as router
    ... I have a single network card for which I gave to IPs ... and this is the default route ... Bureau de poste Tunis republique ...
    (Fedora)
  • Re: Linux is Driving me $#@!!!! nutz!!!
    ... :Doing a route call from terminal ... via nic card on eth0. ... time since I had to configure a PPP connection, ... from the command line. ...
    (rec.crafts.metalworking)
  • Re: routes question
    ... then restrt the network services. ... to the internal network and eth1 is connected to the ... except when I start the machine with the eth0 ... Should eth0's route be ...
    (RedHat)
  • Re: routes question
    ... route add default gw 130.111.68.1 ... then restrt the network services. ... > I've setup a gateway/router for a small internal network that we are ... except when I start the machine with the eth0 ...
    (RedHat)