• Stars
    star
    237
  • Rank 169,885 (Top 4 %)
  • Language
    C
  • Created over 9 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Linux device driver for Realtek Ethernet controllers (unofficial mirror)
<Linux device driver for Realtek Ethernet controllers>

	This is the Linux device driver released for RealTek RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP, RTL8168D/8111D, RTL8168DP/8111DP, and RTL8168E/8111E Gigabit Ethernet controllers with PCI-Express interface.

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

<Force Link Status>

	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	= 1000	for 1000Mbps
					= 100	for 100Mbps
					= 10	for 10Mbps
			DUPLEX_MODE	= 0	for half-duplex
					= 1	for full-duplex
			NWAY_OPTION	= 0	for auto-negotiation off (true force)
					= 1	for auto-negotiation on (nway force)
		For example:

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

		will force PHY to operate in 100Mpbs 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	= 1000	for 1000Mbps
						= 100	for 100Mbps
						= 10	for 10Mbps
				DUPLEX_MODE	= half	for half-duplex
						= full	for full-duplex
				NWAY_OPTION	= off	for auto-negotiation off (true force)
						= on	for auto-negotiation on (nway force)

		For example:

			# ethtool -s eth0 speed 100 duplex full autoneg on

		will force PHY to operate in 100Mpbs Full-duplex(nway force).

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

More Repositories

1

gmenu2x

A menu system for embedded devices, originally developed for the GP2X
C++
76
star
2

mattersend

Library and CLI utility to send messages to mattermost's incoming webhooks
Python
72
star
3

kate-syntax-files

Syntax files (modified or original) for katepart (kate, kwrite, kdevelop)
Shell
60
star
4

vue-patternfly3

PatternFly 3 components for Vue 3
Vue
51
star
5

vue-patternfly

PatternFly 5 components for Vue 3
Vue
20
star
6

py-cleancss

A pythonic alternative syntax for writing CSS files
Python
9
star
7

xmppcat

A unix command line program that works like cat but sends its output through XMPP
Python
9
star
8

kate-plugin-zencoding

Kate plugin that expands zencoding snippets
Python
8
star
9

iosshy

Desktop tool to quickly setup SSH tunnels and automatically execute commands that make use of them
Python
6
star
10

gearman-worker-rs

High level library to implement Gearman workers
Rust
5
star
11

slacksend

CLI tool to send messages to the Incoming webhook of Slack
Python
3
star
12

rt3562sta-linux

Public repository with patches for the ralink rt3562sta linux kernel module
C
3
star
13

kate-plugin-fuzzyopen

Fuzzy style file open dialog for Kate
Python
3
star
14

php-cleancss

A pythonic alternative syntax for writing cleaner CSS files
PHP
2
star
15

dephp

Unofficial CLI application that decodes files through http://www.unphp.net web service
Python
2
star
16

sqlantaresia

Cross platform MySQL management tool aimed at both developers and system administrators
Python
2
star
17

stm32f4x-blinky-rs

Template project for developing on the stm32 blackpill with Rust
Rust
1
star
18

csrassistant

Small application to assist in the creation of certificate sign requests and self signed certificates
Python
1
star
19

spamassassin-vscode

Support for the SpamAssassin configuration file syntax in Visual Studio Code
1
star
20

kate-plugin-phpdoc

Kate plugin for automatic PHP docblocks generation
Python
1
star
21

myremotedump

Dumps a firewalled MySQL database via a ssh tunnel to the remote system
Python
1
star
22

stm32f4x-epd-rs

Embedded rust program that uses an stm32f401 to drive a Waveshare 1.54" epaper display
Rust
1
star
23

mootools-scrollable-table

A mootools class that makes table rows scrollable while keeping thead and tfoot fixed.
JavaScript
1
star