/etc/hosts and networks stop working once ppp default route is on

/etc/hosts and networks stop working once ppp default route is on

Post by Edward Dieg » Wed, 18 Nov 1998 04:00:00



I have a small LAN and a cablemodem for connecitng to the internet. As
long as I am not connected to the internet all names of my local hosts
resolve fine. Also when I type route it gives me the name of the
networks as in:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
cablemodem      *               255.255.255.240 U     0      0        3
eth0
intranet              *               255.255.255.0     U     0      0
      2 eth1
loopback           *               255.0.0.0             U     0      0
       0 lo

now when I connect with ppp (My cablemodem requires me to dial out my
modem).
my /etc/hosts and /etc/networks stop working completely.
I can use the internet normally and DNS works properly but when trying
to connect
to my local hosts it gives me a resolving error. a
when I delete the default route it works normally when I add it again it
stops
working.
Also route does not
resolve the names of the networks so it looks like this;
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
max5.ds9-ca-us. *               255.255.255.255 UH    0      0        0
ppp0
10.0.0.0             *               255.255.255.240    U     0      0
      4 eth0
192.168.0.0       *               255.255.255.0        U     0      0
     2 eth1
127.0.0.0           *               255.0.0.0                U     0
  0        0 lo
default         max5.ds9-ca-us. 0.0.0.0                UG    0      0
     1 ppp0

so names that can be resolved by dns are resolved but the local stuff
isn't.

I have a correctly set up /etc/hosts.conf file with
order hosts,bind

This is really strange and I've been struggling for weeks to get it to
work. Any ideas what could be going wrong with this??

 
 
 

/etc/hosts and networks stop working once ppp default route is on

Post by Clifford Ki » Wed, 18 Nov 1998 04:00:00


: I have a small LAN and a cablemodem for connecitng to the internet. As
: long as I am not connected to the internet all names of my local hosts
: resolve fine. Also when I type route it gives me the name of the
: networks as in:

: Kernel IP routing table
: Destination     Gateway     Genmask          Flags Metric Ref    Use Iface
: cablemodem      *           255.255.255.240  U     0      0       3 eth0
: intranet        *           255.255.255.0    U     0      0       2 eth1
: loopback        *           255.0.0.0        U     0      0       0 lo

: now when I connect with ppp (My cablemodem requires me to dial out my
: modem) my /etc/hosts and /etc/networks stop working completely.

: I can use the internet normally and DNS works properly but when trying
: to connect to my local hosts it gives me a resolving error. a
: when I delete the default route it works normally when I add it again it
: stops working.  Also route does not resolve the names of the networks
: so it looks like this;

: Kernel IP routing table
: Destination     Gateway     Genmask           Flags Metric Ref    Use Iface
: max5.ds9-ca-us. *           255.255.255.255   UH    0      0       0 ppp0
: 10.0.0.0        *           255.255.255.240   U     0      0       4 eth0
: 192.168.0.0     *           255.255.255.0     U     0      0       2 eth1
: 127.0.0.0       *           255.0.0.0         U     0      0       0 lo
: default    max5.ds9-ca-us.  0.0.0.0           UG    0      0       1 ppp0

: so names that can be resolved by dns are resolved but the local stuff
: isn't.

: I have a correctly set up /etc/hosts.conf file with order hosts,bind

: This is really strange and I've been struggling for weeks to get it to
: work. Any ideas what could be going wrong with this??

--

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

 
 
 

/etc/hosts and networks stop working once ppp default route is on

Post by Vincent Zweij » Thu, 19 Nov 1998 04:00:00




||  I have a small LAN and a cablemodem for connecitng to the internet. As
||  long as I am not connected to the internet all names of my local hosts
||  resolve fine. Also when I type route it gives me the name of the
||  networks as in:

[Reformatted. Please use a fixed-width font and don't word-wrap.]

||  Destination     Gateway         Genmask         Flags Metric Ref Use Iface
||  cablemodem      *               255.255.255.240 U     0      0   3   eth0
||  intranet        *               255.255.255.0   U     0      0   2   eth1
||  loopback        *               255.0.0.0       U     0      0   0   lo
||
||  now when I connect with ppp (My cablemodem requires me to dial out my
||  modem).
||  my /etc/hosts and /etc/networks stop working completely.
||  I can use the internet normally and DNS works properly but when trying
||  to connect
||  to my local hosts it gives me a resolving error. a
||  when I delete the default route it works normally when I add it again it
||  stops
||  working.
||  Also route does not
||  resolve the names of the networks so it looks like this;

||  Destination     Gateway         Genmask         Flags Metric Ref Use Iface
||  max5.ds9-ca-us. *               255.255.255.255 UH    0      0   0   ppp0
||  10.0.0.0        *               255.255.255.240 U     0      0   4   eth0
||  192.168.0.0     *               255.255.255.0   U     0      0   2   eth1
||  127.0.0.0       *               255.0.0.0       U     0      0   0   lo
||  default         max5.ds9-ca-us. 0.0.0.0         UG    0      0   1   ppp0

This example shows that reverse hostname lookups work fine - your gateway
is shown by its hostname.

It is reverse network lookups that don't work.

||  I have a correctly set up /etc/hosts.conf file with
||  order hosts,bind

/etc/host.conf only arranges hostname<->address lookups. The names
shown by the first route output are networks. These can be found in
/etc/networks.

The newer libc6 uses /etc/nsswitch.conf for things that /etc/host.conf
used to do. This can be used to configure network lookups too.

Look into /etc/nsswitch.conf. My guess is you have nis or dns lookups
configured before files. This fails and falls back to files when ppp0
is down, but succeeds with no result when ppp0 is up.

Ciao.                                                            Vincent.
--

<http://www.xs4all.nl/~zweije/>      | don't read, does anybody get burnt?"
[Xhost should be taken out and shot] |            -- Paul Tomblin on a.s.r.

 
 
 

1. ppp no longer work after installed cable modem (now I have default route)

Hi Everyone,

My kppp used to work fine.  Recently, after I subscribed cable modem I
got:

Aug 29 16:16:47 tiger pppd[1823]: By default the remote system is
required to authenticate itself
Aug 29 16:16:47 tiger pppd[1823]: (because this system has a default
route to the internet)
Aug 29 16:16:47 tiger pppd[1823]: but I couldn't find any suitable
secret (password) for it to use to do so.
Aug 29 16:16:47 tiger pppd[1823]: (None of the available passwords would
let it use an IP address.)

How do I set my linux box so that it does not require peer to
authenticate itself?

Many thanks in advance.

Yibing Fan
------------------

2. Interviews Status

3. PPP and Network default route

4. Print Spooler Limits

5. RH 5.1 networking, and mail routing / hosting etc.

6. alias in bourne shell

7. Default Route not working with ppp

8. Revision Control System [RCS]

9. PPP working, /etc/ppp/ip-up not working, HELP Please

10. routing tabels loosing default route using PPP

11. PPP working, /etc/ppp/ip-up not working, HELP Please

12. Routing under PPP and stopping PPP