Openvswitch 配置qos

 

测试环境如下

网络设备 cisco 2960s

服务器 dell r610

操作系统 fedora 15+update

服务器上添加一块intel 82571双端口的网卡,分别接交换机的1口,2

 

配置端口tap0 最大速度不超过100M

ovs-vsctl -- set port tap0  qos=@newqos \

-- --id=@newqos create qos type=linux-htb other-config:max-rate=100000000 queues=0=@q0,1=@q1 \

-- --id=@q0 create queue other-config:min-rate=100000000 other-config:max-rate=100000000 \

-- --id=@q1 create queue other-config:min-rate=500000000 \

 

清除tap0上的qos策略

ovs-vsctl -- destroy QoS tap0 -- clear Port tap0 qos

 

查看交换机br0端口信息

ovs-ofctl show br0

ovs-dpctl show