Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ppp not replacing default route

929 views
Skip to first unread message

Guy William Hayton

unread,
Sep 6, 1997, 3:00:00 AM9/6/97
to

Yes, I have read the PPP-HOWTO for connecting my Redhat 4.2 Linux system
up to my demon account. I used netcfg as recommended in the HOWTO, but I
have also gone through the manual methods of editing /etc files as per
slackware instructions on ftp.demon and those within the HOWTO.

If I invoke chat with the -v option I can see what's happening in
/var/log/messages Chat dials in and connects, making the protocol PPP.
then the pppd demon takes over and says that the...
Serial connection established
Using interface ppp0
Connect: ppp0 <---> /dev/modem
local IP address 192.168.37.1
remote IP address 158.152.83.147
ppp not replacing existing default route to eth0[192.168.37.254]
Terminating on signal 15.
Connection terminated.

Now it seems that everything is okay until it tries to configure the
routing aspect (as in netcfg) in particular the gateway.
Basically I have a little network of 192.168.37.x where machines are
labelled 1,2,3 etc. The 158.152.83.147 is my permanent IP address at
demon.

Can anybody help, surely somebody else has connected to demon with Linux
RH4.2 or am I the only person.... TIA and more info can be provided to
anybody brave enough to take up the task of helping me...

Cheers
--
Guy William Hayton
Email: g...@hayton.demon.co.uk
Web Site: http://www.hayton.demon.co.uk

John Phillips

unread,
Sep 6, 1997, 3:00:00 AM9/6/97
to

Caveat emptor - I don't know Red Hat, but here are some comments.

Guy William Hayton <g...@hayton.demon.co.uk> writes:
> local IP address 192.168.37.1
> remote IP address 158.152.83.147

Concerning the ppp connection:

1. The local IP should be your static Demon IP of 158.152.83.147.

2. The remote IP should be 158.152.1.222 (demon-du.demon.co.uk).

3. Your ethernet addresses (192.168.37.X) should not be involved.

I think you must have set up a host name that translates to 192.168.37.1
and pppd therefore thinks this is your local address when connected.
This makes it mistaken about the local IP address. I don't know why
it's mistaken about the remote IP address.

I suggest either:

1. Use the "noipdefault" pppd option, possibly in /etc/ppp/options,
which is best but can be unwittingly overridden depending on other
aspects of the pppd configuration; or

2. Force pppd to use the right local:remote addresses with this
option "158.152.83.147:158.152.1.222" possibly in /etc/ppp/options; or

3. Set /etc/HOSTNAME (or wherever RH keeps this) to your Demon host name
("hayton") and RH's pppd should get the local IP right automatically
(after a re-boot).

> ppp not replacing existing default route to eth0[192.168.37.254]

Your ethernet seems to be set up with a default route pointing to it.
This is OK when not connected, but you need the default route pointing
to ppp0 when connected. Apparently, an existing default route won't be
replaced by pppd.

There are a couple of options I could suggest:

1. Delete the "route add default ..." from the routine that sets up
your ethernet and replace it with "route add -net 192.168.37.0" This
works if those are the only addresses on eth0.

2. If you must have the default route pointing to eth0 when off-line
you could delete it "route del ..." before connecting and restore it
with "route add default ..." after disconnecting. Not recommended
unless it's really necessary.
--
John Phillips jo...@linux.demon.co.uk


Dave Brown

unread,
Sep 6, 1997, 3:00:00 AM9/6/97
to

Guy William Hayton (g...@hayton.demon.co.uk) wrote:
: local IP address 192.168.37.1
: remote IP address 158.152.83.147
: ppp not replacing existing default route to eth0[192.168.37.254]
: Terminating on signal 15.
: Connection terminated.

The problem is with the first line, i.e. local IP Address 192.168.37.1. What
PPP is doing, is instead of using your Demon IP Address, it's using your
Ethernet IP Address.

To correct the fault edit the file /usr/local/etc/demon_ppp.dip and go to the
section that deals with announcing the connection. You will either need to
add a line, or enable the line that reads "get $local xxx.demon.co.uk". In my
case I changed the line to read:-

get local fingermouse.demon.co.uk

Once you done that you should find everything works fine. Keep checking
your logs in /var/adm/messages to ensure that PPP is getting the right
local and remote IP addresss.

Yours,
Dave.


Guy William Hayton

unread,
Sep 8, 1997, 3:00:00 AM9/8/97
to

In article <5ur69n$kio$1...@linux.demon.co.uk>, John Phillips
<jo...@linux.demon.co.uk> writes

>Caveat emptor - I don't know Red Hat, but here are some comments.
>
>1. The local IP should be your static Demon IP of 158.152.83.147.

>2. The remote IP should be 158.152.1.222 (demon-du.demon.co.uk).

Okay, I changed this in netcfg accordingly, got a bit confused here
particularly as my Demon notes I got when I enrolled show the remote ip
to be a gateway???

The final change was to remove a default gateway for eth0, in fact I
left this completely blank. Anyway Ive just connected to Demon and
pinged the gateway and just done some browsing with Netscape
Communicator 4.03 great stuff.

Thing for me to do is to make copious notes on what I've done... write a
wrapper program to run the connect scripts as an ordinary user and then
look at configuring email services.... somehow I think I will be using
my WIN96/Turnpike machine for a while yet 8-)

Cheers for everyones help, especially you John

0 new messages