Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 1997 00:14:38 +0300
From:      Vladimir Egorov <evl@unionjv.ru>
To:        freebsd-questions@freebsd.org
Subject:   pppd (server-side) and routing
Message-ID:  <2.2.32.19970315211438.00850210@pop.unionjv.ru>

next in thread | raw e-mail | index | archive | help
Hello all!

  I'm trying to get to work (or, to be more precise - to work properly)
ppp-server (pppd). Almost everything works fine, except one thing:
eventually (sometimes (but not always) after abnormal termination of modem
(PPP) connection - noisy lines), routing table on FreeBSD box gets wrong. It
says (among other lines):

#netstat -rn 
Routing tables

Internet:
Destination           Gateway            Flags     Refs     Use     Netif Expire
...
my.ppp.client.addr    link#2             UHLW        3       34
...

  When it happens, pppd stops to work properly - modem answers; client
connects; logging in; getting IP address; - but can't even ping ppp server.
ARP table at this time doesn't contain such an entry for ppp client address: 

#arp -a
...
? (my.ppp.client.addr) at (incomplete). 

Following command returning everything to life:

#route delete my.ppp.client.address 

My configuration:

1) FreeBSD 2.0.5. (yes, 2.0.5)

2) /etc/ppp/options:

crtscts                                   
netmask 255.255.255.0                     
my.ppp.server.addr:my.ppp.client.addr     
domain my.domain                          
passive                                   
modem                                     
proxyarp

3) pppd starts as shell (without any additional parameters)

4) relevant part of /etc/rc.serial:

modem() {
        # Modem that supports CTS and perhaps RTS handshaking.
        for i in $*
        do
                # may depend on modem
                comcontrol /dev/ttyd$i dtrwait 100 drainwait 180
                # Lock crtscts on.
                # Speed reasonable for V42bis.
                stty </dev/ttyid$i crtscts 57600
                stty </dev/ttyld$i crtscts
                stty </dev/cuaia$i crtscts 57600
                stty </dev/cuala$i crtscts
        done
}

...<skipped>...

modem             0

5) relevant line in /etc/ttys:

ttyd0   "/usr/libexec/getty std.38400"  dialup  on  secure

  I've browsed through all mail-lists archives I have looking for answer;
FAQs and Handbook; tried Altavista and DejaNews. No use by far :) Probably
I'm overlooking something obvious..

Vladimir





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2.2.32.19970315211438.00850210>