flowctl

更新时间:
2024-01-09
下载文档

flowctl

显示/添加/删除/更改流控制状态。

格式

flowctl
flowctl [add | del | chg] [ip | if] [...]

说明

[root@sylixos:/root]# help flowctl        
show, add, delete, change flow control status.
eg. flowctl
    flowctl add ip 192.168.1.1 192.168.1.10 tcp 20 80 dev en1 50 100 64
       add a flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 tcp protocol port(20 ~ 80)
       uplink 50KBytes downlink 100KBytes buffer is 64KBytes
    flowctl add ip 192.168.1.1 192.168.1.10 udp 20 80 dev en1 50 100
       add a flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 udp protocol port(20 ~ 80)
       uplink 50KBytes downlink 100KBytes buffer is default size
    flowctl add ip 192.168.1.1 192.168.1.10 all dev en1 50 100
       add a flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 all protocol
       uplink 50KBytes downlink 100KBytes buffer is default size
    flowctl chg ip 192.168.1.1 192.168.1.10 tcp 20 80 dev en1 50 100
       change flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 tcp protocol port(20 ~ 80)
       uplink 50KBytes downlink 100KBytes buffer is default size
    flowctl del ip 192.168.1.1 192.168.1.10 tcp 20 80 dev en1
       delete a flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 tcp protocol port(20 ~ 80)
    flowctl add if dev en1 50 100 64
       add flow control rule: iface: en1(LAN Port)
       uplink 50KBytes downlink 100KBytes buffer 64K
    flowctl chg if dev en1 50 100
       change flow control rule: iface: en1(LAN Port)
       uplink 50KBytes downlink 100KBytes buffer is default size
    flowctl del if dev en1
       delete a flow control rule: iface: en1(LAN Port)
flowctl [add | del | chg] [ip | if] [...]
[root@sylixos:/root]# 

此命令有 2 种用法:

  • 不加参数用于显示流控制状态。
  • 后接参数用于添加/删除/更改流控制状态。

flowctl <type> <ip/if> <ip_start> <ip_end> protocol <port_start> <port_end> iface <up_spdlimit> <down_spdlimit> buffer

以上命令函数如下:

  • type:操作的类型(包括:add/del/chg)。
  • ip/if:指定后面操作的类型(如:IP 后面指定 IP 地址,if 后面指定网络接口)。
  • ip_start:限制的起始 IP 地址。
  • ip_end:限制的结束 IP 地址。
  • protocol:需要限制的协议类型(包括:TCP/UDP/ALL)。
  • port_start:限制的起始端口。
  • port_end:限制的结束端口。
  • iface:限制的网络接口(如:en1, en2)
  • up_spdlimit:限制的上行速度。
  • down_spdlimit:限制的下行速度。
  • buffer。限速的临时缓冲区。

备注:
旗舰版。

样例

[root@sylixos:/root]# help flowctl
show, add, delete, change flow control status.
eg. flowctl
    flowctl add ip 192.168.1.1 192.168.1.10 tcp 20 80 dev en1 50 100 64
       add a flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 tcp protocol port(20 ~ 80)
       uplink 50KBytes downlink 100KBytes buffer is 64KBytes

    flowctl add ip 192.168.1.1 192.168.1.10 udp 20 80 dev en1 50 100
       add a flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 udp protocol port(20 ~ 80)
       uplink 50KBytes downlink 100KBytes buffer is default size

    flowctl add ip 192.168.1.1 192.168.1.10 all dev en1 50 100
       add a flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 all protocol
       uplink 50KBytes downlink 100KBytes buffer is default size

    flowctl chg ip 192.168.1.1 192.168.1.10 tcp 20 80 dev en1 50 100
       change flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 tcp protocol port(20 ~ 80)
       uplink 50KBytes downlink 100KBytes buffer is default size

    flowctl del ip 192.168.1.1 192.168.1.10 tcp 20 80 dev en1
       delete a flow control rule: iface: en1(LAN Port) ip frome 192.168.1.1 to 192.168.1.10 tcp protocol port(20 ~ 80)

    flowctl add if dev en1 50 100 64
       add flow control rule: iface: en1(LAN Port)
       uplink 50KBytes downlink 100KBytes buffer 64K

    flowctl chg if dev en1 50 100
       change flow control rule: iface: en1(LAN Port)
       uplink 50KBytes downlink 100KBytes buffer is default size

    flowctl del if dev en1
       delete a flow control rule: iface: en1(LAN Port)
flowctl [add | del | chg] [ip | if] [...]
文档内容是否对您有所帮助?
有帮助
没帮助