分页: 1 / 2

无线网又上不了了

发表于 : 2015-10-22 17:00
yangdawei.hit
之前受指点,解决了问题,现在又出现了无线网上不了的问题。viewtopic.php?f=165&t=473368

代码: 全选

uname -a
Linux debian 4.2.0-1-amd64 #1 SMP Debian 4.2.3-2 (2015-10-14) x86_64 GNU/Linux

代码: 全选

sudo ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 08:9e:01:89:a2:24  txqueuelen 1000  (Ethernet)
        RX packets 7409463  bytes 623796399 (594.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7128  bytes 802826 (784.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 264  bytes 24059 (23.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 264  bytes 24059 (23.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.103  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::2ed0:5aff:feb2:10ca  prefixlen 64  scopeid 0x20<link>
        ether 2c:d0:5a:b2:10:ca  txqueuelen 1000  (Ethernet)
        RX packets 4958  bytes 419298 (409.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 245  bytes 36336 (35.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

代码: 全选

sudo route -nv
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    600    0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlan0
已经按上次经验删除了再次出现的多余的IP路径

代码: 全选

sudo route del -net 169.254.0.0 netmask 255.255.0.0 wlan0
等待poloshiao和vickycq的指导。

Re: 无线网又上不了了

发表于 : 2015-10-22 19:41
poloshiao
1. 看看 IPv4 網路 通不通
把下面指令 複製 貼進終端機 執行
1-1. ping -c 3 127.0.0.1
1-2. ping -c 3 192.168.1.103
1-3. ping -c 3 192.168.1.1
1-4. ping -c 3 198.71.86.201
1-5. ping -c 3 forum.ubuntu.org.cn
1-6. sudo cat /etc/resolv.conf
把結果直接 選取/複製/貼上來

Re: 无线网又上不了了

发表于 : 2015-10-22 20:09
yangdawei.hit

代码: 全选

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.055 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.050 ms

--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.050/0.054/0.059/0.009 ms

代码: 全选

 ping -c 3 192.168.0.111
PING 192.168.0.111 (192.168.0.111) 56(84) bytes of data.
64 bytes from 192.168.0.111: icmp_seq=1 ttl=64 time=0.065 ms
64 bytes from 192.168.0.111: icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from 192.168.0.111: icmp_seq=3 ttl=64 time=0.064 ms

--- 192.168.0.111 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.059/0.062/0.065/0.009 ms

代码: 全选

ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms

代码: 全选

ping -c 3 198.71.86.201
ping -c 3 forum.ubuntu.org.cn

不通

代码: 全选

sudo cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 112.100.100.100
nameserver 219.150.32.132
刚到家,家里的wifi也连不上。上面结果是我连通无线信号后的结果。同时不理解为什么DNS是这样的结果。

Re: 无线网又上不了了

发表于 : 2015-10-22 20:11
yangdawei.hit

代码: 全选

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.055 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.050 ms

--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.050/0.054/0.059/0.009 ms

代码: 全选

 ping -c 3 192.168.0.111
PING 192.168.0.111 (192.168.0.111) 56(84) bytes of data.
64 bytes from 192.168.0.111: icmp_seq=1 ttl=64 time=0.065 ms
64 bytes from 192.168.0.111: icmp_seq=2 ttl=64 time=0.059 ms
64 bytes from 192.168.0.111: icmp_seq=3 ttl=64 time=0.064 ms

--- 192.168.0.111 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.059/0.062/0.065/0.009 ms

代码: 全选

ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms

代码: 全选

ping -c 3 198.71.86.201
ping -c 3 forum.ubuntu.org.cn

不通

代码: 全选

sudo cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 112.100.100.100
nameserver 219.150.32.132
刚到家,家里的wifi也连不上。上面结果是我连通无线信号后的结果。同时不理解为什么DNS是这样的结果。

在办公室和家连有线网都没有问题。手机上无线网也没有问题。

Re: 无线网又上不了了

发表于 : 2015-10-22 20:45
poloshiao
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.103 netmask 255.255.255.0 broadcast 192.168.1.255
ping -c 3 192.168.1.103
ping -c 3 192.168.0.111
1. 為何變 192.168.0.111 ?
sudo route -nv
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
1-3. ping -c 3 192.168.1.1
ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
2. 為何變 192.168.0.1

Re: 无线网又上不了了

发表于 : 2015-10-22 20:54
yangdawei.hit
现在是家里的wifi,刚才是办公室的。

Re: 无线网又上不了了

发表于 : 2015-10-22 20:57
poloshiao
實際要 ping 的 IPv4 是根據
sudo ifconfig -a
sudo route -nv
得來的

請提供
sudo ifconfig -a
sudo route -nv
sudo cat /etc/resolv.conf
以免遺漏重要資訊

Re: 无线网又上不了了

发表于 : 2015-10-22 21:08
yangdawei.hit

代码: 全选

sudo ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 08:9e:01:89:a2:24  txqueuelen 1000  (Ethernet)
        RX packets 8430447  bytes 943506828 (899.7 MiB)
        RX errors 0  dropped 1112  overruns 0  frame 0
        TX packets 337158  bytes 224678699 (214.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 491  bytes 41386 (40.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 491  bytes 41386 (40.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.111  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::2ed0:5aff:feb2:10ca  prefixlen 64  scopeid 0x20<link>
        ether 2c:d0:5a:b2:10:ca  txqueuelen 1000  (Ethernet)
        RX packets 6560  bytes 648539 (633.3 KiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 1287  bytes 176159 (172.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sudo route -nv
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    600    0        0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U     600    0        0 wlan0

sudo cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 112.100.100.100
nameserver 219.150.32.132

Re: 无线网又上不了了

发表于 : 2015-10-22 22:20
poloshiao
ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.111 netmask 255.255.255.0 broadcast 192.168.0.255
1. 你的 192.168.0.111 是 dhcp auto 還是 dhcp static 還是其他方式獲得的 ?
已经按上次经验删除了再次出现的多余的IP路径
sudo route del -net 169.254.0.0 netmask 255.255.0.0 wlan0
viewtopic.php?p=3145798#p3145798
1. 有兩個 route
2. 把這個
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
移除 見 3.
2-1. 但是 重開機 可能還在 可能原因 你的 網卡設定有問題
2. 表示 你的無線網卡網址設定是有問題的 才會每次開機都會自動出現
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
2-1. 請描述一下 你的無線網卡 如何設定

Re: 无线网又上不了了

发表于 : 2015-10-22 22:29
yangdawei.hit
动态获取,但没有明确设置dhcp auto。没有做任何设定。

代码: 全选

sudo cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

Re: 无线网又上不了了

发表于 : 2015-10-22 22:42
poloshiao
sudo cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
1. 沒有 wlan0
2. /etc/network/interfaces.d/ 有什麼跟 wlan0 有關的設定檔嗎

Re: 无线网又上不了了

发表于 : 2015-10-22 22:46
yangdawei.hit
也没设定过wlan0, /etc/network/interfaces.d/里面是空的,没有文件。

Re: 无线网又上不了了

发表于 : 2015-10-22 23:35
vickycq
不知还是之前 BCM4313 那台机器吗?两款开源驱动都支持不佳,换用私有驱动 broadcom-sta-dkms 试试。
lspci -k 看到加载 wl 说明成功换成私有驱动。
根据你上次提供的结果,ping 114.114.114.114 要60毫秒左右,显然是有问题的?不知有线网是否也是这个结果?

Re: 无线网又上不了了

发表于 : 2015-10-23 7:03
poloshiao
没设定过wlan0
1. 把下面指令 複製 貼進終端機 執行
1-0. uname -r
1-1. sudo lspci -knn
1-1-1. 如果無線網卡是 usb 裝置 請增加
sudo lsusb
1-2. sudo lshw -numeric -class network
1-3. sudo rfkill list all
1-4. sudo nmcli dev status wlan0
1-5. sudo dhclient -v
1-6. sudo iwlist scan
把你的 ESSID 那一段落 直接 選取/複製 貼上
http://paste.ubuntu.com
1-7. sudo dkms status
1-8. sudo cat /etc/NetworkManager/NetworkManager.conf
1-9. sudo cat /etc/network/interfaces
1-10. sudo cat /etc/udev/rules.d/70-persistent-net.rules
把結果直接複製 貼到
http://paste.ubuntu.com
再把回應網址
http://paste.ubuntu.com/xxxxxxx
貼上來

2. 測試期間 暫時從 Bios 關閉 主板內建有顯網卡
等測試成功後 需要時 才決定是否打開 主板內建有顯網卡

Re: 无线网又上不了了

发表于 : 2015-10-23 7:12
yangdawei.hit
不知还是之前 BCM4313 那台机器吗?


是这台机器。

现在安装了 broadcom-sta-dkms,能无线上网了,但不知道如何查看驱动信息,是这样吗:

代码: 全选

lspci -k | grep net
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
没有看到
lspci -k 看到加载 wl 说明成功换成私有驱动。
现在仍然感觉有问题:

代码: 全选

 ping 114.114.114.114
PING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.
64 bytes from 114.114.114.114: icmp_seq=1 ttl=92 time=69.9 ms
64 bytes from 114.114.114.114: icmp_seq=2 ttl=79 time=71.1 ms
64 bytes from 114.114.114.114: icmp_seq=3 ttl=93 time=69.8 ms
64 bytes from 114.114.114.114: icmp_seq=3 ttl=56 time=69.9 ms (DUP!)
64 bytes from 114.114.114.114: icmp_seq=4 ttl=66 time=72.2 ms
64 bytes from 114.114.114.114: icmp_seq=5 ttl=76 time=69.6 ms