"Reprint" openwrt four------openwrt command-line mode commands and their tools

Source: Internet
Author: User
Tags i18n

Connection Source http://bbs.xiaomi.cn/thread-9734746-1-1.html

you need to learn to use SSH to log in to the router with Linux commands.
PS command to view process information currently running on the system
The free command to view memory usage and swap mount conditions
LS Viewing directories and files
CD Entry Exit Directory
VI view edit configuration file

installation command:
#opkg Update
#opkg Install nano


UCI set Network.lan.ipaddr=[lan IP]

Using PPPoE settings
Shell Code
UCI set Network.wan.proto=pppoe//Set WAN port type to PPPoE
UCI set network.wan.username=[Internet account]
UCI set network.wan.password=[Internet password]//These two lines set PPPoE user name and password

If you want to hang under a superior route, you need to make the following settings
Shell Code
UCI set Network.wan.proto=none//switch off WAN
UCI set network.lan.gateway=[Superior routing IP]//gateway to Superior Route
UCI set network.lan.dns=[Superior Route IP]//dns point to Superior route
UCI set dhcp.lan.ignore=1//Turn off DHCP for LAN

Finally configure the wireless network
Shell Code
UCI set [email protected][0].disabled=0//Turn on wireless
UCI set [email protected][0].txpower=17//set power to 17dbm too high will burn the wireless module
UCI set [email protected][0].channel=6//set wireless channel to 6
UCI set [email protected][0].mode=ap//set wireless mode to AP
UCI set [email protected][0].ssid=[own SSID]//set wireless SSID
UCI set [email protected][0].network=lan//Wireless Link to LAN
UCI set [email protected][0].encryption=psk2//Set encryption to WPA2-PSK
UCI set [email protected][0].key=[password]//set Wireless password

Submit App Configuration
Shell Code
UCI commit//Application
/etc/init.d/network Restart//Restart Network Service


Installing the Luci Management interface
Shell Code
OPKG Update//Updating software list
Opkg list-installed//view installed software
Opkg Install Luci//installation Luci
Opkg Install Luci-i18n-chinese//Support Chinese

Luci-app-firewall-0.10.0-1
Luci-i18n-english-0.10.0-1
Luci-lib-core-0.10.0-1
Luci-lib-ipkg-0.10.0-1
Luci-lib-lmo-0.10.0-1
Luci-lib-nixio-0.10.0-1
Luci-lib-sys-0.10.0-1
Luci-lib-web-0.10.0-1
Luci-mod-admin-core-0.10.0-1
Luci-mod-admin-full-0.10.0-1
Luci-proto-core-0.10.0-1
Luci-proto-ppp-0.10.0-1
Luci-sgi-cgi-0.10.0-1
Luci-theme-base-0.10.0-1
Luci-theme-openwrt-0.10.0-1

You can complete the installation of Luci.
Enter the following command to open the UHTTPD that supports Web services and set it to self-boot:
Shell Code
/ETC/INIT.D/UHTTPD Enable # Boot from
/ETC/INIT.D/UHTTPD Start # UHTTPD

-Wifidog
You can try to install WiFiDog by executing the following command:
OPKG Update # Optional
Opkg Install WiFiDog

--SFTP Installation
OPKG Update
Opkg Install VSFTPD Openssh-sftp-server
/ETC/INIT.D/VSFTPD Enable
/ETC/INIT.D/VSFTPD start


Xiaomi Port forwarding command:

by modifying the/etc/config/firewall this file to achieve the opening of the port you need to the extranet.


Config rule ' Httpdwan '
Option Src ' wan '
Option Dest_port ' 8088 '
Option Proto ' TCP '
Option target ' ACCEPT '
Option name ' \ ' httpd WAN accept TCP port 8088 ' \ '





after saving, perform/etc/init.d/firewall restart restart the firewall.


SSH Tools:
1.WINSCP
2.putty Chinese version The difficulty of using Chinese is relatively low
3. Skilled User recommendation SecureCRT
It is very convenient to operate multiple machines. This self-search installation bar ~

also attached VI command diagram:




No typesetting, headache ...

"Reprint" openwrt four------openwrt command-line mode commands and their tools

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.