1. 创建QOS,配置最大限速
ovs-vsctl --timeout=10 -- set Port eth1 qos=@newqos -- --id=@newqos create QoS type=linux-htb other-config:max-rate=900000000
2. 创建queue,并添加到之前的qos中
ovs-vsctl --timeout=10 create Queue other-config:min-rate=400000000 other-config:max-rate=800000000
ovs-vsctl --timeout=10 add qos 242af9b6-a4d4-4e35-986e-05e6f0e76a80 queues 0=8422ffb9-dfe3-457d-9e37-ddab0e22d26e
3. 设置流表,指定流向
ovs-ofctl --timeout=5 add-flow br-eth1 hard_timeout=0,idle_timeout=0,priority=50,ip=,dl_src=fa:16:3e:6e:c0:e2,actions=set_queue:0,mod_vlan_vid:1104,NORMAL