-
Notifications
You must be signed in to change notification settings - Fork 5
SDN Test Setup
-
Run mul
sudo ./mulThis is the mul debug console
-
Log into MUL CLI
telnet localhost 7000 -
[MUL CLI documentation] (https://github.com/openmul/openmul/blob/master/docs/openmul-CLI_GUIDE-basic.pdf)
-
Run mininet
sudo mn --controller=remote,ip=127.0.0.1 --switch ovsk --topo linear,1 -
[Mininet CLI documentation] (http://mininet.org/walkthrough/#part-3-mininet-command-line-interface-cli-commands)
-
Run wireshark and capture lo0 interface
sudo wireshark -
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 -
Mul -
-
Mul - Add flows from VTY
$ dpctl add-flow tcp:127.0.0.1:6633 in_port=1,actions=output:2 $ dpctl add-flow tcp:127.0.0.1:6633 in_port=2,actions=output:1 -
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 *
Add an action: (Add an action after the flow is added) (config-flow-action)# action-add vlan-id 2 (config-flow-action)# commit
View the flow on the switch: show of-flow switch
|< < Prev Page| |---------------------------|