searchusermenu
  • 发布文章
  • 消息中心
点赞
收藏
评论
分享
原创

openvswitch端口相关命令整理

2023-06-02 02:45:46
53
0

ovs通过ofport进行数据面的处理,报过隧道终结,流表配置和匹配,限速等都是在端口实现的,现在整理了一些端口相关的ovs命令

查看设备的详细信息,设备状态,统计等
ovs-vsctl list interface br-ex
 
查看指定网桥的端口列表
ovs-vsctl list-ports br-ex
ovs-vsctl list-ifaces br-ex
 
查看port的统计
 
ovs-ofctl dump-ports br-ex dpdkbond0(最后一个参数可不填,显示网桥下所以端口统计)
ovs-vsctl get Interface dpdkbond0 statistics(比dum-ports多了设备的统计信息)
 
显示网桥下端口的mac,link状态等信息
ovs-ofctl show br-int
ovs-ofctl dump-ports-desc br-int
 
datapath端口(端口id在datapath上唯一)
ovs-appctl dpctl/show
 
ofport端口 (端口id在ovs网桥上唯一)
ovs-ofctl show br-int
 
设置和查看端口tag
ovs-vsctl set port xxx tag={vlanid} ## 设置vlan tag
ovs-vsctl get port xxx tag ## 查看vlan tag
 
0条评论
0 / 1000
何****森
13文章数
1粉丝数
何****森
13 文章 | 1 粉丝