Specialization Software-defined Networking (Winter 2015/2016): Difference between revisions

Jump to navigation Jump to search
Line 175: Line 175:
*** $ dpctl dump-flows tcp:127.0.0.1:6634
*** $ dpctl dump-flows tcp:127.0.0.1:6634


==== Exercise IV: ====
==== Exercise IV: Pyretic Firewall ====
* Aim: Pyretic based firewall
* Topology [https://dl.dropboxusercontent.com/u/1652374/SDN_course_WS2015-2016/Exercises/ex3/1.firewall-fig.pdf]
* Put the following files in folder: pyretic/pyretic/examples
* $ sudo mn --controller remote --topo=single,3 --mac --arp
 
* (20P) Run the pyretic hub example
*** $ pyretic.py –v high pyretic.examples.pyretic_hub
** Verify that the hosts can ping each other
*** > xterm h1 h2 h3
*** h2$ tcpdump -xx -n -i h2-eth0
*** h3$ tcpdump -xx -n -i h3-eth0
*** h1$ ping -c1 10.0.0.2
** Observe what happens when you do
*** h1$ ping -c1 10.0.0.5
** Look into the hub code: pyretic/pyretic/examples/pyretic_hub
 
* (20P) Run the pyretic switch example
*** $ pyretic.py –v high pyretic.examples.pyretic_switch1
** Verify that the hosts can ping each other
*** > xterm h1 h2 h3
*** h2$ tcpdump -xx -n -i h2-eth0
*** h3$ tcpdump -xx -n -i h3-eth0
*** h1$ ping -c1 10.0.0.2
** Observe what happens when you do
*** h1$ ping -c1 10.0.0.5
** Look into the switch code: pyretic/pyretic/examples/pyretic_switch1.py


=== 23 March ===
=== 23 March ===
783

edits

Navigation menu