OpenWrt UCI 语法与历史 QoS 输出
本页保留原设备的 UCI 帮助和 QoS 输出,不代表所有 OpenWrt 版本的命令集合。完整字段关系见UCI 与 QoS 实践。
UCI(修改配置文件)
配置文件
pwd-->/etc/config
语法
shell
root@Accesshub:/etc/config# uci
Usage: uci [<options>] <command> [<arguments>]
Commands:
batch
export [<config>]
import [<config>]
changes [<config>]
commit [<config>]
add <config> <section-type>
add_list <config>.<section>.<option>=<string>
del_list <config>.<section>.<option>=<string>
show [<config>[.<section>[.<option>]]]
get <config>.<section>[.<option>]
set <config>.<section>[.<option>]=<value>
delete <config>[.<section>[[.<option>][=<id>]]]
rename <config>.<section>[.<option>]=<name>
revert <config>[.<section>[.<option>]]
reorder <config>.<section>=<position>
Options:
-c <path> set the search path for config files (default: /etc/config)
-d <str> set the delimiter for list values in uci show
-f <file> use <file> as input instead of stdin
-m when importing, merge data into an existing package
-n name unnamed sections on export (default)
-N don't name unnamed sections
-p <path> add a search path for config change files
-P <path> add a search path for config change files and use as default
-q quiet mode (don't print error messages)
-s force strict mode (stop on parser errors, default)
-S disable strict mode
-X do not use extended syntax on 'show'uci show [configFile]
shell
qos.wan=interface
qos.wan.classgroup='Default'
qos.wan.enabled='0'
qos.wan.upload='128'
qos.wan.download='1024'
qos.@classify[0]=classify
qos.@classify[0].target='Priority'
qos.@classify[0].ports='22,53'
qos.@classify[0].comment='ssh, dns'
qos.@classify[1]=classify
qos.@classify[1].target='Normal'
qos.@classify[1].proto='tcp'
qos.@classify[1].ports='20,21,25,80,110,443,993,995'
qos.@classify[1].comment='ftp, smtp, http(s), imap'
qos.@classify[2]=classify
qos.@classify[2].target='Express'
qos.@classify[2].ports='5190'
qos.@classify[2].comment='AOL, iChat, ICQ'
qos.@default[0]=default
qos.@default[0].target='Express'
qos.@default[0].proto='udp'
qos.@default[0].pktsize='-500'
qos.@reclassify[0]=reclassify
qos.@reclassify[0].target='Priority'
qos.@reclassify[0].proto='icmp'
qos.@default[1]=default
qos.@default[1].target='Bulk'
qos.@default[1].portrange='1024-65535'
qos.Default=classgroup
qos.Default.classes='Priority Express Normal Bulk'
qos.Default.default='Normal'
qos.Priority=class
qos.Priority.packetsize='400'
qos.Priority.avgrate='10'
qos.Priority.priority='20'
qos.Priority_down=class
qos.Priority_down.packetsize='1000'
qos.Priority_down.avgrate='10'
qos.Express=class
qos.Express.packetsize='1000'
qos.Express.avgrate='50'
qos.Express.priority='10'
qos.Normal=class
qos.Normal.packetsize='1500'
qos.Normal.packetdelay='100'
qos.Normal.avgrate='10'
qos.Normal.priority='5'
qos.Normal_down=class
qos.Normal_down.avgrate='20'
qos.Bulk=class
qos.Bulk.avgrate='1'
qos.Bulk.packetdelay='200'
qos.@classify[3]=classify
qos.@classify[3].target='Priority'
qos.@classify[3].proto='icmp'
qos.@classify[3].connbytes='11'
qos.@classify[3].comment='ssh'
qos.@example-wan[0]=example-wan
qos.@interface.example[0]=interface.example继续阅读
- 知识专题AccessHub S500 网络与服务配置 · 公司适用
- 应用实践openWrt uci · 公司适用
- 应用实践openwrtQOS · 公司适用