Friday, 12 August 2011

Install LAN card driver - Tutorial

Most Linux drives come in zip format. You can extract them with tar utility. You can obtain LAN driver directly from manufactures sites or form other media like motherboard CD.
We assume that you have LAN driver and copied it in your root directory.
Extract driver file with tar utilityand change directory to extracted folder
Lan driver
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. )
install lan card driver
To install driver execute these commands as shown here or use readme files
install lan card driver
Now we are giving you the location of some important network configurations file cram these files

/etc/resolv.conf

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

modprobe.conf
The first line assigns the e100kernel module to the eth0 network device. If the network card is supported, the module isautomatically configured during installation or by Kudzu the first time the system isbooted with the new card.

/etc/hosts

hosts
file lists IP addresses and hostnames that should resolve to the IPaddresses. The first one listed, 127.0.0.1, is referred to as the loopbackinterface and should never be removed. If some hostnames can not be resolved bythe DNS servers, list them with their IP addresses after the loopback device.

/etc/sysconfig/networking/devices

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

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/

network scripts
In the /etc/sysconfig/network-scripts/ directory, each network device has its ownconfiguration file with the filename ifcfg-<devicename> such as ifcfg-eth0 for the firstEthernet 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 networkinitialization 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 beresolved by the DNS servers such as systems on the local network.
/etc/resolv.conf Sets the DNS servers (using their IP addresses) and the searchdomain. The values of the DNS servers are often added when the network is activatedbecause the data can be provided by DHCP or a similar service.
/etc/sysconfig/network-scripts/ Contains scripts to start and stop anetwork device and a specialized configuration file for each device.
/etc/rc.d/init.d/network Initialization script that starts and stops thenetwork.

0 comments:

Post a comment