Re: Problems with ppp and 2.1.117+

Andi Kleen (ak@muc.de)
26 Oct 1998 13:18:05 +0100


In article <Pine.LNX.3.96.981026122055.7205B-100000@bgnet.bg>,
Vesselin Atanasov <vesselin@bgnet.bg> writes:
> Hi. I have a problem with ppp and kernel 2.1.117+. I tried kernels
> 2.1.117-126, ppp-2.3.5 and net-tools 1.45 on a machine that acts as a
> dialup server. The machine assigns dynamic IP-to to our clients. We use
> cyclades-z as serial devices with modems attached to them. Each serial
> port has an IP assigned to it. When a user connects to serial port N, a
> route is added for its IP

> Destination Gateway Genmask Flags Metric Ref Use Iface
> aaa.bbb.ccc.ddd 0.0.0.0 255.255.255.255 UH 0 0 0 pppQ

> Where aaa.bbb.ccc.ddd is the IP of the serial port and pppM is the
> dynamically assigned ppp interface.

> The problem appears when the pppd for that IP terminates or even is killed
> with SIGKILL. The route to that IP is not deleted. When another user logs
> on the same tty, a second route to the same IP is added and the routing
> table is:

The route will be deleted when the interface goes down. That can be done
by pppd or ifconfig. The real solution is to not kill pppd with SIGKILL (-9),
but "only" with SIGTERM. It will catch that signal and close the link cleanly.
With SIGKILL that is not possible.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/