Linux wireless network configuration (CentOS6.4 + Intel N6200)

Source: Internet
Author: User

Linux wireless network configuration (CentOS6.4 + Intel N6200) 1. Prevent network conflicts: first, there is a conflict between the network and NetworkManager. Disable the network management service. % Service NetworkManager stop %/etc/init. d/network restart 2. Copy Driver: It is usually compiled as a module when the kernel is compiled. 3. Check whether the firmware of the wireless network card is installed and available. % Lspci | grep Network: % lsusb | grep Network 4 if it is a usb Nic. driver Module Unmount and reload, and test % modprobe-r iwlwifi % modprobe iwlwifi % lsmod | grep iwlwifi 5. wireless Network List Search % iwlist wlan0 scan 6. configure/etc/sysconfig/network-scripts/The ifcfg-wlan0 configuration is basically the same as eth0 login verification password is not written in this configuration, otherwise "Error for request" Set Encode "(8B2A) will appear ): invalid argument "error. 6.1 install wpa-supplicant tool % yum-y install wpa_supplicant % wpa_passphrase "essid_name" # For example: TP-LINK1 input: ****** # Here is the access password, for example, 123456 network = {ssid = "TP-LINK1" # psk = "******" # Here is the access password plaintext, for example, 123456 psk = ************************************ * ************************** # This is calculated based on the above two items} % vi /etc/wpa_supplicant/wpa_supplicant.conf copy and append the network item content to the end of the configuration file, it is best to cancel the psk plaintext password, for example, ctrl_interface =/var/run/wpa_supplicant ctrl_inte. Rface_group = wheel network = {ssid = "TP-LINK1" psk = *************************** * *********************************** # here is based on} calculated from the preceding two items, and then restart the service %/etc/init. d/wpa_supplicant restart ifcfg-wlan0 configuration Note: DEVICE = wlan0 TYPE = wireless ONBOOT = yes NM_CONTROLLED = no BOOTPROTO = static # This item can be static, manual, none, dhcp, etc, set DNS = 8.8.8.8%/etc/init. d/network restart at this time, the Destination Host Unreachable still appears when you ping the gateway or the Internet, because Nic, load driver, search for wireless network, but it does not mean that a connection has been established. Therefore, you also need to connect % wpa_supplicant-iwlan0-c/etc/wpa_supplicant/wpa_supplicant.conf. The first parameter must specify the NIC interface as wlan0, that is, specify the acceptor of the connection object. The second parameter is the configuration file reading, which is mainly the essid and psk values just set for the connection service verification. Now the association has been established, and ping again to connect to the Internet. Note that this wireless setting is no problem for the dual-nic of the physical machine, but it is a problem for the linux System in the virtual machine, because during the bridging, the ports of the virtual NIC are all eth0, the abstraction of the underlying wireless connection is shielded, so no wireless settings are required.

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.