Advertisement
Guest User

Untitled

a guest
Feb 12th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. <Linux device driver for Realtek Ethernet controllers>
  2.  
  3. This is the Linux device driver released for RealTek RTL8101E, RTL8102E(L) and RTL8103E(L), the Fast Ethernet controller with PCI-Express interface.
  4.  
  5. <Requirements>
  6. 3.11.0-15-generic
  7.  
  8. - kernel source tree (supported Linux kernel 2.6.x and 2.4.x)
  9. - For linux kernel 2.4.x, this driver supports linux kernel 2.4.20 and latter.
  10. - compiler/binutils for kernel compilation
  11.  
  12. <Quick install with proper kernel settings>
  13. Unpack the tarball :
  14. # tar vjxf r8101-1.aaa.bb.tar.bz2
  15.  
  16. Change to the directory:
  17. # cd r8101-1.aaa.bb
  18.  
  19. If you are running the target kernel, then you should be able to do :
  20.  
  21. # ./autorun.sh (as root or with sudo)
  22.  
  23. You can check whether the driver is loaded by using following commands.
  24.  
  25. # lsmod | grep r8101
  26. # ifconfig -a
  27.  
  28. If there is a device name, ethX, shown on the monitor, the linux
  29. driver is loaded. Then, you can use the following command to activate
  30. the ethX.
  31.  
  32. # ifconfig ethX up
  33.  
  34. ,where X=0,1,2,...
  35.  
  36. <Set the network related information>
  37. 1. Set manually
  38. a. Set the IP address of your machine.
  39.  
  40. # ifconfig ethX "the IP address of your machine"
  41.  
  42. b. Set the IP address of DNS.
  43.  
  44. Insert the following configuration in /etc/resolv.conf.
  45.  
  46. nameserver "the IP address of DNS"
  47.  
  48. c. Set the IP address of gateway.
  49.  
  50. # route add default gw "the IP address of gateway"
  51.  
  52. 2. Set by doing configurations in /etc/sysconfig/network-scripts
  53. /ifcfg-ethX for Redhat and Fedora, or /etc/sysconfig/network
  54. /ifcfg-ethX for SuSE. There are two examples to set network
  55. configurations.
  56.  
  57. a. Fixed IP address:
  58. DEVICE=eth0
  59. BOOTPROTO=static
  60. ONBOOT=yes
  61. TYPE=ethernet
  62. NETMASK=255.255.255.0
  63. IPADDR=192.168.1.1
  64. GATEWAY=192.168.1.254
  65. BROADCAST=192.168.1.255
  66.  
  67. b. DHCP:
  68. DEVICE=eth0
  69. BOOTPROTO=dhcp
  70. ONBOOT=yes
  71.  
  72. <Modify the MAC address>
  73. There are two ways to modify the MAC address of the NIC.
  74. 1. Use ifconfig:
  75.  
  76. # ifconfig ethX hw ether YY:YY:YY:YY:YY:YY
  77.  
  78. ,where X is the device number assigned by Linux kernel, and
  79. YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.
  80.  
  81. 2. Use ip:
  82.  
  83. # ip link set ethX address YY:YY:YY:YY:YY:YY
  84.  
  85. ,where X is the device number assigned by Linux kernel, and
  86. YY:YY:YY:YY:YY:YY is the MAC address assigned by the user.
  87.  
  88. <Force Link Status>
  89.  
  90. 1. Force the link status when insert the driver.
  91.  
  92. If the user is in the path ~/r8101, the link status can be forced
  93. to one of the 4 modes as following command.
  94.  
  95. # insmod ./src/r8101.ko speed=SPEED_MODE duplex=DUPLEX_MODE autoneg=NWAY_OPTION
  96.  
  97. ,where
  98. SPEED_MODE = 100 for 100Mbps
  99. = 10 for 10Mbps
  100. DUPLEX_MODE = 0 for half-duplex
  101. = 1 for full-duplex
  102. NWAY_OPTION = 0 for auto-negotiation off (true force)
  103. = 1 for auto-negotiation on (nway force)
  104. For example:
  105.  
  106. # insmod ./src/r8101.ko speed=100 duplex=0 autoneg=1
  107.  
  108. will force PHY to operate in 100Mpbs Half-duplex(nway force).
  109.  
  110. 2. Force the link status by using ethtool.
  111. a. Insert the driver first.
  112. b. Make sure that ethtool exists in /sbin.
  113. c. Force the link status as the following command.
  114.  
  115. # ethtool -s ethX speed SPEED_MODE duplex DUPLEX_MODE autoneg NWAY_OPTION
  116.  
  117. ,where
  118. SPEED_MODE = 100 for 100Mbps
  119. = 10 for 10Mbps
  120. DUPLEX_MODE = half for half-duplex
  121. = full for full-duplex
  122. NWAY_OPTION = off for auto-negotiation off (true force)
  123. = on for auto-negotiation on (nway force)
  124.  
  125. For example:
  126.  
  127. # ethtool -s eth0 speed 100 duplex full autoneg on
  128.  
  129. will force PHY to operate in 100Mpbs Full-duplex(nway force).
  130.  
  131. <Jumbo Frame>
  132. RTL8101E, RTL8102E and RTL8103E do not support Jumbo Frame.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement