4 installing driver to linux – PLANET ENW-9701 User Manual

Page 18

Advertising
background image

3.4 Installing Driver to Linux

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"


4

Advertising