Install lan driver in linux

How do I install a network driver on Linux?

I want to use eth0 driver, but my network card is UNCLAIMED. I use Killer e2200 Gigabit Ethernet controller. Please tell me how to install the Networkdriver and how to use eth0 .

3 Answers 3

If you have installed OS and you want to run Network Card as new hardware, you must ask the vendor for network drivers. Usually network drivers come with source pakage of kernel modules. You must compile driver module for you kernel.

    install «build essential» utilites

$ sudo apt-get install build-essential 
$ ./configure $ make $ sudo make install 

After installation you can load just compiled module by enter command:

$ sudo insmod your_module.so $ ifconfig eth0 up 

The latest network devices usually take a while to work their way into the Linux kernel. All drivers are usually built into big distributions like Debian (or Ubuntu) and Centos.

The other answer answers here give great detail on how to compile the driver module and insert it — if you look at the Linux source code, you can «grep» your device name in the /drivers/net directory eg.

grep -ri e2200 /usr/src/linux*/drivers/net/ 
grep -ri killer /usr/src/linux*/drivers/net/ 

It might yield something like:

drivers/net/dsa/Kconfig: tristate "Qualcomm Atheros QCA8K Ethernet switch family support" drivers/net/dsa/Kconfig: This enables support for the Qualcomm Atheros QCA8K Ethernet drivers/net/ethernet/atheros/Makefile:# Makefile for the Atheros network device drivers. drivers/net/ethernet/atheros/Kconfig:# Atheros device configuration drivers/net/ethernet/atheros/Kconfig:config NET_VENDOR_ATHEROS drivers/net/ethernet/atheros/alx/Makefile:obj-$(CONFIG_ALX) += alx.o drivers/net/ethernet/atheros/alx/Makefile:alx-objs := main.o ethtool.o hw.o drivers/net/ethernet/qualcomm/Kconfig: This enables support for the Qualcomm Atheros QCA7000. drivers/net/ethernet/qualcomm/Kconfig: tristate "Qualcomm Atheros QCA7000 SPI support" drivers/net/wireless/ath/ath9k/Kconfig: bool "Atheros bluetooth coexistence support" drivers/net/wireless/ath/ath9k/Kconfig: tristate "Atheros 802.11n wireless cards support" drivers/net/wireless/ath/ath9k/Kconfig: Atheros IEEE 802.11n AR5008, AR9001 and scan support" drivers/net/wireless/ath/Kconfig: bool "Atheros/Qualcomm devices" drivers/net/wireless/ath/Kconfig: For information on all Atheros wireless drivers visit: drivers/net/wireless/ath/ar5523/Kconfig: tristate "Atheros AR5523 wireless driver support" drivers/net/wireless/ath/carl9170/Kconfig: This is the mainline driver for the Atheros "otus" 802.11n USB devices. drivers/net/wireless/ath/ath10k/Kconfig: tristate "Atheros 802.11ac wireless cards support" drivers/net/wireless/ath/ath10k/Kconfig: Atheros IEEE 802.11ac family of chipsets. drivers/net/wireless/ath/ath6kl/Makefile:# Copyright (c) 2004-2011 Atheros Communications Inc. drivers/net/wireless/ath/ath6kl/Makefile:# Copyright (c) 2011-2012 Qualcomm Atheros, Inc. drivers/net/wireless/ath/wcn36xx/Kconfig: Qualcomm Atheros WCN3660 and WCN3680 mobile chipsets. drivers/net/wireless/ath/ath5k/Kconfig: bool "Atheros 5xxx AHB bus support" drivers/net/wireless/ath/ath5k/Kconfig: This adds support for WiSoC type chipsets of the 5xxx Atheros drivers/net/wireless/ath/ath5k/Kconfig: bool "Atheros 5xxx PCI bus support" drivers/net/wireless/ath/ath5k/Kconfig: This adds support for PCI type chipsets of the 5xxx Atheros 

I’ve trimmed some lines for brevity. But the module names are the same as the directory before Kconfig, so you can check if it is active with lsmod:

Читайте также:  How to use python on linux

Sometimes my intel drivers for my onboard Wi-Fi dies, then I have to remove and re-add it:

rmmod iwlmvm modprobe iwlmvm 

Then magically it works again. I still need to contribute this fix to the NetworkManager project.

If this returns «alx», then the driver is already loaded:

If not, you’re out of luck. You can manage the interface with the «ifconfig» or «ip link» commands:

Newer Linuxes don’t use «eth» as interface names any more.

So I grepped my kernel tree for «killer» and «e2200» and couldn’t find anything. Then I did a web search, and found out that is is an Atheros device, and similar to the «alx» driver. Someone updated the driver to work with your card, lucky you. If there are enough cards like that out in the world, or he upstreamed it, all you have to do is to update Linux and it will just work.

Welcome to Linux! No go out and buy some older hardware that someone has already made free drivers for. 🙂

Источник

Linux Server Configurations Steps.

Lan driver

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 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.

Читайте также:  Команды linux ubuntu server

/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-/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- 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.

Источник

Technology Group for Knowledge and Research

Free CCNA CCNP Wireless, Networking Server 2012 R2 Server 2008 Windows 7, Windows 8, Linux Server, Cisco, DNS, Mobile Apps and Quick Notes.

Pages

Friday, 5 August 2016

How to install lan card driver in Linux

How to install lan card driver in Linux

Lan driver

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 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

Читайте также:  Kali linux русификация на флешке

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-/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- 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.

Источник

Оцените статью
Adblock
detector