Re: Recent interface/routing changes breaks on-demand PPP (+sppp)

2001-03-30 Thread Alexander Leidinger
On 19 Mr, Ruslan Ermilov wrote: 3. The routing code was fixed to delete routes which use non-existent interface addresses. This code will wipe such a route. 5. This affects not only ppp(8). Add default route that points to the LAN; change the IP address on interface; observe

Re: Recent interface/routing changes breaks on-demand PPP (+sppp)

2001-03-30 Thread Alexander Leidinger
On 30 Mr, Ruslan Ermilov wrote: - if I put the interface down the first time after a login I have to readd the defaultroute (only once, after additional "ifconfig down/up" I didn't have to readd the defaultroute, it stays) This is only possible if you have a routing daemon running.

Re: Recent interface/routing changes breaks on-demand PPP (+sppp)

2001-03-30 Thread Ruslan Ermilov
On Fri, Mar 30, 2001 at 01:36:39PM +0200, Alexander Leidinger wrote: On 30 Mar, Ruslan Ermilov wrote: - if I put the interface down the first time after a login I have to readd the defaultroute (only once, after additional "ifconfig down/up" I didn't have to readd the defaultroute,

Re: Recent interface/routing changes breaks on-demand PPP (+sppp)

2001-03-30 Thread Alexander Leidinger
On 30 Mr, Ruslan Ermilov wrote: What to do in this situation? I didn't want add the defaultroute everytime (POLA). But if we don't do this, we may end up using the wrong source IP address. Without my fixes, try this: 1) ifconfig isp1 X.X.X.1 2) route add default -iface isp1 3)

Re: Recent interface/routing changes breaks on-demand PPP (+sppp)

2001-03-30 Thread Ruslan Ermilov
[Redirected to -net] On Fri, Mar 30, 2001 at 03:39:40PM +0200, Alexander Leidinger wrote: On 30 Mar, Ruslan Ermilov wrote: What to do in this situation? I didn't want add the defaultroute everytime (POLA). But if we don't do this, we may end up using the wrong source IP address.

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-26 Thread Brian Somers
On Sun, Mar 25, 2001 at 02:46:22AM +0100, Brian Somers wrote: On Fri, Mar 23, 2001 at 23:11:56 +, Brian Somers wrote: 1. Ppp is in -auto mode (or a ``set mode auto'' has been done). Here, ppp configures the interface as soon as it sees the ``set ifaddr'' line and

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-25 Thread Ruslan Ermilov
On Sun, Mar 25, 2001 at 02:46:22AM +0100, Brian Somers wrote: On Fri, Mar 23, 2001 at 23:11:56 +, Brian Somers wrote: 1. Ppp is in -auto mode (or a ``set mode auto'' has been done). Here, ppp configures the interface as soon as it sees the ``set ifaddr'' line and never

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-24 Thread Brian Somers
On Fri, Mar 23, 2001 at 23:11:56 +, Brian Somers wrote: 1. Ppp is in -auto mode (or a ``set mode auto'' has been done). Here, ppp configures the interface as soon as it sees the ``set ifaddr'' line and never undoes that configuration. An ``add'' with a fixed IP

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-23 Thread Brian Somers
Do you mean that "add" PPP command now intentionally broken for any address excepting *ADDR? Then, what is the reason to have numeric argument there? Or do you mean that PPP must be fixed now? Where is the fix? I mean that: 1. If you use HISADDR, ppp(8) will automatically re-add

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-23 Thread Andrey A. Chernov
On Fri, Mar 23, 2001 at 23:11:56 +, Brian Somers wrote: 1. Ppp is in -auto mode (or a ``set mode auto'' has been done). Here, ppp configures the interface as soon as it sees the ``set ifaddr'' line and never undoes that configuration. An ``add'' with a fixed IP number would

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-23 Thread Brian Somers
On Fri, Mar 23, 2001 at 23:11:56 +, Brian Somers wrote: 1. Ppp is in -auto mode (or a ``set mode auto'' has been done). Here, ppp configures the interface as soon as it sees the ``set ifaddr'' line and never undoes that configuration. An ``add'' with a fixed IP number

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-20 Thread Alexander Leidinger
On 19 Mr, Ruslan Ermilov wrote: You will have to add the following command to the relevant section of ppp.conf: add default HISADDR for this to work. I didn't use userland-ppp with I4B. BTW: After a reboot the first try to dialout succeeded, this time I did a "netstat -rn" before

Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Andrey A. Chernov
Now add default 1.1.1.1 command from /etc/ppp/ppp.conf does nothing interesting (PPP on demand), as result I have no route. Here is netstat -r after connection is established: Routing tables Internet: DestinationGatewayFlags Refs Use Netif Expire

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Andrey A. Chernov
On Mon, Mar 19, 2001 at 16:33:37 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 04:25:14PM +0300, Andrey A. Chernov wrote: Now add default 1.1.1.1 Perhaps, 1.1.1.1 should be written as HISADDR? No, it ALWAYS 1.1.1.1 and I have static IP address which not changed after

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Ruslan Ermilov
On Mon, Mar 19, 2001 at 05:39:47PM +0300, Andrey A. Chernov wrote: On Mon, Mar 19, 2001 at 16:33:37 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 04:25:14PM +0300, Andrey A. Chernov wrote: Now add default 1.1.1.1 Perhaps, 1.1.1.1 should be written as HISADDR? No,

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Andrey A. Chernov
On Mon, Mar 19, 2001 at 16:43:24 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 05:39:47PM +0300, Andrey A. Chernov wrote: On Mon, Mar 19, 2001 at 16:33:37 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 04:25:14PM +0300, Andrey A. Chernov wrote: Now add

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Maxim Sobolev
Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 05:39:47PM +0300, Andrey A. Chernov wrote: On Mon, Mar 19, 2001 at 16:33:37 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 04:25:14PM +0300, Andrey A. Chernov wrote: Now add default 1.1.1.1 Perhaps, 1.1.1.1 should be

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Ruslan Ermilov
On Mon, Mar 19, 2001 at 04:55:15PM +0200, Maxim Sobolev wrote: Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 05:39:47PM +0300, Andrey A. Chernov wrote: On Mon, Mar 19, 2001 at 16:33:37 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 04:25:14PM +0300, Andrey A. Chernov wrote:

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Ruslan Ermilov
On Mon, Mar 19, 2001 at 04:25:14PM +0300, Andrey A. Chernov wrote: Now add default 1.1.1.1 Perhaps, 1.1.1.1 should be written as HISADDR? command from /etc/ppp/ppp.conf does nothing interesting (PPP on demand), as result I have no route. Here is netstat -r after connection is

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Andrey A. Chernov
On Mon, Mar 19, 2001 at 16:56:40 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 05:52:02PM +0300, Andrey A. Chernov wrote: On Mon, Mar 19, 2001 at 16:43:24 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 05:39:47PM +0300, Andrey A. Chernov wrote: On Mon, Mar 19, 2001 at

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Ruslan Ermilov
On Mon, Mar 19, 2001 at 06:23:46PM +0300, Andrey A. Chernov wrote: On Mon, Mar 19, 2001 at 16:56:40 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at 05:52:02PM +0300, Andrey A. Chernov wrote: On Mon, Mar 19, 2001 at 16:43:24 +0200, Ruslan Ermilov wrote: On Mon, Mar 19, 2001 at

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Alexander Leidinger
On 19 Mr, Ruslan Ermilov wrote: 5. This affects not only ppp(8). Add default route that points to the LAN; change the IP address on interface; observe that the default route has gone away. The reason is that if we don't do this, we may end up using the old (now non-existing)

Re: Recent interface/routing changes breaks on-demand PPP

2001-03-19 Thread Ruslan Ermilov
On Mon, Mar 19, 2001 at 06:34:34PM +0100, Alexander Leidinger wrote: On 19 Mar, Ruslan Ermilov wrote: 5. This affects not only ppp(8). Add default route that points to the LAN; change the IP address on interface; observe that the default route has gone away. The reason is that