pppd not setting up default route in routing table

pppd not setting up default route in routing table

Post by Ray Benjami » Tue, 16 Feb 1999 04:00:00



Hi,

I'm trying to get my Redhat Linux 5.2 machine to talk to the internet.
Eventually, I want to use it as a gateway for my home network which will
have a couple of Win98 machines.

I used the Linux tools to set up the modem and network stuff.  When I
activate the ppp0 interface, I get a good connection to my ISP.  I can ping
the remote host that is listed in /var/log/messages, but I can't get beyond
that machine.

When I look at the routing table using 'route -nr', I see that a default
route hasn't been set up.  If I check the pppd process, I see that pppd was
started with the defaultroute argument.  My assumption is that the lack of a
default route is causing my problem, but I don't know how to fix it.  I've
tried adding the route manually with 'route add ipaddress default', but that
doesn't work.

I'm at a loss as to what to try next.
You can reply directly to me using email by deleting the .nospam from my
email address.

Thanks,
  Ray

 
 
 

pppd not setting up default route in routing table

Post by Howard Pa » Tue, 16 Feb 1999 04:00:00


Ray:

Is nodefaultroute enabled inside the ppp configuration file?

Quote:>I used the Linux tools to set up the modem and network stuff.  When I
>activate the ppp0 interface, I get a good connection to my ISP.  I can ping
>the remote host that is listed in /var/log/messages, but I can't get beyond
>that machine.

>When I look at the routing table using 'route -nr', I see that a default
>route hasn't been set up.  If I check the pppd process, I see that pppd was
>started with the defaultroute argument.


 
 
 

pppd not setting up default route in routing table

Post by Clifford Ki » Wed, 17 Feb 1999 04:00:00


: When I look at the routing table using 'route -nr', I see that a default
: route hasn't been set up.  If I check the pppd process, I see that pppd was
: started with the defaultroute argument.  My assumption is that the lack of a
: default route is causing my problem, but I don't know how to fix it.  I've

You have an existing default route to the LAN, it's not necessary since
a network route will work quite well.  Remove this default route and pppd,
with the defaultroute option, will create a default route through the
PPP interface.  But even with this option pppd won't replace an existing
route.

I can't tell you what to change by using RH configuration scripts though.

--

/* Speak softly and carry a +6 two-handed sword. */

 
 
 

pppd not setting up default route in routing table

Post by DJ Irvi » Thu, 18 Feb 1999 04:00:00


try looking at /etc/sysconfig/network...one line has gateway

GATEWAY=192.168.1.1 or whatever

change it to 0.0.0.0 and then no default route to eth0 should be created
when starting networking...

Dean



>: When I look at the routing table using 'route -nr', I see that a default
>: route hasn't been set up.  If I check the pppd process, I see that pppd
was
>: started with the defaultroute argument.  My assumption is that the lack
of a
>: default route is causing my problem, but I don't know how to fix it.
I've

>You have an existing default route to the LAN, it's not necessary since
>a network route will work quite well.  Remove this default route and pppd,
>with the defaultroute option, will create a default route through the
>PPP interface.  But even with this option pppd won't replace an existing
>route.

>I can't tell you what to change by using RH configuration scripts though.

>--

>/* Speak softly and carry a +6 two-handed sword. */

 
 
 

1. pppd not setting default route

This is a multi-part message in MIME format.

--------------6271733B1918
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

i am using:
Slackware distribition 3.1
kernel 2.0.12
i have ppp and TCP/IP compiled into my kernel

here is the prob.
I am trying to connect to my ISP with ppp.
i use minicom to dial up and log in manually, this works fine.
i then execute the following command to start pppd, the mesaages that
follow
are taken from /var/log/messages.

Looking at the messages pppd starts and takes control of the serial port
but when i use ifconfig to look at the network devices.
there is no ppp0 device and no default route is created for my ppp
connection.

--------------6271733B1918
Content-Type: text/plain; charset=us-ascii; name="PPP.TXT"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="PPP.TXT"

Here is the command used to start pppd.
---------------------------------------

pppd -d -detach lcp-max-configure 50 /dev/cua1 38400 &

Here are the ppp messages in /var/log/messages.
-----------------------------------------------
May 31 13:26:48 mcfly kernel: PPP: version 2.2.0 (dynamic channel allocation)
May 31 13:26:48 mcfly kernel: TCP compression code copyright 1989 Regents of the University of California
May 31 13:26:48 mcfly kernel: PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
May 31 13:26:48 mcfly kernel: PPP line discipline registered.

May 31 15:10:06 mcfly kernel: registered device ppp0
May 31 15:10:06 mcfly pppd[254]: pppd 2.2.0 started by root, uid 0
May 31 15:10:06 mcfly pppd[254]: Using interface ppp0
May 31 15:10:06 mcfly pppd[254]: Connect: ppp0 <--> /dev/cua1

May 31 15:10:13 mcfly pppd[257]: pppd 2.2.0 started by root, uid 0
May 31 15:10:13 mcfly pppd[257]: Device cua1 is locked by pid 254
May 31 15:10:13 mcfly pppd[257]: Exit.

May 31 15:10:31 mcfly pppd[254]: Modem hangup
May 31 15:10:31 mcfly pppd[254]: Connection terminated.
May 31 15:10:31 mcfly pppd[254]: Exit.

--------------6271733B1918--

2. redirecting output

3. Default Route Set OK (by pppd), but its not being exported?

4. Using GDB with EMACS

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

6. PC reset when installing

7. default route entry vanishing from routing table

8. the mysterious x

9. Routing table default route entry question

10. Routing Problem with pppd default route option.

11. routed kills default route from pppd

12. How Do Routing Table Entries Get Added to Routing Table at Bootup?

13. route packet based on incoming interface, not by routing table??