-
Notifications
You must be signed in to change notification settings - Fork 53
ovs
Nikita Marchenko edited this page Jul 16, 2018
·
3 revisions
docker exec -ti mininet ovs-ofctl -O OpenFlow13 mod-port <SW> <PORT> up\down
docker exec -ti mininet ovs-ofctl -O OpenFlow13 dump-ports-desc <SW>
ovs-vsctl -- --columns=name,ofport list Interface
ovs-ofctl -OOpenFlow13 show <SW>
- LEFT - dst sw
- br0 - new sw
ovs-vsctl add-br br0 \
-- set bridge br0 protocols=OpenFlow13 \
-- set-controller br0 tcp:172.19.0.11:6653 \
-- set bridge br0 other-config:datapath-id="7000000000000000"
ip link add br0-eth1 type veth peer name LEFT-eth6
ip link set br0-eth1 up
ip link set LEFT-eth6 up
ovs-vsctl add-port br0 br0-eth1 -- set interface br0-eth1 ofport=1
ovs-vsctl add-port LEFT LEFT-eth6 -- set interface LEFT-eth6 ofport=6
clean-up
ovs-vsctl del-br br0
ip link del br0-eth1 type veth peer name LEFT-eth6
ovs-vsctl del-port LEFT LEFT-eth6