ubuntu14.04能连上wifi,就是上不去网

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
canonrreas
帖子: 8
注册时间: 2017-07-27 9:52
系统: win7

ubuntu14.04能连上wifi,就是上不去网

#1

帖子 canonrreas » 2017-07-28 16:20

我电脑是戴尔灵越15r—5537,网卡是wireless 1705,装的是win7和ubuntu14.04双系统,最近一个月都是连的wifi,win7可以上网,ubuntu可以连上wifi就是上不去,检测的收发数据正常没有丢包,输入ip可以显示学校的认证登陆页面, 朋友说是网卡的问题,可能网卡不兼容,我上网在戴尔dell官方找了这款电脑的网卡,没有支持ubuntu的...或者是我没找对,求各路大神给指点一下.. :Cry
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu14.04能连上wifi,就是上不去网

#2

帖子 poloshiao » 2017-07-28 17:15

把下面指令 複製 貼進終端機 執行
1. ping -c 3 127.0.0.1
2. ping -c 3 localhost
3. ping -c 3 forum.ubuntu.org.cn
4. ping -c 3 198.71.84.64
5. sudo cat /etc/resolv.conf
6. sudo lshw -numeric -class network
7. sudo tracepath forum.ubuntu.org.cn
把結果全部直接 選取/複製/貼上來
canonrreas
帖子: 8
注册时间: 2017-07-27 9:52
系统: win7

Re: ubuntu14.04能连上wifi,就是上不去网

#3

帖子 canonrreas » 2017-07-29 20:43

1
exbot@ubuntu:~$ ping -c 3 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.021 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.032 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.042 ms

--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.021/0.031/0.042/0.010 ms
exbot@ubuntu:~$
canonrreas
帖子: 8
注册时间: 2017-07-27 9:52
系统: win7

Re: ubuntu14.04能连上wifi,就是上不去网

#4

帖子 canonrreas » 2017-07-30 11:39

2
exbot@ubuntu:~$ ping -c 3 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.028 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.037 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.037 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.028/0.034/0.037/0.004 ms






3
exbot@ubuntu:~$ ping -c 3 forum.ubuntu.org.cn
ping: unknown host forum.ubuntu.org.cn



4
exbot@ubuntu:~$ ping -c 3 198.71.84.64
PING 198.71.84.64 (198.71.84.64) 56(84) bytes of data.
64 bytes from 198.71.84.64: icmp_seq=1 ttl=50 time=202 ms
64 bytes from 198.71.84.64: icmp_seq=2 ttl=50 time=183 ms
64 bytes from 198.71.84.64: icmp_seq=3 ttl=50 time=205 ms

--- 198.71.84.64 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 183.633/197.074/205.297/9.583 ms



5
exbot@ubuntu:~$ sudo cat/etc/resolv.conf
[sudo] password for exbot:
sudo锛歝at/etc/resolv.conf: command not found


6
exbot@ubuntu:~$ sudo lshw -numeric -class network
*-network
description: Ethernet interface
product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10EC:8136]
vendor: Realtek Semiconductor Co., Ltd. [10EC]
physical id: 0
bus info: pci@0000:01:00.0
logical name: eth0
version: 07
serial: 74:86:7a:43:af:60
size: 10Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:61 ioport:4000(size=256) memory:c0700000-c0700fff memory:c0400000-c0403fff
*-network
description: Ethernet interface
product: QCA9565 / AR9565 Wireless Network Adapter [168C:36]
vendor: Qualcomm Atheros [168C]
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlan0
version: 01
serial: 64:5a:04:97:ad:82
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical
configuration: broadcast=yes driver=ath9k driverversion=3.13.0-45-generic firmware=N/A ip=192.168.0.107 latency=0 link=yes multicast=yes
resources: irq:19 memory:c0600000-c067ffff memory:9fb00000-9fb0ffff


7
exbot@ubuntu:~$ sudo tracepath forum.buntu.org.cn
gethostbyname2: Host name lookup failure
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu14.04能连上wifi,就是上不去网

#5

帖子 poloshiao » 2017-07-30 14:32

sudo cat/etc/resolv.conf
sudo锛歝at/etc/resolv.conf: command not found
5. sudo cat /etc/resolv.conf
把結果全部直接 選取/複製/貼上來
1. 直接 選取/複製/貼上
可以避免你打錯字 特別是 空白鍵
1-1. 增加 把下面指令 複製 貼進終端機 執行
sudo ls -Al /etc/resolv.conf
把結果全部直接 選取/複製/貼上來
exbot@ubuntu:~$ ping -c 3 forum.ubuntu.org.cn
ping: unknown host forum.ubuntu.org.cn
sudo tracepath forum.buntu.org.cn
gethostbyname2: Host name lookup failure
2. 猜測 你的 dns 功能沒正常運作
2-1. https://zh.wikipedia.org/wiki/%E5%9F%9F ... B%E7%BB%9F
網域名稱系統(英文:Domain Name System,縮寫:DNS)
canonrreas
帖子: 8
注册时间: 2017-07-27 9:52
系统: win7

Re: ubuntu14.04能连上wifi,就是上不去网

#6

帖子 canonrreas » 2017-07-30 15:27

5
cat: /etc/resolv.conf: 没有那个文件或目录



2.1
exbot@ubuntu:~$ sudo ls -Al /etc/resolv.conf
ls: 无法访问/etc/resolv.conf: 没有那个文件或目录



跟网卡驱动有没有什么关系,这是我网卡Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
还有就是我的安装的中文环境,有些指令是中文的比如 cd 桌面 某文件 才可以
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu14.04能连上wifi,就是上不去网

#7

帖子 poloshiao » 2017-07-30 16:41

跟网卡驱动有没有什么关系,这是我网卡Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
1. 沒關係

2. 把下面指令 複製 貼進終端機 執行
sudo ls -Al /run/resolvconf/resolv.conf
把結果全部直接 選取/複製/貼上來
5
cat: /etc/resolv.conf: 没有那个文件或目录
2.1
exbot@ubuntu:~$ sudo ls -Al /etc/resolv.conf
ls: 无法访问/etc/resolv.conf: 没有那个文件或目录
3. Ubuntu 14.04 的 /etc/resolv.conf 應該是
/run/resolvconf/resolv.conf
的軟連結
3-1. 但是 你的軟連結 /etc/resolv.conf 不見了 ?
canonrreas
帖子: 8
注册时间: 2017-07-27 9:52
系统: win7

Re: ubuntu14.04能连上wifi,就是上不去网

#8

帖子 canonrreas » 2017-07-30 18:30

2
exbot@ubuntu:~$ sudo ls -Al /run/resolvconf/resolv.conf
-rw-r--r-- 1 root root 183 7月 30 18:18 /run/resolvconf/resolv.conf

3
我不知道...要不我重装一下系统,出问题了再问你
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu14.04能连上wifi,就是上不去网

#9

帖子 poloshiao » 2017-07-30 21:02

sudo ls -Al /run/resolvconf/resolv.conf
-rw-r--r-- 1 root root 183 7月 30 18:18 /run/resolvconf/resolv.conf
1. sudo rm /etc/resolv.conf # 目的 確認 /etc/resolv.conf 不存在
2. 創設 /run/resolvconf/resolv.conf 的 軟連結 /etc/resolv.conf
sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
3. 然後
3-1. ping -c 3 forum.ubuntu.org.cn
3-2. sudo tracepath forum.ubuntu.org.cn
看看 是否不同

4. 如果還有問題
4-1. sudo ls -Al /etc/resolv.conf
4-2. sudo cat /etc/resolv.conf
把結果全部直接 選取/複製/貼上來
canonrreas
帖子: 8
注册时间: 2017-07-27 9:52
系统: win7

Re: ubuntu14.04能连上wifi,就是上不去网

#10

帖子 canonrreas » 2017-07-31 15:06

1
exbot@ubuntu:~$ sudo rm /etc/resolv.conf
[sudo] password for exbot:
rm: 无法删除"/etc/resolv.conf": 没有那个文件或目录


2
exbot@ubuntu:~$ sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf


3
exbot@ubuntu:~$ ping -c 3 forum.ubuntu.org.cn
PING forum.ubuntu.org.cn (192.157.249.221) 56(84) bytes of data.
64 bytes from 192.157.249.221: icmp_seq=1 ttl=42 time=234 ms
64 bytes from 192.157.249.221: icmp_seq=2 ttl=42 time=331 ms
64 bytes from 192.157.249.221: icmp_seq=3 ttl=42 time=255 ms

--- forum.ubuntu.org.cn ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 234.319/273.876/331.454/41.654 ms
exbot@ubuntu:~$ sudo tracepath forum.buntu.org.cn
gethostbyname2: Unknown host
exbot@ubuntu:~$ sudo tracepath forum.buntu.org.cn
gethostbyname2: Unknown host


能上网了,谢谢大神了,真的很感谢,这几天弄这个弄的头疼死了
4
exbot@ubuntu:~$ sudo ls -Al /etc/resolv.conf
lrwxrwxrwx 1 root root 27 7月 31 14:23 /etc/resolv.conf -> /run/resolvconf/resolv.conf
exbot@ubuntu:~$ sudo cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search lan
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu14.04能连上wifi,就是上不去网

#11

帖子 poloshiao » 2017-07-31 17:32

sudo tracepath forum.buntu.org.cn
gethostbyname2: Unknown host
抱歉 少了一個字母
sudo tracepath forum.ubuntu.org.cn
canonrreas
帖子: 8
注册时间: 2017-07-27 9:52
系统: win7

Re: ubuntu14.04能连上wifi,就是上不去网

#12

帖子 canonrreas » 2017-08-04 16:43

没关系,还是谢谢您了,也希望这个帖子能帮到和我一样出现这种问题的小伙伴
niba
帖子: 9
注册时间: 2017-08-01 9:49
系统: ubuntu14.04

Re: ubuntu14.04能连上wifi,就是上不去网

#13

帖子 niba » 2017-08-08 20:59

canonrreas 写了:没关系,还是谢谢您了,也希望这个帖子能帮到和我一样出现这种问题的小伙伴

同样的问题,但是没看懂您是怎么解决的,跪求?
头像
astolia
论坛版主
帖子: 6436
注册时间: 2008-09-18 13:11

Re: ubuntu14.04能连上wifi,就是上不去网

#14

帖子 astolia » 2017-08-08 22:14

就是DNS服务器没弄对啊
sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
回复