network broken

Bill Maltby LFS Related lfsbill at
Mon Aug 26 10:43:11 PDT 2002

On Mon, 26 Aug 2002 dildir at wrote:

> Bill Maltby LFS Related (lfsbill at wrote:
> .....
> > > > I can't ncftp anywhere because connection refused.  
> > 
> > Hmmm. No thant I think about it, this may indicate a different problem.
> > If the ifconfig-lo doesn't fix you up, more detail about your set up might
> > help. Gateway? PPP? And other such stuff.
> ......
> I havn't set up a gateway.  This is supposed to become my gateway to the
> net (then I don't need one right(?!?)?)  I've got /etc/sysconfig/network
> as:
> HOSTNAME=myhostname
> GATEWAY=   #
> GATEWAY_IF=  #/dev/ttys1
> should I delete the last two lines?

I don't know. I'm not a net expert. And it's been a couple of years since
I did the PPP thing on the RH 6.0. I would suggest first getting the
latest BLFS book and carefully reviewing what's in there. I don't wvdial,
I just ppp-chat. So I'm not equipped to give definitive answers for your
situation. But if you hang in, there are some others who will show and
they know a lot more than myself about this stuff.

That said, here is my /etc/sysconfig/network from that gateway machine.
Many of these will not apply - I have a registered domain and a block of
IP addresses. So I don't dhcp. You probably do. There is a section in the
book about mods needed for that.

    NETWORKING=yes               # For RH only?
    FORWARD_IPV4="yes"           # Once you make it gateway?
    HOSTNAME=""  # Do you need this one?         # Do you need this one?

> /etc/sysconfig/network-devices/ifconfig.eth0 as:
> ONBOOT=yes
> IP=

Mine is similar, mostly the DEVICE= difference looks most significant.

But I don't know what you need if your not into a local net already.

> When connecting to the net ppp seems alright.
> /var/daemon.log tells me named is listning and when dialing in that pppd
> connects.  
> /var/dns_logs reports queries from my own IP.  I have installed bind

One of the important things to keep in mind is that when you connect to
your ISP, you probably need to add a default route. With netstat -nr, you
should see a line like this very last one

Destination     Gateway         Genmask       Flags MSS Window  irtt
Iface UH  0   0       0 eth0 UH  0   0       0 ppp0 U   0   0       0 eth0   U   0   0       0 eth0       U   0   0       0 lo         UG  0   0       0 ppp0

With just netstat -r, it should be like

Destination     Gateway         Genmask         Flags MSS Window irtt
Iface   *      UH    0   0      0 eth0 *      UH    0   0      0 ppp0    *      U     0   0      0 eth0     *        U     0   0      0 eth0       *            U     0   0      0 lo
default         UG    0   0      0 ppp0

This is done manually with the "route add..." command, of may be done as
part of the ifup/ifpost scripts, like on my RH system.

> Some other network problems that may or may not be related.  wvdial only
> connets when run as root.  otherwise ttyS1 is repotedly busy.  I cannot
> get named to shutdown properly in the rc scripts(also connection
> refused), manually I can.  I'm trying to tackle this one problem at a
> time, but it may be related.

This is where I think if you wait for other LFSers, you'll get better
answers now.

> thanks for your help so far Bill, I try not to be silly but sometimes it
> just happens.

Me too! Pleasant side-effect of the associative processor we call a
"brain" (sometimes doubtful that it qualifies as such).

> Dirk

Bill Maltby
billm at

Unsubscribe: send email to listar at
and put 'unsubscribe blfs-support' in the subject header of the message

More information about the blfs-support mailing list