How to install the suse12.1 NIC-general Linux technology-Linux technology and application information. For more information, see the following. NIC driver not identified when setting network
I do not know how to install the NIC driver after downloading it. I heard that I want to check the readme file, but I cannot understand it.
The content in readme is as follows:
This is the Linux device driver released for RealTek RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP, RTL8168D/8111D Gigabit Ethernet controllers with PCI-Express interface.
-Kernel source tree (supported Linux kernel 2.6.x and 2.4.x)
-For linux kernel 2.4.x, this driver supports 2.4.20 and latter.
-Compiler/binutils for kernel compilation
Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed.
# Lsmod | grep r8169
If it is installed, please remove it.
# Rmmod r8169
Note: If the built-in driver cannot removed by rmmod, please edit/etc/modprobe. conf and comment 'Alias eth0 r8169 '. Then, remmove it again or reboot your computer.
Unpack the tarball:
# Tar vjxf r8168-8.aaa.bb.tar.bz2
Change to the directory:
# Cd r8168-8.aaa.bb
If you are running the target kernel, then you shoshould be able to do:
# Make clean modules (as root or with sudo)
# Make install
# Depmod-
# Modprobe r8168
You can check whether the driver is loaded by using following commands.
# Lsmod | grep r8168
# Ifconfig-
If there is a device name, ethX, shown on the monitor, the linux
Driver is loaded. Then, you can use the following command to activate
The ethX.
# Ifconfig ethX up
, Where X = 0, 1, 2 ,...
1. Set manually
A. Set the IP address of your machine.
# Ifconfig ethX "the IP address of your machine"
B. Set the IP address of DNS.
Insert the following configuration in/etc/resolv. conf.
Nameserver "the IP address of DNS"
C. Set the IP address of gateway.
# Route add default gw "the IP address of gateway"
2. Set by doing configurations in/etc/sysconfig/network-scripts
/Ifcfg-ethX for Redhat and Fedora, or/etc/sysconfig/network
/Ifcfg-ethX for SuSE. There are two examples to set network
Events.
A. Fix IP address:
DEVICE = eth0
BOOTPROTO = static
ONBOOT = yes
TYPE = ethernet
NETMASK = 255.255.255.0
IPADDR = 192.168.1.1
GATEWAY = 192.168.1.254
BROADCAST = 192.168.1.255
Will force PHY to operate in 100 Mpbs Half-duplex (nway force ).
2. Force the link status by using ethtool.
A. Insert the driver first.
B. Make sure that ethtool exists in/sbin.
C. Force the link status as the following command.
Will force PHY to operate in 100 Mpbs Full-duplex (nway force ).
Transmitting Jumbo Frames, whose packet size is bigger than 1500 bytes, please change mtu by the following command.
# Ifconfig ethX mtu MTU
, Where X = 0, 1, 2,..., and MTU is configured by user.
RTL8168B/8111B supports Jumbo Frame size up to 4 kBytes.
RTL8168C/8111C and RTL8168CP/8111CP support Jumbo Frame size up to 6 kBytes.
RTL8168D/8111D supports Jumbo Frame size up to 9 kBytes.
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