RTL8111/RTL8168 Network Connection Fix
来源:互联网 发布:spark sql 例子 编辑:程序博客网 时间:2024/05/20 05:57
Ubuntu 8.10 (and may other versions) have been reporting problems with connectivity. Here is the solution in a walk-through format. You must be root (sudo su -).
1) Check to see if the r8169 module is loaded
-> lsmod | grep r816
r8168 41104 0
-> lspci -v
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: ASRock Incorporation Device 8168
Kernel driver in use: r8169
Kernel modules: r8169
2) Download the official Realtek driver
Realtek RTL8111/RTL8168
3) Remove the r8169 module
-> rmmod r8169
-> mv /lib/modules/$(uname -r)/kernel/drivers/net/r8169.ko ~/r8169.ko.backup
( the ` is a backtick, it is not an apostrophe or single quote )
4) Build the new r8168 module for the kernel
-> bzip2 -d r8168-8.009.00.tar.bz2
-> tar -xf r8168-8.009.00.tar
-> cd r8168-8.009.00
-> make clean modules
-> make install
5) Rebuild the kernel module dependencies
-> depmod -a
-> insmod ./src/r8168.ko
6) Remove the r8169 module from initrd
-> mv /initrd.img ~/initrd.img.backup
-> mkinitramfs -o /boot/initrd.img-$(uname -r) $(uname -r)
7) Add r8168 module to /etc/modules
-> echo "r8168" >> /etc/modules
Reboot, You are done!
9) Examine that ONLY the r8168 module is loaded for the interface
-> lspci -v
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: ASRock Incorporation Device 8168
Kernel driver in use: r8168
Kernel modules: r8168
1、设置IP地址:
命令行下敲:sudo gedit /etc/network/interfaces
并添加如下内容:
auto lo
iface lo
inet loopback iface eth0 inet static
address 192.168.1.169
netmask 255.255.0.0
gateway 192.168.1.1
auto eth0
然后保存退出
2、设置DNS服务器
命令行下敲:
sudo gedit /etc/resolv.conf
在里边加入如下内容:
nameserver 202.117.128.2
添加完成后保存退出。
这些都修改完成后,重启网络,命令:
sudo /etc/init.d/networking restart
完成重启就可以。
如果你使用的是ADSL设置的话,详细情况看 http://wiki.ubuntu.org.cn/ADSLPPPoE有详细介绍。
每次修改完成后重启网络使修改生效 http://sunjsp.com。
重启网络的命令为:sudo /etc/init.d/networking restart
网卡无法重启
sudo /etc/init.d/networking restart * Reconfiguring network interfaces...
eth0: ERROR
while getting interface flags: No such device
SIOCSIFADDR: No such device eth0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device SIOCSIFBRDADDR: No such device eth0: ERROR while getting interface flags: No such device eth0: ERROR while getting interface flags: No such device Failed to bring up eth0.
解决办法: sudo rm -rf etc/udev/rules.d/70-persistent-net.rules&reboot
If you need to, configure your /etc/network/interfaces for dhcp or static address then `sudo ifup eth0`
- RTL8111/RTL8168 Network Connection Fix
- RTL8111/RTL8168 Network Connection Fix
- 安装Realtek RTL8111/RTL8168网卡驱动详解(error~eth0:no such device)
- mysql connection problem fix
- Network Connection Element
- poj 3375 Network Connection
- Network connection resolved
- MTK11B GPRS Network connection
- Fix metasploit " postgresql selected, no connection"
- replicate physical network connection state
- putty:network error:Connection refused
- Ubuntu connection to network drives
- The network connection was lost.
- share network connection on windows
- how to differ wireless network connection and local area connection
- VMware virtual machine's network connection
- Network error IOException: Connection timed out: connect
- ubuntu network connection 消失的解决办法
- Android的px、dip、sp的区别
- 温总理引用的以及他自己的名言
- 文件操作API和CFile类
- 玩转LPC11XX
- 面向对象的编程——成员变量赋值(2)
- RTL8111/RTL8168 Network Connection Fix
- android中如何美化ListView的背景
- AsyncTask 实现异步刷新
- 零线带点原因。
- 文件操作API
- Android实现大图的滚动显示
- 虚函数的概念
- 精彩博客网址
- EXTJS_GridPanel_ColumnModel_列的宽度随数据变化而变化