Linux operating system network card installation guide (below)

  


Step4: drive the second network card

To drive the second network card, just modify the file /etc/conf.modules The second network card can be made to work normally. You can configure your second NIC by referring to the following example: vim /etc/conf.modules

alias eth0 3c501


alias eth1 3c501

options eth0 -o 3c501-0 io=0x280 irq=5

options eth1 -o 3c501-1 io=0x300 irq=7

In this example, the option -o is used to give each module The instance has a unique name because it is not possible to load two modules with the same name. The option irq= is also used to specify the hardware IRQ for the NIC settings (this method can also be used for modules that accept multiple comma-separated I/O values, but this will cause the module to be loaded twice unnecessarily, reducing effectiveness).

Finally, we give an example of two different types of network cards, assuming that the user has a 3c503 network card at 0x350 and a SMC Elite16 (wd8013) network card at 0x280. It should be set in conf.modules as:

alias eth0 wd

alias eth1 3c503

options wd io=0x280

options 3c503 io=0x350

Step5: NIC setup tool

After the NIC driver, you will need to set some network parameters. The Linux system provides a lot of related tools. The following is a brief introduction to their usage.

1. netconf:

is mainly used to set network-related parameters. It can be run under consle (text menu) or in X-Window (graphical interface).

2, netconfig:

Slackware Linux provides an interactive Q&A interface for network parameter setting.

3, ifconfig

The most commonly used tools for displaying and setting up network devices in Linux systems.

4, route

The route command is used to view and set the routing information of the Linux system to achieve communication with other networks. To achieve network communication between two different subnets, you need a gateway that connects two network routers or two networks at the same time.

In Linux, we usually set up routing to solve the following problem: The Linux system has a gateway in the LAN, which allows your machine to access the Internet, so you need to use this machine. The IP address is set to the default route of the Linux machine.

1) Add a default route:

route add 0.0.0.0 gw gateway address

2) Delete a default route:

route del 0.0. 0.0 gw gateway address

3) Display the current routing table

route

The above is how to configure the network card on XteamLinux 4.0, I hope to help everyone.




Copyright © Windows knowledge All Rights Reserved