Linux Tutorial: wireless network configuration in Shell

Source: Internet
Author: User

Preface: Do not ask why you need to configure the network in Shell (command line) when the desktop system is popular. If you have any questions, please stop reading this article.


$ Iwlist wlan0 scan # list valid Wireless Networks

$ Iwconfig wlan0 Essid <Wireless Network Name> # connect to a wireless network without a password

$ Iwconfg wlan0 Essid <Wireless Network Name> key <password> # connect to a wireless network with a password. If the password is ASCII, use <s: Pass-word>, the password does not contain "<>", and is separated "-".

$ Ifconfig wlan0 up # switch to a wireless Nic

$ Dhclient wlan0 or dhcpcd wlan0 # automatically obtain the IP address from the wireless network.

If you are using ADSL, continue:

$ Pppoeconf

After the command is completed, you will be asked to enter username and password.

 

 

Related Article

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.