Next Previous Contents

6. Ethernet Information

This section covers information specific to Ethernet and the configuring of Ethernet Cards.

6.1 Supported Ethernet Cards

3Com

AMD, ATT, Allied Telesis, Ansel, Apricot

Cabletron, Cogent, Crystal Lan

Danpex, DEC, Digi, DLink

Fujitsu, HP, ICL, Intel

KTI, Macromate, NCR NE2000/1000, Netgear, New Media

PureData, SEEQ, SMC

Sun Lance, Sun Intel, Schneider, WD, Zenith, IBM, Enyx

6.2 General Ethernet Information

Ethernet devices names are `eth0', `eth1', `eth2' etc. The first card detected by the kernel is assigned `eth0' and the rest are assigned sequentially in the order they are detected.

Once you have your kernel properly built to support your ethernet card then configuration of the card is easy.

Typically you would use something like (which most distributions already do for you, if you configured them to support your ethernet):

        root# ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
        root# route add -net 192.168.0.0 netmask 255.255.255.0 eth0
        

Most of the ethernet drivers were developed by Donald Becker

6.3 Using 2 or more Ethernet Cards in the same machine

If your driver is a module (Normal with newer distros)

The module will typically can detect all of the installed cards.

Information fromt he detection is stored in the file:

/etc/conf.modules.

Consider that a user has 3 NE2000 cards, one at 0x300 one at 0x240, and one at 0x220. You would add the following lines to the /etc/conf.modules file:

        alias eth0 ne
        alias eth1 ne
        alias eth2 ne
        options ne io=0x220,0x240,0x300
   

What this does is tell the program modprobe to look for 3 NE based cards at the following addresses. It also states in which order they should be found and the device they should be assigned.

Most ISA modules can take multiple comma separated I/O values. For example:

        alias eth0 3c501
        alias eth1 3c501
        options eth0 -o 3c501-0 io=0x280 irq=5
        options eth1 -o 3c501-1 io=0x300 irq=7
        

The -o option allows for a unique name to be assigned to each module. The reason for this is that you can not have two copies of the same module loaded.

The irq= option is used to specify the hardware IRQ and the io= to specify the different io ports.

By default, the Linux kernel only probes for one Ethernet device, you need to pass command line arguments to the kernel in order to force detection of furter boards.

To learn how to make your ethernet card(s) working under Linux you should refer to the Ethernet-HOWTO.


Next Previous Contents