Security in CPS/MTD over SDN

[Tips] shell commands on mininet

mjune.kim 2019. 8. 22. 10:14
  • pingall
  • dump
  • net
  • sh ovs-ofctl show s1
  • sh ovs-ofctl add-flow s1 action=normal
  • sh ovs-ofctl dump-flows s1
    • RESULTS: cookie=0x0, duration=228.733s, table=0, n_packets=27, n_bytes=1890, actions=NORMAL
  • sh ovs-ofctl del-flows s1
  • sh ovs-ofctl add-flow s1 priority=500,in_port=1,actions=output:2
  • sh ovs-ofctl del-flows s1 --strict
  • sh ovs-ofctl add-flow s1 dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:02,action=output:2
    • cookie=0x0, duration=40.508s, table=0, n_packets=2, n_bytes=196, dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:02 actions=output:"s1-eth2
    • cookie=0x0, duration=30.090s, table=0, n_packets=2, n_bytes=196, dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:01 actions=output:"s1-eth1"
  • sh ovs-ofctl add-flow s1 dl_type=0x806,nw_proto=1,action=flood