-
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 -
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:1This 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:66346634 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| |---------------------------|