Skip to content

Instantly share code, notes, and snippets.

@pichuang
Last active August 29, 2015 14:06
Show Gist options
  • Save pichuang/8620d4f8c9def794ac3d to your computer and use it in GitHub Desktop.
Save pichuang/8620d4f8c9def794ac3d to your computer and use it in GitHub Desktop.
Mininet testing Topology
#!/bin/sh -ev
#Reference: http://www.routereflector.com/wp-content/uploads/2013/11/linear.png
# http://www.routereflector.com/2013/11/mininet-as-an-sdn-test-platform/
CONTROLLER_IP=192.168.1.45
mn --topo linear,2 --mac --switch ovsk,protocols=OpenFlow13 --controller remote,$CONTROLLER_IP
#!/bin/sh -ev
#Reference: http://www.routereflector.com/wp-content/uploads/2013/11/tree.png
# http://www.routereflector.com/2013/11/mininet-as-an-sdn-test-platform/
CONTROLLER_IP=192.168.1.45
mn --topo tree,3 --mac --switch ovsk,protocols=OpenFlow13 --controller remote,$CONTROLLER_IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment