Start and stop POX controller

Source:  Start and stop POX controller    Tag:  mininet
1) To start POX, go inside the POX folder

$sudo python ./ py


$sudo python ./ py openflow.discovery forwarding.l2_learning

2) If it says address already in use

Find what application/process is using the pro, type:

$sudo netstat -lpn |grep :6633

You will get an output similar to this one

tcp6       0      0 :::6633                 :::*                    LISTEN      6782/java

I have got the process Id, which is 6782, now this is the process that is using port 6633. To Kill the process, type

$sudo kill 6782

3) Stop POX

POX > exit ()

If you forget it, then next time

$sudo killall controller