lab1_commands.txt 478 B

1234567891011121314151617181920212223242526
  1. # start mininet
  2. sudo python fattree.py
  3. # start pox controller
  4. sudo ~/pox/pox.py forwarding.l2_learning \
  5. openflow.spanning_tree --no-flood --hold-down \
  6. log.level --DEBUG samples.pretty_log \
  7. openflow.discovery host_tracker \
  8. info.packet_dump
  9. ## in mininet CLI
  10. # test hosts
  11. >pingall
  12. >net
  13. >dpctl dump-ports-desc
  14. # link down
  15. >link s6 s13 down
  16. >link s11 s20 down
  17. >link s9 s15 down
  18. # print all flowtable
  19. ./printflow.sh