In response to Sonys question of not being able to add a route to his ppp
link.


A. You have to add the routing once the ppp link is up, As when the ppp link
is down there isn't anything to route to.....

eg

in your /etc/sysconfig/network-scripts directory find the file associated
with your ppp link eg...ifcfg-ppp0

in it you will find


PERSIST=yes
DEFROUTE=no
ONBOOT=yes
INITSTRING=ATZ
MODEMPORT=/dev/ttyS0
LINESPEED=115200
ESCAPECHARS=no
DEFABORT=yes
HARDFLOWCTL=yes
DEVICE=ppp0
PPPOPTIONS=
DEBUG=no
PAPNAME=
REMIP=
IPADDR=
BOOTPROTO=none
MTU=
MRU=
DISCONNECTTIMEOUT=
RETRYTIMEOUT=
USERCTL=yes

Set the DEFROUTE to yes

That way once the ppp link comes up everything gets routed out that
(interface)

If you specifically want to add special routing down certain different ppp
links...??? Then you could add to the routing table once the link comes up
by making a small shell script.

Example

in /etc/ppp

make a file called ip-up.local

in that file place

#!/bin/sh
PATH=/sbin

#$6 is the logical device name as assigned by the user when setting up the
#connection (e.g.ppp0) and $1 is the real kernel device name as used at
#the moment (eg.ppp8)

echo "Connected! Logical device $6, real device $1" >/dev/tty1

if [ "$6" = "ppp0" ]; then
 #do some stuff using $1 as the actual device name
 #so normally we have ----> route add -host ***.***.***.*** gw
***.***.***.*** ppp0
    route add -host ***.***.***.*** gw ***.***.***.*** "$1"
    route add -host ***.***.***.*** gw ***.***.***.*** "$1"
fi

replace the *** 's with the ip address you want to route to

hope this helps

Tony Platt
Tech
TechniCom iD
Australia


-----Original Message-----
From: Sony Lloyd Ponton <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, 23 September 1998 4:20
Subject: Networking with PPP, chat..


>hello,
>I have 2 PC s that have Linux running on them (redhat 5.0,kernel
>2.0.32). The first one has has a PPP link connection to my Isp(so a
>modem) and the second one is just connected to the first by local
>ethernet 10Base T cabling.
>On the first one, I have PPP compiled as module and wanted to add a
>route to my Isp:
>route add default ppp0
>..but when I do that, it says error:''No device support for this
>option.."
>What is the problem please ..and how to go around that??
>
>Elm Grunger
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
>the body of a message to [EMAIL PROTECTED]


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to