diald problem - ppp not replacing existing default route

diald problem - ppp not replacing existing default route

Post by Jason Robbi » Tue, 26 Nov 1996 04:00:00



Hello all,

    I am having trouble with the last hurdle of my diald/pppd configuration,
and was hoping that one of y'all might have surmounted the same problem.
ppp-on works fine manually, and diald starts up OK, but when I initiate that
first dns with a ping or an ftp command, /var/log/messages gets the comment:

ppp not replacing existing default route to sl0[127.0.0.3]

An ifconfig shows that both diald's sl0 interface and the ppp0 interface are
up, but route -n shows that sl0 has remained the default.    This machine is
the third on a small ethernet in my house, and is running the Redhat4.0 dist-
ribution.    I have gotten diald to work before, when I did not have an
ethernet and I was running an older kernel.    Does anyone have any help for
me here?    I've appended some pertinent info.    Thanks for your help.

Regards,
 _________________________________________________
| Jason Robbins                                   |

| phone:    (512) 934-5814                        |
| FAX:      (512) 934-6225                        |
|_________________________________________________|

How I am involking diald:

   diald /dev/ttyS0 -m ppp local 127.0.0.4 \
   remote 127.0.0.3 defaultroute modem crtscts \
   connect "/usr/sbin/ppp-on" dynamic

My /var/log/messages tail:

   Nov 21 22:01:10 bruno pppd[377]: Serial connection established.
   Nov 21 22:01:11 bruno pppd[377]: Using interface ppp0
   Nov 21 22:01:11 bruno pppd[377]: Connect: ppp0 <--> /dev/ttyS0
   Nov 21 22:01:13 bruno pppd[377]: local  IP address 207.8.41.52
   Nov 21 22:01:13 bruno pppd[377]: remote IP address 207.8.41.3
   Nov 21 22:01:13 bruno pppd[377]: ppp not replacing existing default
route to sl0[127.0.0.3]

ifconfig's output, right after I try to initiate dialup with a ping or ftp:


lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0
          TX packets:12 errors:0 dropped:0 overruns:0

eth0      Link encap:10Mbps Ethernet  HWaddr 00:00:C0:D4:44:13
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:525 errors:0 dropped:0 overruns:0
          TX packets:326 errors:0 dropped:0 overruns:0
          Interrupt:5 Base address:0x290 Memory:d0000-d2000

sl0       Link encap:Serial Line IP  
          inet addr:127.0.0.4  P-t-P:127.0.0.3  Mask:255.0.0.0
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
          TX packets:21 errors:0 dropped:0 overruns:0

ppp0      Link encap:Point-Point Protocol  
          inet addr:207.8.41.52  P-t-P:207.8.41.3  Mask:255.255.255.0
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0
          TX packets:6 errors:0 dropped:0 overruns:0

 
 
 

diald problem - ppp not replacing existing default route

Post by Randall Loomi » Tue, 26 Nov 1996 04:00:00



> Hello all,

>     I am having trouble with the last hurdle of my diald/pppd configuration,
> and was hoping that one of y'all might have surmounted the same problem.
> ppp-on works fine manually, and diald starts up OK, but when I initiate that
> first dns with a ping or an ftp command, /var/log/messages gets the comment:

> ppp not replacing existing default route to sl0[127.0.0.3]

> An ifconfig shows that both diald's sl0 interface and the ppp0 interface are
> up, but route -n shows that sl0 has remained the default.    This machine is
> the third on a small ethernet in my house, and is running the Redhat4.0 dist-
> ribution.    I have gotten diald to work before, when I did not have an
> ethernet and I was running an older kernel.    Does anyone have any help for
> me here?    I've appended some pertinent info.    Thanks for your help.

> Regards,
>  _________________________________________________
> | Jason Robbins                                   |

> | phone:    (512) 934-5814                        |
> | FAX:      (512) 934-6225                        |
> |_________________________________________________|

> How I am involking diald:

>    diald /dev/ttyS0 -m ppp local 127.0.0.4 \
>    remote 127.0.0.3 defaultroute modem crtscts \
>    connect "/usr/sbin/ppp-on" dynamic

> My /var/log/messages tail:

>    Nov 21 22:01:10 bruno pppd[377]: Serial connection established.
>    Nov 21 22:01:11 bruno pppd[377]: Using interface ppp0
>    Nov 21 22:01:11 bruno pppd[377]: Connect: ppp0 <--> /dev/ttyS0
>    Nov 21 22:01:13 bruno pppd[377]: local  IP address 207.8.41.52
>    Nov 21 22:01:13 bruno pppd[377]: remote IP address 207.8.41.3
>    Nov 21 22:01:13 bruno pppd[377]: ppp not replacing existing default
> route to sl0[127.0.0.3]

> ifconfig's output, right after I try to initiate dialup with a ping or ftp:


> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
>           UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
>           RX packets:12 errors:0 dropped:0 overruns:0
>           TX packets:12 errors:0 dropped:0 overruns:0

> eth0      Link encap:10Mbps Ethernet  HWaddr 00:00:C0:D4:44:13
>           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:525 errors:0 dropped:0 overruns:0
>           TX packets:326 errors:0 dropped:0 overruns:0
>           Interrupt:5 Base address:0x290 Memory:d0000-d2000

> sl0       Link encap:Serial Line IP
>           inet addr:127.0.0.4  P-t-P:127.0.0.3  Mask:255.0.0.0
>           UP POINTOPOINT RUNNING  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0
>           TX packets:21 errors:0 dropped:0 overruns:0

> ppp0      Link encap:Point-Point Protocol
>           inet addr:207.8.41.52  P-t-P:207.8.41.3  Mask:255.255.255.0
>           UP POINTOPOINT RUNNING  MTU:1500  Metric:1
>           RX packets:6 errors:0 dropped:0 overruns:0
>           TX packets:6 errors:0 dropped:0 overruns:0

pppd WILL NOT REPLACE YOUR DEFAULT ROUTE if you have already set one.
check your rc.inet1 file or wherever your configuring your ethernet
interface.  It very likely contains two route commands....
the first to add net to your ethernet interface,
the second to set a default gateway.
comment out the second route command to let pppd automatically set your
default route
Alternatively, you can specify a new default route in etc/ppp/ip-up

 
 
 

diald problem - ppp not replacing existing default route

Post by Karsten Jeppes » Wed, 27 Nov 1996 04:00:00



>Hello all,

>    I am having trouble with the last hurdle of my diald/pppd configuration,
>and was hoping that one of y'all might have surmounted the same problem.
>ppp-on works fine manually, and diald starts up OK, but when I initiate that
>first dns with a ping or an ftp command, /var/log/messages gets the comment:

>ppp not replacing existing default route to sl0[127.0.0.3]

>An ifconfig shows that both diald's sl0 interface and the ppp0 interface are
>up, but route -n shows that sl0 has remained the default.    This machine is
>the third on a small ethernet in my house, and is running the Redhat4.0 dist-
>ribution.    I have gotten diald to work before, when I did not have an
>ethernet and I was running an older kernel.    Does anyone have any help for
>me here?    I've appended some pertinent info.    Thanks for your help.

There is a very good page in toronto (Erik Schenk?) You can find the
pointer in the Linux doc project. Use E* to search for diald.
That is probably the fastest way to help you.
karsten
 
 
 

diald problem - ppp not replacing existing default route

Post by Jason Robbin » Wed, 27 Nov 1996 04:00:00


|
| >
| > Hello all,
| >
| >     I am having trouble with the last hurdle of my diald/pppd configuration,
| > and was hoping that one of y'all might have surmounted the same problem.
| > ppp-on works fine manually, and diald starts up OK, but when I initiate that
| > first dns with a ping or an ftp command, /var/log/messages gets the comment:
| >
| > ppp not replacing existing default route to sl0[127.0.0.3]

|
| pppd WILL NOT REPLACE YOUR DEFAULT ROUTE if you have already set one.
| check your rc.inet1 file or wherever your configuring your ethernet
| interface.  It very likely contains two route commands....
| the first to add net to your ethernet interface,
| the second to set a default gateway.
| comment out the second route command to let pppd automatically set your
| default route
| Alternatively, you can specify a new default route in etc/ppp/ip-up

I figured it out.   I was having diald call my stand-alone ppp-on script as the
"connect" script.   My ppp-on script would start pppd, then diald would try to
start it again.   The solution was to pair my ppp-on script down to a chat 'send-
expect' file and let diald start pppd as it is inclined to do.
Thanks very much for your post.

Jason

 
 
 

diald problem - ppp not replacing existing default route

Post by Ron Shar » Wed, 27 Nov 1996 04:00:00




<snip>

Quote:

> pppd WILL NOT REPLACE YOUR DEFAULT ROUTE if you have already set one.
> check your rc.inet1 file or wherever your configuring your ethernet
> interface.  It very likely contains two route commands....
> the first to add net to your ethernet interface,
> the second to set a default gateway.
> comment out the second route command to let pppd automatically set your
> default route
> Alternatively, you can specify a new default route in etc/ppp/ip-up

I've been having the same problem as Jason, and was reaching the
hair-pulling stage. I think you just solved it. Thank you! (And now to go
back over the PPP chapters in the books/docs I'm using and see if they
mention this anywhere...)

Ron Sharp.