Skip to content
Nikita Marchenko edited this page Jul 16, 2018 · 3 revisions

port up\down

docker exec -ti mininet ovs-ofctl -O OpenFlow13 mod-port <SW> <PORT> up\down

port status

docker exec -ti mininet ovs-ofctl -O OpenFlow13 dump-ports-desc <SW>

port number to port name

ovs-vsctl -- --columns=name,ofport list Interface

ports on sw + dpid

ovs-ofctl -OOpenFlow13 show <SW>

Create sw and link to exist 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
Clone this wiki locally