UbuntuKylin 14.10 有线网络如何设置呀

Ubuntu各种衍生版本
回复
wnyh
帖子: 54
注册时间: 2011-11-24 9:00

UbuntuKylin 14.10 有线网络如何设置呀

#1

帖子 wnyh » 2014-11-19 10:34

新的笔记本上装了14.10
在网络链接里面设置了单位的ip,dns后,插上网线,有线链接1 以及以太网 都是灰色的,
不过用ifconfig看了以后,表明我的网卡驱动是装的。
在系统设置》网络》 里面看到 链接 断开, 反复的显示个不停,

请专家们把脉,如何解决我的上网问题,非常感谢

下面是我思路,但是不可行
1、首先用lspci 查看了网卡的型号,
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
可知是Realtek 的 RTL8111/8168/8411 网卡
2、在reltek网站http://www.realtek.com.tw/downloads/downloadsV ... wn=false#2 找到了RTL8111C/RTL8111CP/RTL8111D(L)
RTL8168C/RTL8111DP/RTL8111E
RTL8168E/RTL8111F/RTL8411
RTL8111G/RTL8111GUS/RTL8411B(N)
RTL8118AS
型号的网卡驱动程序 ,我下载了其中64位的驱动,
3、按照驱动里面说明,一步一步的做,
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.
<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,...

RTL8111B/RTL8168B/RTL8111/RTL8168
4、结果还是不能上网,我的系统是linxu64喂。请指教
wnyh
帖子: 54
注册时间: 2011-11-24 9:00

Re: UbuntuKylin 14.10 有线网络如何设置呀

#2

帖子 wnyh » 2014-11-20 13:05

现在终于可以上网了。现把设置上网的经历分享如下。
上篇中提到
1、首先用lspci 查看了网卡的型号,
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
可知是Realtek 的 RTL8111/8168/8411 网卡。结论:这一步是必要的。
2、在reltek网站http://www.realtek.com.tw/downloads/downloadsV ... wn=false#2 找到了RTL8111C/RTL8111CP/RTL8111D(L)
RTL8168C/RTL8111DP/RTL8111E
RTL8168E/RTL8111F/RTL8411
RTL8111G/RTL8111GUS/RTL8411B(N)
RTL8118AS
型号的网卡驱动程序 ,我下载了其中64位的驱动。结论,这一步也是必要的。
3、按照驱动里面说明,一步一步的做,
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.
<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,...

RTL8111B/RTL8168B/RTL8111/RTL8168
单独这一步,还是不能解决上网的问题。在开始第三步之前需要做如下工作,现完整写出步骤3:
a 、Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed.
# lsmod | grep r8169
b、 If it is installed, please remove it.
# rmmod r8169
c、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,...

RTL8111B/RTL8168B/RTL8111/RTL8168
4、现在就去设置ip ‘dns,gateway吧。
至此基本上可以上网了。

我还遇到了下述问题。系统重启后就不能上网了 因为ubuntu的/etc/resole.conf里面的dns一开机就被修改,不能保存,导致每次都要重新设置,甚是麻烦
经实验是有效的 解决方案如下:
编辑/etc/resolvconf/resolv.conf.d/tail(如果没有该文件,则建立一个文件名为tail的文本文件即可),里面添加几个nameserver x.y.z.w,x.y.z.w替换为你要的实际dns地址,这样每次重启后,它会将你所编辑添加的dns服务器写入/etc/resolv.conf中,使resolv.conf不至于每次都重置成空白或只剩127.0.0.1。

至此以后 我的本本上网畅通无阻了。
Makerpol
帖子: 13
注册时间: 2015-12-05 13:24
系统: win8.1

Re: UbuntuKylin 14.10 有线网络如何设置呀

#3

帖子 Makerpol » 2015-12-17 16:10

我的是无线网,貌似没有任何配置就可以上网了!
但是使用红帽系统,死活无法上网,简直郁闷死了!
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: UbuntuKylin 14.10 有线网络如何设置呀

#4

帖子 vickycq » 2015-12-17 16:16

型号的网卡驱动程序 ,我下载了其中64位的驱动。结论,这一步也是必要的。
3、按照驱动里面说明,一步一步的做,
Debian/Ubuntu 已经打包了 r8168-dkms 可以直接安装
我的是无线网,貌似没有任何配置就可以上网了!
但是使用红帽系统,死活无法上网,简直郁闷死了!
终端中运行把结果全部复制贴上来

代码: 全选

uname -a
cat /etc/issue
lspci -knn | grep -iA2 net
sudo lshw -C net
sudo ifconfig -a
sudo iwconfig
sudo route -nv
cat /etc/resolv.conf
如果有条件也可在无法上网的机器上运行下面这个脚本,把结果贴上来
http://git.oschina.net/pastebin/wireles ... eless-info
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复