How to install the dual network card under Linux

Source: Internet
Author: User

There are two kinds of situations in practical application

1. When the driver is used as a module:

For PCI cards, the module automatically detects all installed network adapters. However, the ISA card is not the same, you need to manually specify the IO address and interrupt number, so that the module can find the network card. The information is stored in the file/etc/conf.modules.

For example, a user has two Isa Ne2000 NIC, one for 0x300 and the other for 0x240. So, in the Conf.modules file, you should write this:

Alias Eth0 NE

Alias Eth1 NE

Options NE io=0x240,0x300

You can also import the same module two times, as follows:

Alias Eth0 3c501

Alias Eth1 3c501

Options Eth0-o 3c501-0 io=0x240 irq=5

Options Eth1-o 3c501-1 io=0x300 irq=7

In this example, the-o option means that each imported module has a different claim. Once you have the correct conf.modules settings, you can check:

Modprobe ethn

DMESG | Tail

* Where the n indicates the number of the network card you need to detect.

2. The driver has been compiled into the kernel (Kernel):

If the driver is already in the kernel, then the multiple NIC settings are already in place. However, the default is to automatically detect a single network card, which prevents an abnormal suspension at startup.

The simple approach is to pass the parameters to the startup kernel, which is done by Lilo. If you have two network card: one: io=0x300,irq=5; second: io=0x280,irq=15, can be set up in Lilo's configuration file.

This will use the append command. In image= .... Below the line is written append=\ "ether=5,

0x300,eth0 ether=15,0x280,eth1\ "Then it is OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.