首页 > 代码库 > flowvisor连接ovs

flowvisor连接ovs

1 开启flowvisor
$ sudo -u flowvisor fvconfig generate /etc/flowvisor/config.json
   $ sudo /etc/init.d/flowvisor start
   $ fvctl -f /dev/null set-config --enable-topo-ctrl
   $ sudo /etc/init.d/flowvisor restart

使用netstate -at去看一下端口6633(默认)是否在被监听,如果监听则是成功开启

2 在ovs上,新建的br0交换机

ovs-vsctl show
c445ba3c-b933-4a67-9517-8323b0a62538
Bridge "br0"
Port "br0"
Interface "br0"
type: internal
Port "eth1"
Interface "eth1"
ovs_version: "2.0.2"


设置控制器,连接到flowvisor
ovs-vsctl set-controller tcp:192.168.109.4:6633


根据这个网站上的http://blog.csdn.net/sherkyoung/article/details/38405907
在flowvisor上查看交换机是否连上
 /usr/bin/fvctl -f /dev/null list-datapaths

Connected switches:
1 : 00:00:26:4d:14:25:6e:47

 

 

3 连pox控制器

在pox上运行

sudo python pox.py log.level --DEBUG forwarding.l2_learning

然后在flowvisor上新建切片

fvctl -p 8081 add-slice s1 tcp:192.168.109.5:6633 

fvctl -p 8081 list-slice-info s1 查看切片消息

然后新建flowspace

 fvctl -p 8081 add-flowspace fs1 all 100 any s1=7 这时pox开始显示连接正常了

 

 

这样flowvisor ovs pox连接成功

 





flowvisor连接ovs