Openwrt Wireless Configuration

Source: Internet
Author: User

Configure wired first
Set the lan ip address (that is, the IP address used to access the route)

  1. UCI set network. Lan. ipaddr = [lan ip]

Copy code

Pppoe user

  1. UCI set network. Wan. proto = pppoe // set the WAN port type to pppoe
  2. UCI set network. Wan. Username = [Internet account]
  3. UCI set network. Wan. Password = [Internet password] // set the pppoe user name and password

Copy code

If you want to attach it to a higher-level route

  1. UCI set network. Wan. proto = NONE // disable Wan
  2. UCI set network. Lan. Gateway = [upper-level Route IP address] // The Gateway points to the upper-level route
  3. UCI set network. Lan. DNS = [upper-level Route IP address] // DNS points to the upper-level route
  4. UCI set DHCP. Lan. Ignore = 1 // disable DHCP for the LAN

Copy code

Then wireless

  1. UCI set wireless. @ WiFi-device [0]. Disabled = 0 // enable wireless
  2. UCI set wireless. @ WiFi-device [0]. txpower = 17 // if the power is set to 17dbm, the wireless module will be burned if the power is too high.
  3. UCI set wireless. @ WiFi-device [0]. Channel = 6 // set the wireless channel to 6
  4. UCI set wireless. @ WiFi-iface [0]. mode = ap // set the wireless mode to AP
  5. UCI set wireless. @ WiFi-iface [0]. SSID = [set your own SSID] // set the wireless SSID
  6. UCI set wireless. @ WiFi-iface [0]. Network = LAN // link to the LAN wirelessly
  7. UCI set wireless. @ WiFi-iface [0]. Encryption = psk2 // set encryption as WPA2-PSK
  8. UCI set wireless. @ WiFi-iface [0]. Key = [Password] // set the wireless password

Copy code

Final application configuration

  1. UCI commit // Application
  2. /Etc/init. d/network restart // restart the network service

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.