Well ... you should be able to connect to an Ethernet LAN and a ppp host
simultaneously, at least - I do it all the time (using Slackware 3.5). This
is easy, though - only 1 default route is needed, the one for the ppp
connection. 

Moving between a LAN-only setup and a ppp-only setup can be a little
tougher, since each needs a different default route. The usual problems here
involve default routes and nameservers. You'll probably need a pair of shell
scripts to modify route entries and /etc/resolv.conf .

To answer your first question, Slackware's initial route setup is in
/etc/rc.d/rc.inet1, the same script that sets up your Ethernet interface
(eth0). Look for the line with the phrase "route default" in it. But it's
not broken, so you can't simply fix it here.

What you probably need to do is create a shell script (called something like
"athome") that modifies your setup for ppp by

a. removing the default route for the LAN.

b. swapping in a version of resolv.conf that has the nameservers appropriate
to the ppp connection (if you dial into your LAN at work, this may not be
needed - you may use the same nameservers).

c. starting up your ppp connection.

and possibly ...

d. restoring the LAN defaults when the ppp connection ends. (There are
several other ways to handle the restore - reboot, or have a second script
"atwork" that does it - and I don't know which is best for your situation.)

At 04:29 PM 5/1/99 -0400, Robert Pope wrote:
>Gang:
>
>       I've got my laptop all set up with Slackware, connected to the
>network at work.  Everything works fine--telnet, FTP, all that.
>
>       I've tried configuring PPP so I can reach the Internet from home
>and the dang thing ain't working.  What I see is the message that "PPPd is
>not replacing the default route", as outlined in the Linux PPP HOWTO.
>
>       Okay, so I can only have one default route.  That seems fair.  But
>here's where things start falling apart.  The HOWTO says to explore my
>system initialization files to find out where this default route is being
>set up.
>
>       Two questions:  Where the heck am I supposed to be looking, and
>once I find it, how do I fix it?
>
>       One more:  CAN I have an ethernet connection at work and use a
>modem at home on the same laptop without having to reconfigure?  That
>"other" operating system lets me do it...
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
762 Garland Drive
Palo Alto, CA  94303-3603
650.328.4219 voice                              [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to