[NTLUG:Discuss] PPP and LAN
MadHat
madhat at unspecific.com
Fri Nov 3 07:11:44 CST 2000
Randall Gibson wrote:
>
> Hehe, this is the same problem I have been putting up with, sort of.
> I am using a laptop, and when on my LAN, it has a default route to the
> firewall. When I try to use it for a dialup, while not on LAN, I have to
> add a defult route to ppp0 becuse pppd doesnt seem to want to do it on its
> own when there is already a defult route. Is there a way to fix this that
> is "More correct" than just adding a line to the ppp-up script??
>
Not that I have found. For my particcular use, I ended upo removing the
default route and added routes for the local networks I have here, and
let pppd set the default. This means I can't get past my local lan,
unless dialed up, but this suits my needs. I know on my laptop, I
always had to shut off my networking to get PPP to work, but I thought
it was because of the lack of connection through eth0, not the route...
learn something new each day.
> On Thu, 02 Nov 2000 13:24:41 MadHat wrote:
> > MadHat wrote:
> > >
> > > I know there is an easy answer here, but I can't find it....
> > > I have a box on a lan, and I want to get that box to dial out to
> > connect
> > > to an ISP and get some data. But to get it to dial out I have to shut
> > > off the LAN first. This is very anoying if I am not sitting in front
> > of
> > > that machine and want to test the scipts I am using. 2.2.x kernel,
> > > using pppd and chat in a script to connect (not ppp-up or kppp or
> > > anything like that).
> > >
> > > Everything appears to work fine, except the connection will die unless
> > > the LAN is taken down first (no error messages any the logs). I am
> > > looking through the HOWTOs and searching, but do not see an answer,
> > > though I now it is out there.
> > >
> > > Thanks
> >
> >
> > Thanks... it was a default route issue. I added static routes for the
> > local machines, so that I can ssh into the box from the LAN, but can't
> > get out to the internet (fine for now), and when I dialup, I get a
> > default route set by pppd, and everything is happy.
--
MadHat at unspecific.com
"The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris."
--Larry Wall
More information about the Discuss
mailing list