Skip to content
deepadhurka edited this page Dec 12, 2014 · 31 revisions
  1. Run mul

     sudo ./mul 
    

    This is the mul debug console

  2. Log into MUL CLI

     telnet localhost 7000
    
  3. [MUL CLI documentation] (https://github.com/openmul/openmul/blob/master/docs/openmul-CLI_GUIDE-basic.pdf)

  4. Run mininet

     sudo mn --controller=remote,ip=127.0.0.1 --switch ovsk --topo linear,1
    
  5. [Mininet CLI documentation] (http://mininet.org/walkthrough/#part-3-mininet-command-line-interface-cli-commands)

  6. Run wireshark and capture lo0 interface

     sudo wireshark
    
  7. Some useful commands:

  • Mininet - network with 1 switch and 2 hosts

        sudo mn --controller=remote,ip=127.0.0.1 --switch ovsk 
            --topo single,2 -v debug --mac
    
  • Mininet - network with a host per switch (2 switches, 2 hosts)

         sudo mn --controller=remote,ip=127.0.0.1 --switch ovsk 
             --topo linear,2 -v debug --mac
    
  • Mininet - check for operation, ping

         h1 ping h2
         h1 ifconfig
    
  • Manually install flows using dpctl

         $ dpctl add-flow tcp:127.0.0.1:6634 in_port=1,actions=output:2
         $ dpctl add-flow tcp:127.0.0.1:6634 in_port=2,actions=output:1
    

    This does not test the controller. However, adding 2 flows to test ping is useful for baseline testing.

  • Check flows on the switch with dpctl

         dpctl dump-flows tcp:127.0.0.1:6634
    

    6634 is passive listen port for s1. s2, s3 etc use 6635, 6636 and so on

  • Mul - Controller configuration mode

         >enable
         #configure terminal
         (config)#mul-conf
         (mul-main)# 
    
  • Mul - Set a flow on a wildcard (0.0.0.0/0) or a specific host ip from mil-main config mode

         of-flow add switch 0x1 dip 0.0.0.0/0 sip 0.0.0.0/0 proto * tos * 
           dport * sport * smac * dmac * eth-type * vid * vlan-pcp * in-port * 
    
  • Mul - Add an action after the flow is configured

         (config-flow-action)#  action-add vlan-id 2
         (config-flow-action)# commit
    
  • Mul - View the flow on the switch

         show of-flow switch <dp-id>
    

|< < Prev Page| |---------------------------|

Clone this wiki locally