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!