Date: Thu, 21 May 1998 12:04:35 -0400
From: Pete Durst <[EMAIL PROTECTED]>
To: "RedHat List" <[EMAIL PROTECTED]>
Subject: IP Forwarding Problem
Message-Id: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Pete Durst <[EMAIL PROTECTED]> wrote:

> I have an interesting problem that I hope someone can help me with.  I took
> my old 486/100 added ram so that it has 64MB and set it up to be a scsi
> based system.  I took an adaptec 2940 and connected a seagate 1.0 gb drive
> to it, as well as a scsi cdrom.  I added 2 3Com 3c509b NIC's to the system
> and set them up so that one is irq=10,io=300 and the other is irq=5,
> io=210.  The host adaptor is set for irq=11.  I cleaned the drive and did a
> fresh install of the 2.0.32 kernel (cheapbytes redhat cd) and all looks
> fine at this point.  Both NICs are activated at boot time, and I can access
> both the private network and the internet (2nd NIC connected to a cable
> modem).  At this point, I want to setup ip forwarding/masq'ing so that the
> computers on my private net can see the world.  No Problem, I follow the
> FAQ on kernel building/compiling and on IP-masq'ing.  I turned on the
> suggested options and kept the ones I thought I required.  After building
> the kernel and installing it (changing lilo.conf, copying it to /boot, etc)
> I rebooted the system, selected the new kernel at the lilo prompt and
> watched linux ignore the 2nd NIC (the one on irq=5,io=210).  Being somewhat
> perplexed, I rebooted again, and selected the original kernel and saw it
> recognize the NIC's and work just fine.  Hmmm.  I rebooted again and
> selected the new kernel again, and like last time, got only the one NIC
> (the message states  that the system is delaying eth1 initialization).  I
> tried adding the append="ether=5,0x210,eth1" line to lilo.conf but it just
> ignored it (same message).  Can anybody tell me what is going on?  The only
> thing that I noticed was the order in which things happen in the kernels is
> different.  In the original kernel it appears the NICS are started first
> before the scsi, and it appears to be vice-versa on the new kernel.  Please
> Help.
> 
> Pete

I've just had the identical frustration, but found a crystal clear
explanation of what's needed on Donald Becker's Web page:
http://cesdis.gsfc.nasa.gov/linux/misc/multicard.html

Following these instructions, for my PC with two identical NE2000
NIC's, I edited /etc/conf.modules:

    alias eth0 ne
    alias eth1 ne
    options ne io=0x280,0x320

and /etc/lilo.conf:

    boot=/dev/hda
    map=/boot/map
    install=/boot/boot.b
    prompt
    timeout=50
    image=/boot/vmlinuz-2.0.32
        label=linux
        root=/dev/hda5
        append="ether=0,0,eth1 ether=0,0,eth2"
        read-only

Run /sbin/lilo, reboot, and voila!  Two ethernet cards are probed and
their IO addresses and IRQ's are discovered.
I think you need to be sure the NIC's are preset with IO addresses
that are probed by the driver you are using.  Check the code in
/usr/src/linux/drivers/net/<your_driver.c> to be sure.  
Or just put the right values in the 'append' line to preempt probing.

Then you must use Control-Panel, Network Configurator to define the
interfaces with proper IP addresses and make them active.

-- 
        David A. De Graaf    DATIX, Inc.    Hilton Head Is., SC  
        [EMAIL PROTECTED]       803-785-3136, -3156 (fax)


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to