gonett is a Go version for library mininet
make buildThis produces bin/gonett.
All commands must run as root (or via sudo).
Creates h1, h2 hosts and s1 switch, wires them, assigns IPs, and brings links up.
sudo ./bin/gonett buildsudo ./bin/gonett lssudo ./bin/gonett exec h1 ping -c 3 10.0.0.2sudo ./bin/gonett attach h1sudo ./bin/gonett rm h1Deletes all managed namespaces, bridges, veths.
sudo ./bin/gonett cleanup- Requires Linux with network namespace support.
- Uses
vishvananda/netlinkandnetns; namespace operations are thread-bound, so internal code pins goroutines to OS threads where necessary.