- 论坛徽章:
- 13
|
驱动包如下:
r8168-8.031.00.tar.bz2
(66.43 KB, 下载次数: 16)
下载地址:
http://www.realtek.com.tw/DOWNLO ... amp;GetDown=false#2
- > tar -jxvf r8168-8.031.00.tar.bz2
- x r8168-8.031.00/
- x r8168-8.031.00/src/
- x r8168-8.031.00/src/r8168_n.c
- x r8168-8.031.00/src/rtl_eeprom.h
- x r8168-8.031.00/src/Makefile_linux24x
- x r8168-8.031.00/src/r8168_asf.h
- x r8168-8.031.00/src/rtl_eeprom.c
- x r8168-8.031.00/src/rtltool.c
- x r8168-8.031.00/src/r8168.h
- x r8168-8.031.00/src/Makefile
- x r8168-8.031.00/src/r8168_asf.c
- x r8168-8.031.00/src/rtltool.h
- x r8168-8.031.00/Makefile
- x r8168-8.031.00/autorun.sh
- x r8168-8.031.00/README
- > cd r8168-8.031.00
- > ls
- Makefile README autorun.sh src
- > more README
- <Requirements>
- - 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
- <Quick install with proper kernel settings>
- 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 should be able to do :
- # ./autorun.sh (as root or with sudo)
- You can check whether the driver is loaded by using following commands.
- # lsmod | grep r8168
- # ifconfig -a
- 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,...
- <Set the network related information>
- 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
- configurations.
- a. Fixed 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
- <Modify the MAC address>
- There are two ways to modify the MAC address of the NIC.
- 1. Use ifconfig:
- # ifconfig ethX hw ether YY:YY:YY:YY:YY:YY
- ,where X is the device number assigned by Linux kernel, and
- YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.
- 2. Use ip:
- # ip link set ethX address YY:YY:YY:YY:YY:YY
- ,where X is the device number assigned by Linux kernel, and
- YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.
复制代码 |
|