diald routing problem, no default route for ppp0 with correct gateway

diald routing problem, no default route for ppp0 with correct gateway

Post by stef » Wed, 05 Jan 2000 04:00:00



Hello people,

I have a problem using diald. It correctly starts a ppp0 interface when needed, however the default
route for ppp0 is omitted, as can be seen from the following:

no diald, no ppp:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
127.0.0.0       *               255.0.0.0       U     0      0        0 lo

no diald, ppp:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
isp.isp.isp.isp *               255.255.255.255 UH    0      0        0 ppp0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         isp.isp.isp.isp 0.0.0.0         UG    0      0        0 ppp0

diald, no ppp:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.2        *               255.255.255.255 UH    0      0        0 sl0
10.0.0.2        *               255.255.255.255 UH    1      0        0 sl0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         *               0.0.0.0         U     1      0        0 sl0

diald, ppp:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
isp.isp.isp.isp *               255.255.255.255 UH    0      0        0 ppp0
10.0.0.2        *               255.255.255.255 UH    0      0        0 sl0
10.0.0.2        *               255.255.255.255 UH    1      0        0 sl0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         *               0.0.0.0         U     1      0        0 sl0

This last setup lets me ping my isp, but nothing else. What do I need to do, given this
configuration:

/etc/diald/diald.conf:

accept any 420 any
device /dev/modem
speed 115200
lock
mode ppp
dynamic
local 10.0.0.1
remote 10.0.0.2
up-delay 5
defaultroute    
modem
crtscts
connect /etc/ppp/ppp-on
redial-timeout 10
fifo /etc/diald/diald.ctl

/etc/ppp/ppp-on:

/usr/sbin/pppd debug lock modem crtscts /dev/modem 115200 noauth \
defaultroute  connect "/usr/bin/wvdial --chat"

/etc/ppp/options:

asyncmap 0
#nobsdcomp
deflate 14,14
bsdcomp 15,15
#nodefaultroute
#debug
#kdebug 1
name pap_login_name

I hope to have given enough info, thank you for reading this lengthy mail,

Stephan.

 
 
 

diald routing problem, no default route for ppp0 with correct gateway

Post by Krunoslav Cicmi » Sat, 08 Jan 2000 04:00:00



> Hello people,

> I have a problem using diald. It correctly starts a ppp0 interface when needed, however the default
> route for ppp0 is omitted, as can be seen from the following:

> no diald, no ppp:

> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo

> no diald, ppp:

> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> isp.isp.isp.isp *               255.255.255.255 UH    0      0        0 ppp0
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
> default         isp.isp.isp.isp 0.0.0.0         UG    0      0        0 ppp0

> diald, no ppp:

> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 10.0.0.2        *               255.255.255.255 UH    0      0        0 sl0
> 10.0.0.2        *               255.255.255.255 UH    1      0        0 sl0
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
> default         *               0.0.0.0         U     1      0        0 sl0

> diald, ppp:

> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> isp.isp.isp.isp *               255.255.255.255 UH    0      0        0 ppp0
> 10.0.0.2        *               255.255.255.255 UH    0      0        0 sl0
> 10.0.0.2        *               255.255.255.255 UH    1      0        0 sl0
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
> default         *               0.0.0.0         U     1      0        0 sl0

> This last setup lets me ping my isp, but nothing else. What do I need to do, given this
> configuration:

> /etc/diald/diald.conf:

> accept any 420 any
> device /dev/modem
> speed 115200
> lock
> mode ppp
> dynamic
> local 10.0.0.1
> remote 10.0.0.2
> up-delay 5
> defaultroute
> modem
> crtscts
> connect /etc/ppp/ppp-on
> redial-timeout 10
> fifo /etc/diald/diald.ctl

> /etc/ppp/ppp-on:

> /usr/sbin/pppd debug lock modem crtscts /dev/modem 115200 noauth \
> defaultroute  connect "/usr/bin/wvdial --chat"

> /etc/ppp/options:

> asyncmap 0
> #nobsdcomp
> deflate 14,14
> bsdcomp 15,15
> #nodefaultroute
> #debug
> #kdebug 1
> name pap_login_name

> I hope to have given enough info, thank you for reading this lengthy mail,

> Stephan.

Put  this in your diald.conf .  I think that you understand this... Hope it will help

reroute
accounting-log /var/log/diald.log

 
 
 

1. Routed, default routes and ppp0 interfaces ?

I recently decided to start using kernel ppp rather than the user ppp
supplied with 2.1.5.

Naturally (well at least to me!) I edited /etc/sysconfig and removed the
references to the tun0 device (although I haven't removed it from the
kernel)  

I therefore have in my /etc/sysconfig

 network_interfaces="lo0 ppp0"

ifconfig_lo0="inet localhost"

Now I have several problems....

1) In my /etc/hosts I have defined
        127.0.0.1       localhost.icon.com.au   localhost
        10.0.0.1        t-rex.icon.com.au       t-rex

   Now for some reason I can't finger the 10.0.0.1 interface...
   Unless I add
        ifconfig_lo0="inet 10.0.0.1"
   which deletes the 127.0.0.1 route!!!

   How can I fix this ???
   Or more to the point what have I done wrong ????

2) I'm running named and routed on a standalone machine for
several         reasons - i.e. the learning experience, and since some
people know       this machine by various names.

   sometimes pppd doesn't add the appropriate routes to make
a              connection to my ISP...

   Why ?

Any help appreciated....posts to this group will be received, e-mail
will not :( (my account is down!)

Regards,
David Henshaw

2. ATA with SMART

3. How automatic route trafic from default gateway to second gateway then connect to default will broken

4. tcsh: How to make 'complete' accept multiple command-patterns?

5. RH 5.2: Routing table losing default route/gateway

6. LinuxPPC 2k backside cache prob

7. diald default route problems

8. Linux Counter: 162136 registered Linux users

9. diald problem - ppp not replacing existing default route

10. in ppp1, out ppp0? 2 default routes?

11. Routing Problem with pppd default route option.

12. ppp0 on startup and default route

13. Routed problem --- sub-net routing in /etc/gateways