On Sun, 15 Nov 1998, Charles Roten wrote:

My system is very like yours: the biggest difference is that it works. I'm
running rh5.0 plus lots of upgrades.

> Configuration:
> 
>     Intel VX440FX motherboard, PPro/200, running RedHat 5.1, kernel
>         2.0.34 (not stock ... had to build, custom, for CD burner).
P133, custom kernel
>     DEC 21140-based "SMC Ether Power 10/100" ethercard on IRQ 10,
>         configured (when applicable) as 192.168.0.2/255.255.255.0,
>         (mjollnir), connected to a Netgear Fast Ethernet hub, itself
>         connected to a __second__ local IP, 192.168.0.4 (excalibur).
Same card, crossed-over wire to another, no hub,
>     COM2/ttyS1 serial port on IRQ 3 hosting 56Kflex modem running
>         intermittent ppp connection (_dynamic_ IP) to my ISP on ppp0.
>         The call to establish pppd _does_ make _explicit_ use of the
>         "defaultroute" keyword.  This is also present in
>         /etc/ppp/options.
33k6 modem

I have another nic too.
> 
>                                          __________
>                                         /   ISP    \
>                                        |(dynamic IP)|
>                                         \ _________/
>                                              |
>                                              | <- Sick Connection
>          ___________________      ___________|_______
>         |                   |    |          ppp0     |
>         | 192.168.0.4   eth0|----|eth0   192.168.0.2 |
>         |___________________|    |___________________|
> 
> 
> Problem:
> 
>     All attempts to use the RedHat network configuration interface,
>         python /usr/lib/rhs/netcfg/netcfg.py
>     to configure interface eth0 for internal ethernet traffic end up
>     blocking the ppp interface, once eth0 is activated and ppp0 is 
>     shut down once.  Only a reboot clears this condition.  

I don't use this tool for my ppp interface (though I did on Rh 5.0 and it
worked then).
> 
> /etc/sysconfig/network-scripts/ifcfg-ppp0 _does_ contain the line
>     DEFROUTE=yes
[summer@emu summer]$ cat /etc/sysconfig/network-scripts/ifcfg-ppp0
PERSIST=no
DEFROUTE=yes
ONBOOT=no
INITSTRING=ATZ
MODEMPORT=/dev/modem
LINESPEED=115200
ESCAPECHARS=no
DEFABORT=yes
HARDFLOWCTL=yes
DEVICE=ppp0
PPPOPTIONS=
DEBUG=yes
PAPNAME=
REMIP=
IPADDR=
BOOTPROTO=none
MTU=1500
MRU=1500
DISCONNECTTIMEOUT=
RETRYTIMEOUT=
USERCTL=yes


I don't use this any more, though it worked when i did.

> 
> /etc/sysconfig/network-scripts/ifcfg-eth0 reads (in it's entirety) ...
>     PERSIST=no
>     DEVICE=eth0
>     IPADDR=192.168.0.2
>     NETMASK=255.255.255.0
>     NETWORK=192.168.0.0
>     BROADCAST=192.168.0.255
>     ONBOOT=no
>     BOOTPROTO=none
>     GATEWAY=none
[summer@emu summer]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
BOOTPROTO=none
> 
> I added /etc/sysconfig/network-scripts/ifup-eth0, which reads (in
> it's entirety):
>     route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}

I don't have one.
> 
> /etc/ppp/options reads (in it's entirety) ...
>     lock
>     defaultroute
[summer@emu summer]$ grep -v ^# /etc/ppp/options | grep -v ^$                 
lock
crtscts
defaultroute
lock
modem
mru 1500
> 
> I use the following (scripted) command to bring up ppp:
>     exec pppd connect \
>             'chat -v -f /etc/ppp/chatscript-0777' \
>             -detach crtscts modem defaultroute \
>             mru 576 mtu 576 \
>             user Pcroten \
>             /dev/modem 115200
> 
I use a script based on one I found in /usr/doc/ppp*
[summer@emu summer]$ cat /usr/local/bin/ami | grep -v ^#
TELEPHONE=92571309      # The telephone number for the connection
ACCOUNT=summer          # The account name for logon (as in 'George Burns')
PASSWORD=youwish        # The password for this account (and 'Gracie Allen')
export TELEPHONE ACCOUNT PASSWORD
DIALER_SCRIPT=/etc/ppp/ami1
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS0 115200 \
        defaultroute connect $DIALER_SCRIPT
[summer@emu summer]$ cat /etc/ppp/ami1| grep -v ^# | grep -v ^$
MAX_ATTEMPTS=10
SLEEP_DELAY=15s
PHONE1=92571309
ACCOUNT=summer
PASSWORD=youwish
function initialize
{
    chat -v TIMEOUT 3 '' ATZ OK ATM1L1S0=0\&C1\&D1 OK
    return $?
}
function hangup
{
    chat -v TIMEOUT 3 '' ATH0 OK 
    return $?
}
function callnumber
{
chat -v                                                 \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nNO CARRIER\r'                        \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ''              ATDT$1                          \
        CONNECT         ''                              \
        ogin:--ogin:    $ACCOUNT                        \
        assword:        $PASSWORD
    if [ "$?" = "0" ]; then
       exit 0
    fi
    return
}
function callall
{
    callnumber $PHONE1
}
initialize
if [ ! "$?" = "0" ]; then
   exit 1
fi
attempt=0
while : ; do
    attempt=`expr $attempt + 1`
    callall $attempt
    if [ "$attempt" = "$MAX_ATTEMPTS" ]; then
        exit 1
    fi
    hangup
    sleep "$SLEEP_DELAY"
done
[summer@emu summer]$ 

I'm now using kernel 2.0.35. I never used the 2.0.34 kernel from RH: I
waited for the official one which appeared later.

[summer@emu summer]$ rpm -q ppp
ppp-2.3.5-4


Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.


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

Reply via email to