因为无线网卡上不了网,在接线时将网卡信息帖了上去。下面是切换到无线网卡后得到的信息:
uname -r
sudo lspci -knn | grep Network
代码: 全选
03:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
sudo lshw -numeric -class network
代码: 全选
*-network
description: Network controller
product: BCM4313 802.11bgn Wireless Network Adapter [14E4:4727]
vendor: Broadcom Corporation [14E4]
physical id: 0
bus info: pci@0000:03:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=bcma-pci-bridge latency=0
resources: irq:17 memory:f4700000-f4703fff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10EC:8168]
vendor: Realtek Semiconductor Co., Ltd. [10EC]
physical id: 0
bus info: pci@0000:09:00.0
logical name: eth0
version: 07
serial: 08:9e:01:89:a2:24
size: 100Mbit/s
capacity: 1Gbit/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 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.0.106 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:26 ioport:3000(size=256) memory:f3c04000-f3c04fff memory:f3c00000-f3c03fff
*-network
description: Wireless interface
physical id: 1
logical name: wlan0
serial: 2c:d0:5a:b2:10:ca
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=brcmsmac driverversion=4.2.0-1-amd64 firmware=610.812 link=no multicast=yes wireless=IEEE 802.11bgn
sudo ifconfig -a
代码: 全选
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 08:9e:01:89:a2:24 txqueuelen 1000 (Ethernet)
RX packets 742311 bytes 655069490 (624.7 MiB)
RX errors 0 dropped 402 overruns 0 frame 0
TX packets 548388 bytes 295621239 (281.9 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 50549 bytes 10249094 (9.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 50549 bytes 10249094 (9.7 MiB)
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 1183 bytes 183296 (179.0 KiB)
RX errors 0 dropped 7 overruns 0 frame 0
TX packets 717 bytes 109970 (107.3 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
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
sudo rfkill list all
代码: 全选
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
sudo nmcli dev status wlan0
代码: 全选
Unknown parameter: wlan0
DEVICE TYPE STATE CONNECTION
wlan0 wifi connected TP-LINK_HyFi_83
eth0 ethernet disconnected --
lo loopback unmanaged --
sudo dhclient -v
代码: 全选
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/2c:d0:5a:b2:10:ca
Sending on LPF/wlan0/2c:d0:5a:b2:10:ca
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPREQUEST of 192.168.0.111 on wlan0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.0.111 from 192.168.0.1
DHCPACK of 192.168.0.111 from 192.168.0.1
RTNETLINK answers: File exists
bound to 192.168.0.111 -- renewal in 3142 seconds.
sudo dkms status
代码: 全选
broadcom-sta, 6.30.223.271, 4.2.0-1-amd64, x86_64: installed
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