ovs-vsctl设置ofport不成功处理

来源:互联网 发布:成都市行知小学怎么样 编辑:程序博客网 时间:2024/06/06 13:15

桥结果不成功

现象:ovs-vsctl add-br br0

ovs-vsctl add-port br0 eth1

ovs-vsctl set Interface eth1 ofport_request=101

结果查询发现eth1 ofport为空

原因是未设置桥数据path类型为netdev

(2.5.0)

原因是没有设置br0 type = netdev


官方说法

 <p>To use ovs-vswitchd in userspace mode, create a bridge with datapath_type "netdev" in the configuration database.


  ovs-vsctl del-br br0
   73      ovs-vsctl add-br br0
   74      ovs-vsctl set bridge br0 datapath_type=netdev
   75      ovs-vsctl add-port br0 eth0
   76      ovs-vsctl add-port br0 eth1
   77      ovs-vsctl add-port br0 eth2
   78  ovs-vsctl show
   79  ovs-vsctl del-port br0 eth0
   80  ovs-vsctl del-port br0 eth1
   81  ovs-vsctl set Interface eth2 ofport_request=102
   82  ovs-vsctl get Interface eth2 ofport
   83  ovs-vsctl show
   84  ovs-dpctl show
   85  ovs-ofctl show br0
   86  ovs-vsctl show br0
   87  ovs-vsctl show
   88  ovs-vsctl add-port br0 eth3
   89  ovs-vsctl show
   90  ovs-vsctl set Interface eth3 ofport_request=103
   91  ovs-ofctl show
   92  ovs-ofctl show br0
   93  ovs-ofctl add-flow br0 in_port=102,actions:output:103
   94* ovs-ofctl add-flow br0 in_port=102,actions=output:1
   95  ovs-ofctl add-flow br0 in_port=103,actions=output:102
   96  ovs-ofctl show
   97  ovs-ofctl show br0
   98  ovs-ofctl dump-flows br0
   99  tcpdump -i eth2
  100  ovs-ofctl add-flow br0 dl_type=0x0806 actions=accept
  101  ovs-ofctl add-flow br0 dl_type=0x0806,actions=accept
  102  ovs-ofctl add-flow br0 dl_type=0x0806,actions=permit
  103  ovs-ofctl add-flow br0 dl_type=0x0806,actions=pass
  104  ovs-ofctl dump-flows br0
  105  ovs-ofctl add-flow br0 dl_type=0x0806,actions=NORMAL
  106  ovs-ofctl dump-flows br0
  107  tcpdump -i eth3
  108  ovs-ofctl dump-flows
  109  ovs-ofctl dump-flows br0
  110  ovs-ofctl --help
  111  ovs-ofctl dump-flows br0
  112  ovs-ofctl del-flow br0 dl_type=0x0806
  113  ovs-ofctl del-flows br0 dl_type=0x0806
  114  ovs-ofctl dump-flows br0
  115  history



0 0
原创粉丝点击