Basic Linux Commands
These are the commands participants will use repeatedly across Labs 1 to 4. Most are standard Linux shell commands; a few are workshop-specific commands inside the Mininet CLI or ONOS CLI.
Terminal basics
- cd ~/labs/labX — move into the lab folder before running commands.
- exit or Ctrl+D — leave Mininet cleanly or close the current shell.
- sudo — run Mininet, OVS, and some network commands with administrator privileges.
- bash script.sh — run a shell script provided in an exercise.
- python3 file.py — run the Python topology, verifier, or controller scripts.
Running and cleaning the labs
- sudo mn -c — clean up leftover Mininet state before restarting a lab.
- ssh -p 8101 -o HostKeyAlgorithms=+ssh-rsa onos@localhost — open the ONOS CLI.
- ./script.sh — run a lab helper script from the current folder, such as the HTTP server or IDS launcher.
- jupyter notebook — open the Lab 2 REST walkthrough and exercise notebooks.
- tail -F /tmp/file.log — follow a live log during the Lab 4 slice exercises.
- sudo docker restart onos — restart ONOS if the controller gets stuck.
Network inspection and testing
- ip addr show — inspect host interfaces and addresses.
- ip route add ... and ip route del ... — add or remove SRv6 routes in Lab 3.
- ip -6 addr add ... — assign IPv6 SRv6 SIDs to interfaces.
- ping -c N host and ping6 -c N ipv6-address — test IPv4 and IPv6 reachability.
- curl http://... — send HTTP traffic through the service chain.
- sysctl -w key=value — enable IPv6 forwarding and SRv6 support on hosts.
- tshark -i iface ... — capture and inspect SRv6 packets on an interface.
Workshop-specific CLI commands
- mininet> nodes, net, dump — inspect the Mininet topology.
- mininet> pingall, iperf h1 h2, h1 ping -c 3 h2, py h1.IP() — test connectivity and inspect Mininet host state.
- mininet> h1 ip ... or h1 curl ... — run a Linux command inside a specific Mininet host.
- onos> apps -s -a, devices, links, hosts, flows — inspect ONOS state.
- onos> app activate org.onosproject.<app> — enable required ONOS apps.
- onos> cfg get org.onosproject.fwd.ReactiveForwarding — verify that IPv6 forwarding is enabled.
- sudo ovs-ofctl dump-flows s1 -O OpenFlow13 — inspect switch flow rules.
- sudo ovs-ofctl add-flow s1 ..., del-flows s1, show s1 — manage OVS rules directly in Lab 1.