* Linux/Alpha box as gateway: can't recognize 2 network adapters
@ 1998-09-24 4:00 Terran Lane
1998-09-25 4:00 ` Eugene Koontz
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Terran Lane @ 1998-09-24 4:00 UTC (permalink / raw)
I'm trying to configure my Linux/Alpha box (RedHat 4.0, Linux 2.0.32)
to run as a gateway between an ethernet LAN and an ADSL connection to
an ISP. I think that in principle this should be easy (although I'm
far from being a network admin), but I'm having problems getting the 2
network adapters to be recognized simultaneously. I have an SMC ISA
EzCard10 and an ancient NE2000 knockoff (also ISA -- I've been using
it in a small LAN for years with no problem, so I don't think it's a
NE2000 compat problem). Both seem to run fine under the good old
NE2000 driver, but only one at a time -- on boot, the probe finds one
or the other but not both. I've tried the incantation in the
Multiple-Ethernet mini-HOWTO:
boot sda4:vmlinux.gz root=/dev/sda4 ether=0,0,eth1
and the variant (the SMC docs claim that IO addrs from 0x200-0x3E0 are
acceptable, and IRQ 10 seems to be available according to
/proc/interrupts):
boot sda4:vmlinux.gz root=/dev/sda4 ether=10,0x200,eth1
but no dice. Neither card is jumpered and I'm a bit lost on how to
force them into particular IRQ/IOaddr configs. The SMC card claims to
be PnP, but the other far predates that technology (and I don't know
how to control PnP under Linux anyway).
Anyway, any clues would be deeply appreciated. Please, please, please
respond via email -- I try to keep up with the news, but get swamped
easily...
Many thanks in advance for any/all assistance.
P.S. On a separate, but related, note -- what is the appropriate
assignment of IP addrs to the two network adapters on the gateway box?
(Told you I'm not a network admin... ;-) We have static IP addrs for
the machines on the internal LAN, and obviously the adapter connected
to the ADSL line has to have the number for the gateway machine, but
can the same number also be assigned to the other network adapter in
the same box? Or can I get away with assigning that adapter a private
number from one of the reserved local network address blocks
(e.g. 192.168.0.1), and pointing the other machines on the LAN to that
as gateway?
--
Terran Lane email=terran@ecn.purdue.edu
WWW=http://mow.ecn.purdue.edu/~terran/
PGP key=http://mow.ecn.purdue.edu/~terran/facts/pgp_key.html
"But I don't want to go among mad people," Alice remarked.
"Oh, you can't help that," said the Cat: "we're all mad here. I'm mad.
You're mad."
"How do you know I'm mad?" said Alice.
"You must be," said the Cat, "or you wouldn't have come here."
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Linux/Alpha box as gateway: can't recognize 2 network adapters
1998-09-24 4:00 Linux/Alpha box as gateway: can't recognize 2 network adapters Terran Lane
@ 1998-09-25 4:00 ` Eugene Koontz
1998-09-25 4:00 ` Evan Carew
1998-09-25 4:00 ` Joe Zeff
2 siblings, 0 replies; 5+ messages in thread
From: Eugene Koontz @ 1998-09-25 4:00 UTC (permalink / raw)
To: Terran Lane
Hi,
I have the same configuration as you're trying to set up - 1 ethernet
card connected to a DSL line, the other to an internal network. I have
an 486, not an alpha, but I this will help you anyway.
This is what I did :
1.got isapnptools
2.ran isapnpdump to generate the file /etc/isapnp.conf
3.edited the /etc/isapnp.conf file to choose interrupts and addresses
(shown below)
4.ran isapnp /etc/isapnp.conf
5.loaded the ethernet driver modules by doing :
insmod /lib/modules/current/net/8390.o (required by both wd and ne2000,
I think)
insmod /lib/modules/current/net/ne.o io=0x280 irq=9 (one card is a
ne2000 clone)
insmod /lib/modules/current/net/wd.o io=0x300 irq=5 (one card is a wd
clone)
steps 4 and 5 were put in /etc/rc.d/rc.sysinit so they are done
automatically at boot ....let me know if anything is unclear....
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Linux/Alpha box as gateway: can't recognize 2 network adapters
1998-09-24 4:00 Linux/Alpha box as gateway: can't recognize 2 network adapters Terran Lane
1998-09-25 4:00 ` Eugene Koontz
@ 1998-09-25 4:00 ` Evan Carew
1998-09-25 4:00 ` Terran Lane
1998-09-25 4:00 ` Joe Zeff
2 siblings, 1 reply; 5+ messages in thread
From: Evan Carew @ 1998-09-25 4:00 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]
Terran,
I feel your pain. I just went through this one myself on a Compaq Proliant
5000 server this year. The problem lies in your not being able to probe for
interfaces when you have more than one of them. I remember reading why this
was a problem, but have since forgoten why.
The long and the short of it is that if you are using NE2000 clones, you are
going to fave to find some way to set and save their configurations so you
can explicitly refrence their locations in either the boot parameters or the
kernel config file. Only after you can get a successfully saved compatable
setup on both cards will it boot up fine and recognize them both.
Terran Lane wrote:
> I'm trying to configure my Linux/Alpha box (RedHat 4.0, Linux 2.0.32)
> to run as a gateway between an ethernet LAN and an ADSL connection to
> an ISP. I think that in principle this should be easy (although I'm
> far from being a network admin), but I'm having problems getting the 2
> network adapters to be recognized simultaneously. I have an SMC ISA
> EzCard10 and an ancient NE2000 knockoff (also ISA -- I've been using
> it in a small LAN for years with no problem, so I don't think it's a
> NE2000 compat problem). Both seem to run fine under the good old
> NE2000 driver, but only one at a time -- on boot, the probe finds one
> or the other but not both. I've tried the incantation in the
> Multiple-Ethernet mini-HOWTO:
--
----==-- _ / / \
---==---(_)__ __ ____ __ / / /\ \
--==---/ / _ \/ // /\ \/ / / /_/\ \ \
-=====/_/_//_/\_,_/ /_/\_\ /______\ \ \
A proud member of TeamLinux \_________\/
email: carew@home.msen.com web: http://home.msen.com/~carew
[-- Attachment #2: Type: text/html, Size: 1984 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Linux/Alpha box as gateway: can't recognize 2 network adapters
1998-09-25 4:00 ` Evan Carew
@ 1998-09-25 4:00 ` Terran Lane
0 siblings, 0 replies; 5+ messages in thread
From: Terran Lane @ 1998-09-25 4:00 UTC (permalink / raw)
Evan Carew <ecarew@yahoo.com> writes:
> Terran,
>
> I feel your pain. I just went through this one myself on a Compaq Proliant
> 5000 server this year. The problem lies in your not being able to probe for
> interfaces when you have more than one of them. I remember reading why this
> was a problem, but have since forgoten why.
>
> The long and the short of it is that if you are using NE2000 clones, you are
> going to fave to find some way to set and save their configurations so you
> can explicitly refrence their locations in either the boot parameters or the
> kernel config file. Only after you can get a successfully saved compatable
> setup on both cards will it boot up fine and recognize them both.
Yeah, someone suggested a similar approach in email. Are you aware of
any Linux-based tool that will do this? Alternatively, is it possible
to plug the card into a PC, run the config software that came bundled
with to set the opts, then plug the card back into my alpha box?
Admittedly, far from optimal, but will it work if necessary?
Anyway, thanks for your suggestions!
--
Terran Lane email=terran@ecn.purdue.edu
WWW=http://mow.ecn.purdue.edu/~terran/
PGP key=http://mow.ecn.purdue.edu/~terran/facts/pgp_key.html
"But I don't want to go among mad people," Alice remarked.
"Oh, you can't help that," said the Cat: "we're all mad here. I'm mad.
You're mad."
"How do you know I'm mad?" said Alice.
"You must be," said the Cat, "or you wouldn't have come here."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Linux/Alpha box as gateway: can't recognize 2 network adapters
1998-09-24 4:00 Linux/Alpha box as gateway: can't recognize 2 network adapters Terran Lane
1998-09-25 4:00 ` Eugene Koontz
1998-09-25 4:00 ` Evan Carew
@ 1998-09-25 4:00 ` Joe Zeff
2 siblings, 0 replies; 5+ messages in thread
From: Joe Zeff @ 1998-09-25 4:00 UTC (permalink / raw)
Terran Lane <terran@wills.ecn.purdue.edu> wrote:
>P.S. On a separate, but related, note -- what is the appropriate
>assignment of IP addrs to the two network adapters on the gateway box?
>(Told you I'm not a network admin... ;-) We have static IP addrs for
>the machines on the internal LAN, and obviously the adapter connected
>to the ADSL line has to have the number for the gateway machine, but
>can the same number also be assigned to the other network adapter in
>the same box? Or can I get away with assigning that adapter a private
>number from one of the reserved local network address blocks
>(e.g. 192.168.0.1), and pointing the other machines on the LAN to that
>as gateway?
The adapter that connects to the world will have whatever IP address
your ISP gives it. Remember, the gateway will need to have address
translation[1] turned on.
[1]I think Linux calls this Masquerading, but I'm not sure.
---
Joe Zeff
The Guy With the Sideburns
If you can't play with words, what good are they?
http://www.lasfs.org
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-09-25 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-24 4:00 Linux/Alpha box as gateway: can't recognize 2 network adapters Terran Lane
1998-09-25 4:00 ` Eugene Koontz
1998-09-25 4:00 ` Evan Carew
1998-09-25 4:00 ` Terran Lane
1998-09-25 4:00 ` Joe Zeff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox