Posts OpenWrt 基本配置
Post
Cancel

OpenWrt 基本配置

ssh 192.168.1.1 root 默认密码为空

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# === Set up the WAN (eth0) interface ==================
# Default is DHCP, this sets it to PPPoE (typical for DSL/ADSL)
# From http://wiki.openwrt.org/doc/howto/internet.connection
# Supply values for DSLUSERNAME and DSLPASSWORD
# and uncomment ten lines
#
# echo 'Configuring WAN link for PPPoE'
# DSLUSERNAME=YOUR-DSL-USERNAME
# DSLPASSWORD=YOUR-DSL-PASSWORD
# uci set network.wan.proto=pppoe
# uci set network.wan.username=$DSLUSERNAME
# uci set network.wan.password=$DSLPASSWORD
# uci commit network
# ifup wan
# echo 'Waiting for link to initialize'
# sleep 20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# === Update the software packages =============
# Download and update all the interesting packages
# Some of these are pre-installed, but there is no harm in
# updating/installing them a second time.
# echo 'Updating software packages'
# opkg update                # retrieve updated packages
# opkg install luci          # install the web GUI
# opkg install luci-i18n-base-zh-cn # web GUI 中文界面
# opkg install luci-i18n-firewall-zh-cn 防火墙中文
# opkg install snmpd fprobe  # install snmpd & fprobe
# opkg install luci-app-sqm  # install the SQM modules to get fq_codel etc
# opkg install ppp-mod-pppoe # install PPPoE module
# opkg install avahi-daemon  # install the mDNS daemon
# opkg install netperf	     # install the netperf module for speed testing

https://github.com/richb-hanover/OpenWrtScripts/blob/master/config-openwrt.sh

This post is licensed under CC BY 4.0 by the author.