Linux Wireless network configuration command

Source: Internet
Author: User
Linux Wireless network configuration (command) & mdash; wireless network card driver installation and WLAN802.11 configuration www.2cto. comlesslocalareanetwork is similar to wired ethernet. The 802.11a standard of WLAN uses a 5 GHz band and supports a maximum speed...
Linux Wireless Network configuration command-Wireless NIC driver installation and WLAN 802.11 configuration www.2cto.com WLAN (Wireless LocalArea Network) is similar to wired Ethernet, WLAN 802.11a standard uses 5 GHz band, the maximum supported speed is 54 Mbps, while the 802.11b and 802.11g standard use the 2.4 GHz band and support the maximum speed of 11 Mbps and 54 Mbps respectively. In Windows, the WLAN configuration is simple. Wireless network card manufacturers sell drivers in Windows along with the network card. Linux's emerging operating systems have few drivers. In the past, when I purchased a wireless network card, I did not consider the Linux driver. Therefore, I needed to compile the driver source code. Most of the wireless NICs on the market are for the Atheros chip. Such as TP-LINK 310G, 350G, 510G, 550G, 650G. For the Nic of The Atheros chip, you can find the driver on www.madwifi.org and obtain sufficient installation information based on the README and INSTALL files in the source code package. The latest driver source code package (version 0.9.2). The following describes how to install the Wireless NIC driver and how to configure WLAN. Operation steps: Download the driver source code package and store it in the/root/downloads directory www.2cto.com. step 1. decompress the source code Package 1 ). go to the file directory cd/root/downloads 2 ). decompress. bz2 format compressed package bunzip2 madwifi-0.9.2.tar.bz2 generate. tar format compressed package 3 ). extract the compressed package tar xvf madwifi-0.9.2.tar step 2, compile and install the Driver 4 ). enter the decompressed directory cd madwifi-0.9.2 5 ). compile the driver make to check the compilation information. If no error occurs, the compilation is successful. continue to install the driver. 6 ). install the driver make install www.2cto.com step 3. configure the driver module 7 ). insert scan module modprobe ath_pci 8 ). scan the access point modprobe wlan_scan_sta 9 ). start wireless network card H0 ifconfig ath0 up get Nic information 10 ). wlanconfig ath0 list scan Nic information is as follows, default is the name of the wireless LAN, 00: d0: f8: e0: a8: 88 is the physical address of the wireless router, 54M is a network card with a bandwidth of 54M. Ssid bssid chan rate s: n int caps default 00: d0: f8: e0: a8: 88 6 54 M 25:0 100 ESs
Alternatively, use the second command to obtain the detailed information iwlist ath0 scan ath0 Scan completed: Cell 01-Address: 00: D0: F8: E0: A8: 88 ESSID: "default" Mode: master Frequency: 2.437 GHz (Channel 6) Quality = 24/94 Signal level =-71 dBm Noise level =-95 dBm Encryption key: off Bit Rates: 1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s; 12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s 48 Mb/s; 54 Mb/s Extra: bcn_int = 100 step 4. Access point (Access Points) 11 ). use a wireless network name to connect to the iwc Onfig ath0 essid "default" or use the physical address of the wireless network router to access iwconfig ath0 ap 00: D0: F8: E0: A8: 88 or automatically find the accessible network iwconfig ath0 ap any OR: iwconfig ath0 ap auto www.2cto.com step 5. dynamically obtain the IP address 12 ). use DHCP to dynamically obtain ip information obtained from The ip address dhclient ath0. Internet Software Consortium DHCP Client 2.0pl5 Copyright 1995,199 6, 1997,199 8, 1999 The Internet Software Consortium. all rights reserved. please contribute if you find this software useful. For info, please visit; eth1: unknown hardware address type 24 eth1: unknown hardware address type 24 Listening on LPF/ath0/00: 02: 6f: 20: 14: 81 Sending on LPF/ath0/00: 02: 6f: 20: 14: 81 Sending on Socket/fallback-net DHCPDISCOVER on ath0 to mask 255.255.255 port 67 interval 7 DHCPOFFER from 192.168.1.1 DHCPREQUEST on ath0 to mask 255.255.255 port 67 DHCPACK from 192.168.1.1 bound to 192.168.1.1 03 -- renewal in 7200 seconds. 192.168.1.103 in the bottom line is the dynamically obtained IP address or the IP address is obtained by using the command dhcpcd ath0 13 ). test whether the network can be pinged to www.sina.com.cn. Step 6 is applicable to the failure of ip address allocation in a LAN without a DHCP server. Step 6. manually set the ip address www.2cto.com to contact the network administrator to obtain information about the LAN. You can also view the IP addresses assigned by DHCP in Windows and the default gateway and DNS. My default wireless LAN Gateway: 192.168.1.1, subnet mask: 255.255.255.0, DNS: 202.199.240.2 14 ). set the IP address and subnet mask ifconfig ath0 192.168.1.x netmask 255.255.255.0 up 15 ). edit the configuration file/etc/resolv. conf gedit/etc/resolv. add # to all nameservers in conf, add a row of nameserver 202.199.240.2, and save and exit 16 ). add default gateway route add default gw 192.168.1.1 17 ). enable the wireless network adapter ath0 ifconfig ath0 up 18 ). test whether the network can be pinged to www.sina.com.cn

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.