Re: Adding a new route



After pptpconfig (24.199.x.x of course fictitious) :
So what is it? The other end of the pptp tunnel?

/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
This looks a bit strange. Why just one host on the other side of the pptp tunnel?
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


Disclaimer: I don't use pptp. I also don't know what IP addresses are supposed to be on the other side of your PPTP connection.

That said, at a guess, one of
route add -net 192.168.2.0/24 ppp0
or
route add -net 192.168.2.0/24 gw 192.168.2.101
might do what you want.
.



Relevant Pages

  • Re: Reverse tunnel and multiple interface
    ... first (eth0) is the "normal" interface, the other one is used as ... The ppp0 is a GPRS connection via a modem, ... If the connect back system has a fix IP address you can put a host route througth ppp0 to your fix IP address ...
    (SSH)
  • Re: Linux is Driving me $#@!!!! nutz!!!
    ... >> Well, if you are going via dialup, you aren't using eth0. ... >> using an ethernet device called ppp0. ... >> were thinking of doing with eth0 but do it with ppp0 instead. ... >the default route to what it should be. ...
    (rec.crafts.metalworking)
  • Re: Linux is Driving me $#@!!!! nutz!!!
    ... >Well, if you are going via dialup, you aren't using eth0. ... >were thinking of doing with eth0 but do it with ppp0 instead. ... >going to the internet to go through me." ... >out where eth0 is setting the default route and tell it to stop. ...
    (rec.crafts.metalworking)
  • Re: Linux is Driving me $#@!!!! nutz!!!
    ... > Well, if you are going via dialup, you aren't using eth0. ... > using an ethernet device called ppp0. ... > were thinking of doing with eth0 but do it with ppp0 instead. ... the default route to what it should be. ...
    (rec.crafts.metalworking)
  • Re: Linux is Driving me $#@!!!! nutz!!!
    ... Well, if you are going via dialup, you aren't using eth0. ... were thinking of doing with eth0 but do it with ppp0 instead. ... going to the internet to go through me." ... out where eth0 is setting the default route and tell it to stop. ...
    (rec.crafts.metalworking)