Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* dual ethernet, glibc and name resolving
@ 1997-07-18 17:43 Stephen Williams
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Williams @ 1997-07-18 17:43 UTC (permalink / raw)


I  tried to get my Linux/alpha machine to support 2 ethernet cards and
I ran into some difficulties.

The ifconfig for eth0 works fine.

The ifconfig for lo or eth1 hangs. I see by strace that it is sending DNS
messages full speed, not waiting for replies. It is doing a select with
aa zero timeout. Presumably it doesn't do this for eth0 because glibc
notices that there are no routes to any DNS server.

If I edit /etc/nsswitch.conf so that only files are searched, then
ifconfig complains that 127.0.0.1: host not found or whatever for all the
ip host and network addresses I supply.

RedHat Linux
2.0.30 kernel for alpha
net-tools-1.32.alpha-2
glibc-0.961212-4
The ethernet cards are a DE450 and 3c509. These seem to be OK.

-- 
Steve Williams
steve@icarus.com
steve@picturel.com

"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dual ethernet, glibc and name resolving
@ 1997-07-20  0:56 Stephen Williams
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Williams @ 1997-07-20  0:56 UTC (permalink / raw)


steve@icarus.icarus.com said:
> I  tried to get my Linux/alpha machine to support 2 ethernet cards 
> and I ran into some difficulties. 

I have more details.

The redhat setup scripts go through the config files in

	/etc/sysconfig/network-scripts/ifcfg-*

in sorted order. In my configuration I have eth0, eth1 and lo. The script
configures eth0 just fine, but the ifconfig to enable eth1 hangs. In the
process, the network spits out copious messages to 127.0.0.1 on the
physical network. Ah hah!

So if I manualy make sure that the lo device is configured before all the
others, then everything works just fine.

Something in glibc is assuming the presence of lo, whether it is there or
not. This is, in this case, not correct. My work-around is to edit the
rc.d/init.d/network script to always start the lo device before any others.

Is there a better fix out there (or is it up to me to download glibc and
fix it?)

-- 
Steve Williams
steve@icarus.com
steve@picturel.com

"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dual ethernet, glibc and name resolving
@ 1997-07-21  1:27 Stephen Williams
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Williams @ 1997-07-21  1:27 UTC (permalink / raw)


> steve@icarus.icarus.com said:
> > I  tried to get my Linux/alpha machine to support 2 ethernet cards 
> > and I ran into some difficulties. 

anti@spin.de said:
> I don't have multiple ethercards, but I'm experiencing the same sort 
> of trouble with aliased net-devices (eth0:1, eth0:2 ...); 

I found the problem. Upgrade your initscripts rpm. The problem is that the
network interfaces are configured out of order. The later versions are
changed so that the loopback device is always configured first, thus
curing most problems of this nature. Worked for me.

-- 
Steve Williams
steve@icarus.com
steve@picturel.com

"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dual ethernet, glibc and name resolving
@ 1997-07-21  2:25 Stephen Williams
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Williams @ 1997-07-21  2:25 UTC (permalink / raw)


steve@icarus.icarus.com said:
> I  tried to get my Linux/alpha machine to support 2 ethernet cards 
> and I ran into some difficulties. 

I got this configuration to work. The problems were:

	initscripts was out of date. Make sure you have the latest as
	the network setup works in the single board case only by
	accident. My version was actually pretty old.

	Upgrading the XFree86 from 3.2 to 3.3 seemed to help the funny
	troubles with 3Com board vs. X server.

So now my PC165-500mhz officially replaces my sun4m.

Smokin'.

-- 
Steve Williams
steve@icarus.com
steve@picturel.com

"The woods are lovely, dark and deep.  But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: dual ethernet, glibc and name resolving
@ 1997-07-21 11:39 Andi Hechtbauer
  0 siblings, 0 replies; 5+ messages in thread
From: Andi Hechtbauer @ 1997-07-21 11:39 UTC (permalink / raw)


Stephen Williams <steve@icarus.icarus.com> writes:

> steve@icarus.icarus.com said:
> > I  tried to get my Linux/alpha machine to support 2 ethernet cards 
> > and I ran into some difficulties. 

I don't have multiple ethercards, but I'm experiencing the same sort of
trouble with aliased net-devices (eth0:1, eth0:2 ...);

One thing I found out rather soon is that w/out /etc/nsswitch.conf the
libc (glibc-0.961212-3) is not able (or not willing) to read my /etc/hosts 
at all.
Of course this not only bugs ifconfig and route, but everything that uses
resolver(3) routines.
It is not sufficient to put "order hosts,bind" into the /etc/host.conf.
So I came around to throw in a minimal /etc/nsswitch.conf w/ just one
line: hosts   files dns.

Another thing that hung up the /etc/rc.d/init.d/network process was that
I had two nameserver entries in the resolv.conf, one local one remote: 
It seems ifconfig and route tried to contact that remote nameserver before 
having built a route to it, although there would have been sufficient
information in /etc/hosts or the local 127.0.0.1 nameserver.
Why do ifconfig and route try to reverse-lookup IP's anyway? Is there a
hidden option to turn that off? (I've been considering mangling the sources
and recompile, but then, that would have been all the wrong approach to solve
this ... bug(?).) 

> [...]
> So if I manualy make sure that the lo device is configured before all the
> others, then everything works just fine.

Doesn't work for me. at least not all the time. I haven't got around as to
why it sometimes just runs ok. 

> Something in glibc is assuming the presence of lo, whether it is there or
> not. This is, in this case, not correct. My work-around is to edit the
> rc.d/init.d/network script to always start the lo device before any others.

The libc seems to be compiled for a rather specific setup at least. And
not reading /etc/hosts without a nsswitch.conf can not be called a feature.

> Is there a better fix out there (or is it up to me to download glibc and
> fix it?)

I'll give looking at it a try, but then, I'm not considering myself very good
at this kind of stuff, and I'd just hate running into other problems with
my 'customized' libc...
Perhaps we should contact some guru at redhat? Anyone from Redhat listening,
who is into this kind of things?

Ah well, my system looks like this:
alpha pc164, redhat 4.1 (some packets from 4.2),
kernel 2.0.30 (built from pristine sources w/ Digital's new patch)
alternate 2.0.30 kernel from redhat rpm. (same effects)
glibc-0.961212-3
glibc-static-0.961212-3
glibc-devel-0.961212-3
net-tools-1.32.alpha-2
initscripts-2.81-1
setup-1.7-1

Bye,

-- 
Andi Hechtbauer                                                 anti@spin.de 
System Administration                               voice: +49 941 94 65 939
SPiN GmbH                  http://www.spin.de/        fax: +49 941 94 65 938  
---------- web design - java chats - guestbooks - java/cgi coding ----------

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-07-21 11:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-21  2:25 dual ethernet, glibc and name resolving Stephen Williams
  -- strict thread matches above, loose matches on Subject: below --
1997-07-21 11:39 Andi Hechtbauer
1997-07-21  1:27 Stephen Williams
1997-07-20  0:56 Stephen Williams
1997-07-18 17:43 Stephen Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox