Mininet-Wifi

Mininet-Wifi setup.

$ git clone https://github.com/intrig-unicamp/mininet-wifi
$ cd mininet-wifi && sudo util/install.sh -Wlnfv

# in case locales error (pip)
$ export LC_ALL="en_US.UTF-8" && export LC_CTYPE="en_US.UTF-8"
$ sudo dpkg-reconfigure locales

# in case
$ sudo apt install wireshark xterm

# default creds
wifi/wifi

# in case
$ sudo systemctl stop network-manager
$ sudo service network-manager stop

# in case
$ sudo nano ~/.profile
PATH="$HOME/mininet-wifi/bin:$PATH"
$ sudo mn --wifi
$ sudo mn --wifi --ssid=new_ssid --mode=g --channel=1
$ sudo mn --wifi --position --wmediumd --plot
$ sudo mn --wifi --test pingall --topo single,5
$ sudo mn --wifi --test pingall --topo linear,5

$ sudo wireshark &

Please shut down the controller which is running on port 6653:
Active Internet connections (servers and established)
tcp        0      0 0.0.0.0:6653            0.0.0.0:*               LISTEN      1185/ovs-testcontro
tcp        0      0 127.0.0.1:47924         127.0.0.1:6653          TIME_WAIT   -         Would you like to shut down the controller right now? (y/n)

mininet-wifi> sh ifconfig hwsim0 up
mininet-wifi> sta 1 ping sta2