Ubuntu 16.04 connecting to a wireless network

Source: Internet
Author: User

The Ubuntu 16.04 version was recently installed on the idle Dell Inspiron 6400, and the installation process is not discussed here.

After the installation is complete, the WiFi cannot be turned on and the wireless network card is configured by the following method.

1) View the corresponding PCI device

[Email Protected]:/code#Lspci00:00.0 Host Bridge:intel Corporation Mobile 945gm/pm/gms, 943/940GML and 945GT Express Memory Controller Hub (Rev 03)00:02.0 VGA compatible Controller:intel Corporation Mobile 945gm/gms, 943/940GML Express Integrated Graphics Controller ( Rev 03)00:02.1 Display Controller:intel Corporation Mobile 945gm/gms/gme, 943/940GML Express Integrated Graphics Controller (rev 03)00:1b.0 Audio Device:intel Corporation nm10/ich7 Family high Definition Audio Controller (Rev 01)00:1c.0 PCI Bridge:intel Corporation nm10/ich7 Family PCI Express Port 1 (Rev 01)00:1C.3 PCI Bridge:intel Corporation nm10/ich7 Family PCI Express Port 4 (Rev 01)00:1d.0 USB Controller:intel Corporation nm10/ich7 Family USB UHCI Controller#1 (REV)00:1d.1 USB Controller:intel Corporation nm10/ich7 Family USB UHCI Controller#2 (REV)00:1d.2 USB Controller:intel Corporation nm10/ich7 Family USB UHCI Controller#3 (REV)00:1d.3 USB Controller:intel Corporation nm10/ich7 Family USB UHCI Controller#4 (REV)00:1d.7 USB controller:intel Corporation nm10/ich7 Family USB2 EHCI Controller (Rev 01)00:1e.0 PCI Bridge:intel Corporation 82801Mobile PCI Bridge (rev. E1)00:1f.0 ISA Bridge:intel Corporation 82801GBM (ich7-m) LPC Interface Bridge (Rev 01)00:1F.2 IDE Interface:intel Corporation 82801GBM/GHM (ich7-m Family) SATA Controller [IDE mode] (Rev 01)00:1F.3 Smbus:intel Corporation nm10/ich7 Family SMBus Controller (Rev. 01)03:00.0 Ethernet controller:broadcom Corporation bcm4401-b0 100base-tx (rev)---> Physical nic03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd r5c832 IEEE 1394Controller03:01.1 SD host Controller:ricoh Co Ltd r5c822 Sd/sdio/mmc/ms/mspro Host Adapter (rev 19)03:01.2System Peripheral:ricoh Co Ltd r5c592 Memory Stick Bus Host Adapter (rev 0a)03:01.3 System Peripheral:ricoh Co Ltd xd-picture Card Controller (rev 05)0b: 00.0 Network controller:broadcom Corporation BCM4311 802.11b/G WLAN (rev)---> Wireless card

As you can see, the wireless card on my Dell 6400 is the BCM4311 of Broadcom. The default NIC driver for Ubuntu 16.04 does not work with the NIC, reinstalling the NIC driver as follows:

remove Ubuntu 16.04 default Broadcom Wireless card driver:sudo apt  -get Remove bcmwl-kernel-   Source   Install the latest Broadcom Wireless card driver in the community:sudo apt  -get Install Firmware-b43-installer b43-  fwcutter  View network card driver profile:/etc/modprobe.d/* |  egrep ' bcm '
You can see the bcm43xx blacklist configuration in blacklist.conf and remove the configuration.
#blacklist bcm43xx

Reboot the system after completion.

2) View the network card device

[Email Protected]:/code#lshw-c Network*-Network description:network Controller product:bcm4311802.11b/g WLAN vendor:broadcom Corporation physical ID:0Bus Info:pci@0000:0b:00.0version:01Width:32bits clock:33mhz capabilities:pm msi pciexpress bus_master cap_list configuration:driver=b43-pci-bridge latency=0RESOURCES:IRQ:memory:efdfc000-efdfffff*-Network DISABLED description:ethernet interface product:bcm4401-b0 100base-TX vendor:broadcom Corporation physical ID:0Bus Info:pci@0000:03:00.0logical Name:eth0 Version:02Serial:00:1c:23:ab:0f:56Capacity:100mbit/s width:32bits Clock:33mhz capabilities:pm bus_master cap_list Ethernet physical mii 10BT 10BT-FD 100BT 100bt-FD autonegotiation configuration:autonegotiation=on broadcast=yes driver=b44 driverversion=2.0 latency=64 link=no multicast=yes port=Twisted pair RESOURCES:IRQ:memory:ef9fe000-ef9fffff*-Network DISABLED description:wireless interface physical ID:2logical Name:wlan0 Serial:00:1e:4c:4a:ee:96capabilities:ethernet Physical Wireless Configuration:broadcast=yes driver=b43 driverversion=4.13.0-39-generic firmware=666.2 link=no multicast=yes Wireless=IEEE 802.11

You can see the Wlan0 Wireless card device in the device and configure the device.

3) Configure the wireless card device.

There are two ways to obtain the IP address automatically and statically configure the IP address. The/etc/network/interfaces file is configured.

Add the following to the auto-get method:

Auto Wlan0iface wlan0 inet dhcpwpa-SSID XXXXXXWPA-PSK yyyyyy

Statically configure the IP address method by adding the following:

192.168.0.150255.255.255.0192.168.0.1DNS-nameservers 192.168.0.1  XXX.XXX.XXX.XXXWPA-SSID XXXXXXWPA-PSK yyyyyyy

Where wpa-ssid this line is your WiFi name.

WPA-PSK is your Wi-Fi connection password.

Where Wlan0 is the WiFi interface name, please fill in according to your actual interface name.

4) Enable network port equipment

After the modification is complete, the wireless card can be enabled by the following command

# first turn off WiFi sudo ifdown wlan0 # then enable WiFisudo ifup-v wlan0

5) Test WiFi

 [Email protected]:/code#   ifconfig Wlan0  wlan0 Link encap:ethernet HWaddr 00:1e:4c:4a:ee:96 inet addr:192.168.0.150 bcast:192.168.0.255 mask:255.255.255.0 Inet6 addr:fe80 :: 2 1e:4cff:fe4a:ee96/64 Scope:link up broadcast RUNNING multicast MTU:  Met Ric:1 RX packets:  12559 errors:0 dropped:0 overruns:0 frame:0 TX packets:  8463 errors:0 dropped:0 overruns:0 carrier:0 Collisions:  0 txqueuelen:1000 RX bytes:  6858265 (6.8 MB) TX bytes:115 5958 (1.1 MB) 
[Email protected]:/code#  ping www.baidu.comping www.a.shifen.com (115.239.211.112) (bytes) of data. Bytes from 115.239.211.112:icmp_seq=1 ttl=56 time=8.89 Msto bytes from 115.239.211.112:icmp_seq=2 ttl=56 Tim e=4.25 msbytes from 115.239.211.112:icmp_seq=3 ttl=56 time=4.37 ms@ bytes from 115.239.211.112:ICM P_seq=4 ttl=56 time=9.20 msbytes from 115.239.211.112:icmp_seq=5 ttl=56 time=8.23 ms

The wireless card configuration is complete.

Ubuntu 16.04 connecting to a wireless network

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.