qosruleadd
向 QoS 添加规则。
格式
qosruleadd <netifname> <rule> [args...] <s|d|b> <prio> <dont_drop>
说明
[root@sylixos:/root]# help qosruleadd
add a rule into QoS.
qosruleadd en1 ip 192.168.0.5 192.168.0.10 s 5 no
qosruleadd lo0 udp 0.0.0.0 255.255.255.255 433 500 b 6 yes
qosruleadd wl2 tcp 192.168.0.1 192.168.0.200 169 169 d 2 no
qosruleadd [netifname] [rule] [args...] [s|d|b] [prio] [dont_drop]
[root@sylixos:/root]#
此命令用于从 QoS 添加规则。qoss命令的作用是显示 QoS 规则。
样例
[root@sylixos:/root]# qosruleadd en1 ip 192.168.0.5 192.168.0.10 s 5 no
[root@sylixos:/root]# qoss
NETIF ATTACH SEQNUM RULE CMP_METHOD PRIO DONT_DROP IPs IPe PORTs PORTe
en1 YES 0 IP SRC 5 NO 192.168.0.5 192.168.0.10 N/A N/A
QoS State: off