How to install lan card driver in Linux
We assume that you have LAN driver and copied it in your root directory.
Extract driver file with tar utility and change directory to extracted folder
Every LAN driver have a readme file telling the way to install that driver
( Note:- driver will compile only if you have proper compiler, we recommended that you install gcc compiler during installation. )
To install driver execute these commands as shown here or use readme files
Now we are giving you the location of some important network configurations file cram these files
/etc/resolv.conf
This file contain information about DNS server. you can set DNS ip in this files. Each nameserver line represents a DNS server, and the search line specifies domain names to try if only the first part of a hostname is used.
/etc/modprobe.conf
The first line assigns the e100 kernel module to the eth0 network device. If the network card is supported, the module is automatically configured during installation or by Kudzu the first time the system is booted with the new card.
/etc/hosts
file lists IP addresses and hostnames that should resolve to the IP addresses. The first one listed, 127.0.0.1, is referred to as the loopback interface and should never be removed. If some hostnames can not be resolved by the DNS servers, list them with their IP addresses after the loopback device.
/etc/sysconfig/networking/devices
File contain the list of all detected and install LAN card. This is the location of all networking scripts. you can create new virtual LAN card in this directory. even you can change IP configurations and default booting behavior of LAN card by directly editing in files.
/etc/sysconfig/network
This file is mostly used to change hostname permanently. If the NETWORKING option is set to yes, the networking subsystem is enabled but not necessarily started at boot time. The value of the HOSTNAME option is the hostname for the system. If one is not set, the default hostname is localhost. Refer to the file /usr/share/doc/initscripts-<version>/sysconfig.txt for additional options for this file.
/etc/sysconfig/network-scripts/
In the /etc/sysconfig/network-scripts/ directory, each network device has its own configuration file with the filename ifcfg-<devicename> such as ifcfg-eth0 for the first Ethernet device. If the device is configured for a static IP address, the interface configuration file looks similar to image given below. If the ONBOOT option is set to yes, the device is activated at boot time using the network initialization script.
Network Configuration Files
File | Descriptions |
/etc/modprobe.conf | Assigns a kernel module to each network device. |
/etc/sysconfig/network | Sets the hostname and whether the networking is enabled. IPv6 is enabled or disabled in this file. |
/etc/hosts | Lists hosts and their IP addresses for hostnames that can't be resolved by the DNS servers such as systems on the local network. |
/etc/resolv.conf | Sets the DNS servers (using their IP addresses) and the search domain. The values of the DNS servers are often added when the network is activated because the data can be provided by DHCP or a similar service. |
/etc/sysconfig/network-scripts/ | Contains scripts to start and stop a network device and a specialized configuration file for each device. |
/etc/rc.d/init.d/network | Initialization script that starts and stops the network. |
No comments:
Post a Comment