Use tools in Ubuntu/MeeGo to set up Wireless Networks

Source: Internet
Author: User

For Ubuntu/MeeGo systems, the tool provided by the system can be used to set the wireless network. How can we set the tool?

1. Search for available Wireless Networks

$ Iwlist wlan0 scanning
Wlan0 represents a wireless network card. You can use iwconfig to check whether there are any available wireless network devices. Generally, after you buy a computer, you will know whether there is a wireless network card, otherwise, the probability of using Linux is quite small. Find the wireless network to be connected. The key field is ESSID, Encryption key, and Mode. ESSID is used to identify a wireless network. If the Encryption key is on, Encryption is used. If you do not have a password, you cannot connect. Mode indicates
Mode, which can be set using iwconfig.

2. Connect to the wireless network

# Iwconfig wlan0 essid "be_found" [mode...]
Generally, you only need to set essid, and keep the default value for others. Some NICs may have an essid but it does not work at all. In this case, you can directly set the ap address, as shown below:

# Iwconfig wlan0 ap ap_address,

Ap_address is the address of the available ap found for you using iwlist wlan0 scanning. Now you can use
$ Iwconfig wlan0
To view the wlan0 connection, you can see the ESSID of the connection.

3. Set IP addresses

# Dhclient wlan0
Dhclient is a DHCP Client that may output some error messages.
$ Ifconfig wlan0
Check whether the correct IP address and subnet mask are obtained. If the IP address and subnet mask are incorrect, it may be that the DHCP service is not enabled for the Wireless AP, so you need to manually set them. In this case, you need to know the valid IP address range, subnet mask and gateway. Fortunately, all LAN routes use 192.168.x.x. The most common settings are as follows:
# Ifconfig wlan0 192.168.1.110 netmask 255.255.255.0
# Route add default gw 192.168.1.101
You can use the ping ip address to check whether it is set correctly and whether it can reach your vro or Wireless AP of the gateway ).

4. Set DNS

If you still cannot access the Internet, run the following command to check whether the DNS settings are correct:
$ Ping www.g.cn
If ping returns immediately, the system prompts the location of the host www.g.cn, which means the DNS settings are incorrect.
Edit/etc/resolv. conf and add a row
NameserverIP_of_Nameserver

5. Enjoy MeeGo!

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.