Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Jan 96 14:27:14 -0500
From:      Terry Rossi <tpr@pics.com>
To:        "jlrobins@zappa.cs.uncc.edu" <jlrobins@zappa.cs.uncc.edu>, "questions@FreeBSD.ORG" <questions@FreeBSD.ORG>
Subject:   Re: pppd only works right the first time :-(
Message-ID:  <199601081929.OAA04136@picspc01.pics.com>

next in thread | raw e-mail | index | archive | help
-- [ From: Terry Rossi * EMC.Ver #2.5.02 ] --

It sounds like the first PPP connection is not cleaning up after itself.  I
had this same problem with 2.0R and pppd.  I used ip-up to create the arp
entry and  used the ip-down script in /etc/ppp to delete the routes and down
the ppp interface after the ppp session ended.

Sorry I no longer have any of these scripts available.  Using 2.1 now and a
terminal server for all PPP.

Terry




-------- REPLY, Original message follows --------

Date: Thursday, 04-Jan-96 04:32 PM

From: jlrobins@zappa.cs.uncc.edu \ Internet:    (jlrobins@zappa.cs.uncc.edu)
To:   questions@FreeBSD.ORG    \ Internet:    (questions@freebsd.org)

Subject: pppd only works right the first time :-(

Yet another PPP question -- 2.1-stable

I have a site that I'm trying to set up as a one line PPP server using pppd.
It answers the telephone correctly for shell use.

After a reboot, the first call is handled perfectly. It ifconfigs the ppp0
interface, it adds the route, and then proxyarp's for the remote machine.
Cool Moe D.

When the second call comes in, pppd gets started up and complains with
"ioctl(SIOCAIFADDR): Address already exists". No route entry is added. No
proxy arp is done. Person on the other end can't see anywhere.

Local IP addr: 152.15.35.100 Remote addr: 152.15.35.101

Routing table after successful (first) conection:
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use     Netif Expire
default          152.15.254.254     UGSc        0        0       ed0
127.0.0.1        127.0.0.1          UH          0        0       lo0
152.15           link#1             UC          0        0 
152.15.10.88     0:0:c:17:3b:12     UHLW        0       27       ed0   1140
152.15.32.8      0:0:c0:fc:65:78    UHLW        1        3       ed0   1140
152.15.35.2      8:0:20:1a:b9:36    UHLW        7      323       ed0   1140
152.15.35.5      0:0:c0:fa:65:78    UHLW        3       60       lo0
152.15.35.6      8:0:69:9:2:e4      UHLW        0      208       ed0   1143
152.15.35.101    152.15.35.100      UH          0        0      ppp0
152.15.35.101    0:0:c0:fa:65:78    UHLS2       0        0       ed0
152.15.254.254   link#1             UHLW        1        0 
152.15.255.255   link#1             UHLW        0        1 

ifconfig ppp0 read fine as well, although I don't have a copy of the output
anymore.

/etc/ppp/options:

crtscts
netmask 255.255.255.255
152.15.35.100:152.15.35.101
domain uncc.edu
proxyarp
lcp-echo-interval 160
lcp-echo-failure 20
modem
lock
mru 1006
mtu 1006

/etc/ppp/ip-up and ip-down only print something to the console.
/etc/sysconfig does not mention ppp0 in the list of interfaces to manipulate
, as it seems pppd correctly does the ifconfiging (the first time, anyway).
Is there some magic to be done perhaps in /etc/ppp/ip-down?

Anyone seen this behavior before? Workaround avail?

TIA,
James Robinson



-------- REPLY, End of original message --------





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