-
Notifications
You must be signed in to change notification settings - Fork 53
ovs
Nikita Marchenko edited this page Sep 21, 2020
·
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 (must be created first if it doesn't exist yet, procedure is the same as for br0 switch)
- 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 #create a veth pair (a virtual patch cable, two virtual network ports called br0-eth1 and 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 #attach right side of patch to br0
ovs-vsctl add-port LEFT LEFT-eth6 -- set interface LEFT-eth6 ofport=6 #and left side to LEFT switch
ovs-vsctl del-br br0
ip link del br0-eth1 type veth peer name LEFT-eth6
ovs-vsctl del-port LEFT LEFT-eth6
ovs-ofctl dump-flows <SW> -O OpenFlow13