@maorongrong
2018-05-10T13:19:40.000000Z
字数 9070
阅读 480
Linux
amy@heizi:~$ lshw -C net
*-network
description: Ethernet interface
product: 82566MM Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: enp0s25
version: 03
serial: 00:1d:72:9c:b9:95
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.3-0 latency=0 link=no multicast=yes port=twisted pair
resources: irq:28 memory:fe000000-fe01ffff memory:fe025000-fe025fff ioport:1840(size=32)
*-network DISABLED
description: Wireless interface
product: PRO/Wireless 3945ABG [Golan] Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wls3
version: 02
serial: 00:1f:3c:c2:f6:fe
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwl3945 driverversion=4.4.0-98-generic firmware=15.32.2.9 latency=0 link=no multicast=yes wireless=IEEE 802.11abg
resources: irq:29 memory:dfcff000-dfcfffff
amy@heizi:~$ lsmod | grep iwl
iwl3945 69632 0
iwlegacy 102400 1 iwl3945
mac80211 737280 2 iwl3945,iwlegacy
cfg80211 565248 3 iwl3945,iwlegacy,mac80211
amy@heizi:~$ iwconfig wls3
wls3 IEEE 802.11abg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=12 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
amy@heizi:~$ iwlist scanning
lo Interface doesn't support scanning.
enp0s25 Interface doesn't support scanning.
wls3 Failed to read scan data : Network is down
docker0 Interface doesn't support scanning.
amy@heizi:~$ iwlist wls3 scanning
wls3 Failed to read scan data : Network is down
amy@heizi:~$ iwlist wls3 retry
wls3 Fixed limit ; min limit:0
max limit:255
Current mode:on
short limit:7
long limit:4
amy@heizi:~$ iwlist wls3 power
wls3 Current mode:on
amy@heizi:~$ iwlist wls3 channel
wls3 17 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
Channel 149 : 5.745 GHz
Channel 153 : 5.765 GHz
Channel 157 : 5.785 GHz
Channel 161 : 5.805 GHz
amy@heizi:~$ lspci | grep -i net
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
amy@heizi:~$ sudo ifconfig wls3 up
SIOCSIFFLAGS: 输入/输出错误
amy@heizi:~$ ifconfig
docker0 Link encap:以太网 硬件地址 02:42:5e:2e:9e:cd
inet 地址:172.17.0.1 广播:0.0.0.0 掩码:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
enp0s25 Link encap:以太网 硬件地址 00:1d:72:9c:b9:95
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
中断:20 Memory:fe000000-fe020000
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:27742 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:27742 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1
接收字节:2268301 (2.2 MB) 发送字节:2268301 (2.2 MB)
amy@heizi:~$ sudo /etc/init.d/networking restart
[ ok ] Restarting networking (via systemctl): networking.service.
amy@heizi:~$ ifconfig
docker0 Link encap:以太网 硬件地址 02:42:5e:2e:9e:cd
inet 地址:172.17.0.1 广播:0.0.0.0 掩码:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
enp0s25 Link encap:以太网 硬件地址 00:1d:72:9c:b9:95
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
中断:20 Memory:fe000000-fe020000
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:28266 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:28266 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1
接收字节:2300467 (2.3 MB) 发送字节:2300467 (2.3 MB)
amy@heizi:~$ sudo lshw -C net
*-network
description: Ethernet interface
product: 82566MM Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: enp0s25
version: 03
serial: 00:1d:72:9c:b9:95
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.3-0 latency=0 link=no multicast=yes port=twisted pair
resources: irq:28 memory:fe000000-fe01ffff memory:fe025000-fe025fff ioport:1840(size=32)
*-network DISABLED
description: Wireless interface
product: PRO/Wireless 3945ABG [Golan] Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wls3
version: 02
serial: 00:1f:3c:c2:f6:fe
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwl3945 driverversion=4.4.0-98-generic firmware=15.32.2.9 latency=0 link=no multicast=yes wireless=IEEE 802.11abg
resources: irq:29 memory:dfcff000-dfcfffff
以上为连接一段时间后wifi自动掉线情况出现后执行的各条命令结果,dmesg结果保存在message.txt、message1.txt
---------------------------------------------------------------------------------------------------
以下为,重启系统后就会恢复正常,之后执行的各行命令结果,dmesg结果保存在message_20171122.txt
amy@heizi:~$ dmesg -HxeL > message_20171122.txt
amy@heizi:~$ ifconfig
docker0 Link encap:以太网 硬件地址 02:42:f7:9e:00:ed
inet 地址:172.17.0.1 广播:0.0.0.0 掩码:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
enp0s25 Link encap:以太网 硬件地址 00:1d:72:9c:b9:95
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
中断:20 Memory:fe000000-fe020000
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:451 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:451 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1
接收字节:33727 (33.7 KB) 发送字节:33727 (33.7 KB)
wls3 Link encap:以太网 硬件地址 00:1f:3c:c2:f6:fe
inet 地址:192.168.1.113 广播:192.168.1.255 掩码:255.255.255.0
inet6 地址: fe80::34dc:1e63:389b:2528/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:48 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:93 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:10585 (10.5 KB) 发送字节:11796 (11.7 KB)
amy@heizi:~$ iwconfig
lo no wireless extensions.
enp0s25 no wireless extensions.
wls3 IEEE 802.11abg ESSID:"FAST_D9A1E4"
Mode:Managed Frequency:2.412 GHz Access Point: 28:2C:B2:D9:A1:E4
Bit Rate=54 Mb/s Tx-Power=12 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=65/70 Signal level=-45 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:57 Missed beacon:0
docker0 no wireless extensions.
amy@heizi:~$ iwlist wls3 scanning
wls3 Scan completed :
Cell 01 - Address: 28:2C:B2:D9:A1:E4
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=66/70 Signal level=-44 dBm
Encryption key:on
ESSID:"FAST_D9A1E4"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000018ac72b8ab6
Extra: Last beacon: 12164ms ago
IE: Unknown: 000B464153545F443941314534
IE: Unknown: 010882848B960C121824
IE: Unknown: 030101
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: 2D1A6E1003FF00000000000000000000000000000000000000000000
IE: Unknown: 3D1601051300000000000000000000000000000000000000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: DD05000AEB0100
IE: Unknown: DD8C0050F204104A0001101044000102103B0001031047001000000000000010000000282CB2D9A1E410210004464153541023000646575231303010240007312E302F322E3010420007312E312E302E331054000800060050F204000110110018576972656C657373204E20526F7574657220465752313030100800022288103C0001011049000600372A000120
amy@heizi:~$ lshw -C net
WARNING: you should run this program as super-user.
*-network
description: Ethernet interface
product: 82566MM Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: enp0s25
version: 03
serial: 00:1d:72:9c:b9:95
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.3-0 latency=0 link=no multicast=yes port=twisted pair
resources: irq:26 memory:fe000000-fe01ffff memory:fe025000-fe025fff ioport:1840(size=32)
*-network
description: Wireless interface
product: PRO/Wireless 3945ABG [Golan] Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wls3
version: 02
serial: 00:1f:3c:c2:f6:fe
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwl3945 driverversion=4.4.0-98-generic firmware=15.32.2.9 ip=192.168.1.113 latency=0 link=yes multicast=yes wireless=IEEE 802.11abg
resources: irq:29 memory:dfcff000-dfcfffff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
amy@heizi:~$ lspci | grep net
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
amy@heizi:~$ lspci | grep -i net
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
amy@heizi:~$ lsmod | grep iwl
iwl3945 69632 0
iwlegacy 102400 1 iwl3945
mac80211 737280 2 iwl3945,iwlegacy
cfg80211 565248 3 iwl3945,iwlegacy,mac80211