How to install suse12.1 Nic

Source: Internet
Author: User
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

B. DHCP:
DEVICE = eth0
BOOTPROTO = dhcp
ONBOOT = yes


There are two ways to modify the MAC address of the NIC.
1. Use ifconfig:

# Ifconfig ethX hw ether YY: YY

, Where X is the device number assigned by Linux kernel, and
YY: YY is the MAC address assigned by the user.

2. Use ip:

# Ip link set ethX address YY: YY

, Where X is the device number assigned by Linux kernel, and
YY: YY is the MAC address assigned by the user.



1. Force the link status when insert the driver.

If the user is in the path ~ /R8168, the link status can be forced
To one of the 5 modes as following command.

# Insmod./src/r8168.ko speed = SPEED_MODE duplex = DUPLEX_MODE autoneg = NWAY_OPTION

, Where
SPEED_MODE = 1000for 1000 Mbps
= 100for 100 Mbps
= 10for 10 Mbps
DUPLEX_MODE = 0for half-duplex
= 1for full-duplex
NWAY_OPTION = 0for auto-negotiation off (true force)
= 1for auto-negotiation on (nway force)
For example:

# Insmod./src/r8168.ko speed = 100 duplex = 0 autoneg = 1

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.

# Ethtool-s ethX speed SPEED_MODE duplex DUPLEX_MODE autoneg NWAY_OPTION

, Where
SPEED_MODE = 1000for 1000 Mbps
= 100for 100 Mbps
= 10for 10 Mbps
DUPLEX_MODE = halffor half-duplex
= Fullfor full-duplex
NWAY_OPTION = offfor auto-negotiation off (true force)
= Onfor auto-negotiation on (nway force)

For example:

# Ethtool-s eth0 speed 100 duplex full autoneg on

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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.