[Prev][Next][Index][Thread]

Re: your mail



On Tue, 29 Oct 1996, Reda Bakkali wrote:

> Hi guys,
> I ve a linux machine with 3 ethernet card.
> I d like to compile the kernel for those 3 card.
> how can i do that.
> Thanx
> 
> ========================================================================
> Reda Bakkali 
> Morocco Trade and Development Services S.A.	tel: +212-767-4861
> 43, Rue Oukaimeden #2				fax: +212-767-4863
> 10000 Rabat-Agdal				rbakkali@mtds.com
> MOROCCO						http;//www.mtds.com
> 						http://mtds-nt.mtds.com	
> ========================================================================
> 
Ahlan, Bonjur, etc.
In order to make a multi-homed host (a host with more than one ethernet
or other type of interface) you need three things:

 1. Support for each type of card (regardless of how many you have)
 2. /etc/lilo.conf parameters to tell lilo to look for more than one card
    regardless of what type of cards they are
 3. Much time, luck and patience if you are doing this for the first time

Before you start, make sure you have a working emergency boot diskette
with your current kernel on it. You should also have install diskettes
handy.

You build support for different vendors cards into the kernel by doing
the following:

  cd /usr/src/linux
  make config

You are presented with a script dialog that asks you a bunch of yes/no
questions. Press the enter key for anything you don't understand. The
defaults are usually ok. Eventually you are asked about network cards.
Answer "y" to any you think you have. If know the manufacturer but do
not know the model, answer "y" to all the cards from that manufacturer
that you are asked about. Having extra drivers wont hurt - it just makes
the kernel bigger. After you find the exact model numbers by watching
the boot sequence you can rebuild the kernel with just the drivers you
need. Answer "y" when asked about "Other" cards.

Assuming you found your cards in the configuration script and you kept
on pressing "y" untill the end of the script, you should be ready to
build the kernel. To do this, do:

  make dep; make clean; make zImage

The build could take from 20 minutes to an hour depending on the machine.
Afterwards,

  cp /vmlinuz /vmlinuz-old
  cp arch/i386/boot/zImage /vmlinuz

Now you need to add the cards into the /etc/lilo.conf because only one
card is probed for during the boot sequence. A standard lilo linux
partition config looks like this:

# Linux bootable partition config begins
image = /vmlinuz
  root = /dev/hda1
  label = linux
  read-only # Non-UMSDOS filesystems should be mounted read-only for 
checking
# Linux bootable partition config ends

Add "append" lines as follows:

# Linux bootable partition config begins
image = /vmlinuz
  append  = "reserve=0x360,32 ether=5,0x360,eth1"
  append  = "reserve=0x340,32 ether=9,0x340,eth2"
  root = /dev/hda1
  label = linux
  read-only # Non-UMSDOS filesystems should be mounted read-only for 
checking
# Linux bootable partition config ends

The append lines say that you want to reserve addresses 340 and 360
for ethernet cards on IRQs 5 and 9 respoctively. Of course you will
have to modify this (or change the settings on the cards) appropriately.

Then do:

  /sbin/lilo
  /sbin/reboot

If you are lucky, you new kernel will work and at least some of your
cards will be detected. If not, then you have a lot of interesting
reading ahead of you!

Good luck, its not easy!

 - yba

N.B. On older systems you may get the notorious "socket destroy delayed"
     message. Ignore it for the meantime, that is, until I figure out
     how to fix it.

   EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA    ~. .~   TclTek Ltd.
 =}-------------------------------------------------ooO--U--Ooo-----------{=
  - benavrhm@tcltek.co.il - tel: +972.52.670.353, http://www.tcltek.co.il -


Follow-Ups: References: