go-iproute2
go-iproute2 copied to clipboard
Some net tools of iproute2 implement with Go, such as ip link, ip neigh, ip addr, bridge, nstat. Apache License 2.0
go-iproute2
Some net tools of iproute2 implement with Go.
Completions
ip
- ip neigh list
- ip link list
- ip addr list
- ip rourte list
bridge
- bridge monitor fdb
- bridge fdb list
ss
- ss -s: print summary of socket stat
- ss -l: list all udp and tcp listening sockets
- ss -t: list all tcp connections
- ss -lt: list all tcp listeners
- ss -u: list all udp sockets, excluding the listening ones
- ss -lu: list all udp listening sockets
All the above listings support IPv4 and IPv6 version.
TO-DO
- [ ] ip
- [ ] bridge
- [x] ss (basically complete)
Maybe more tools, like dcb, devlink, nstat, tc, will be implemented in some day.