network broken

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


On Mon, 26 Aug 2002 dildir at wanadoo.fr wrote:

> Bill Maltby LFS Related (lfsbill at wlmcs.com) 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=   #192.168.0.1
> 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="wlmlx1.wlmcs.com"  # Do you need this one?
    DOMAINNAME=wlmcs.com         # Do you need this one?
    GATEWAY=""
    GATEWAYDEV=""

> 
> /etc/sysconfig/network-devices/ifconfig.eth0 as:
> 
> ONBOOT=yes
> IP=192.168.0.1
> NETMASK=255.255.255.0
> BROADCAST=192.168.1.255

Mine is similar, mostly the DEVICE= difference looks most significant.
    
    DEVICE="eth0"
    IPADDR="192.168.1.102"
    NETMASK="255.255.255.0"
    ONBOOT="yes"

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
192.168.1.102   0.0.0.0         255.255.255.255 UH  0   0       0 eth0
205.139.153.138 0.0.0.0         255.255.255.255 UH  0   0       0 ppp0
206.27.61.96    0.0.0.0         255.255.255.240 U   0   0       0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U   0   0       0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U   0   0       0 lo
0.0.0.0         205.139.153.138 0.0.0.0         UG  0   0       0 ppp0

With just netstat -r, it should be like

Destination     Gateway         Genmask         Flags MSS Window irtt
Iface
192.168.1.102   *               255.255.255.255 UH    0   0      0 eth0
205.139.153.138 *               255.255.255.255 UH    0   0      0 ppp0
206.27.61.96    *               255.255.255.240 U     0   0      0 eth0
192.168.1.0     *               255.255.255.0   U     0   0      0 eth0
127.0.0.0       *               255.0.0.0       U     0   0      0 lo
default         205.139.153.138 0.0.0.0         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 wlmcs.com

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



More information about the blfs-support mailing list