From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,1671a8e3784125fd X-Google-Attributes: gid111c93,public From: Mark Hesselink Subject: Re: Two network-cards under Alpha Linux Date: 1999/10/05 Message-ID: <37F9C469.A40AAFEF@student.utwente.nl>#1/1 X-Deja-AN: 533003412 Content-Transfer-Encoding: 7bit References: <7t9d96$nv3$1@toad.stack.nl> <37F9682E.60FC0B18@home.com> X-Accept-Language: en X-Server-Date: 5 Oct 1999 09:27:05 GMT Content-Type: text/plain; charset=us-ascii Organization: University of Twente, Enschede, The Netherlands Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha If you have an old ISA network card en you don't want to use modules, there's a solution to detect more than one card during booting. You have to change some lines in the file Space.c in /usr/src/linux/drivers/net. Firstly somewhere around line 644 (it depends on your kernel version) the following is written: #ifndef ETH0_ADDR # define ETH0_ADDR 0 #endif #ifndef ETH0_IRQ # define ETH0_IRQ 0 #endif To add another NIC, you have to add the following lines after these lines: #ifndef ETH1_ADDR # define ETH1_ADDR 0 #endif #ifndef ETH1_IRQ # define ETH1_IRQ 0 #endif To add more NIC's, change ETH1 into ETH2, ETH3 or ETH4, etc. Secondly somewhere around line 673 the following is written: static struct device eth0_dev = { "eth0", 0, 0, 0, 0, ETH0_ADDR, ETH0_IRQ, 0, 0, 0, ð1_dev, ethif_probe }; To add another NIC, change the lines 670 and 671 into: static struct device eth1_dev = { "eth1", 0, 0, 0, 0, ETH1_ADDR, ETH1_IRQ, 0, 0, 0, ð2_dev, ethif_probe }; To add more NIC's change the lines 669 till 658 according the above instructions. This solution works on x86 machines, but I think it's a general solution. Mark Hesselink