Usefull linux commands

Usefull linux commands

Networking

Add ip to local loopback:
route add -host 127.0.0.2 dev lo
ifconfig lo:0 127.0.0.2 netmask 255.0.0.0 up
Remove ip from local loopback:
route del -host 127.0.0.2

Benchmarking

Test disk I/O
ioping . -c 10

Network troubleshouting

Show incoming ipv4 pings
tcpdump -nni eth0 -e icmp[icmptype] == 8
Show ipv6 incoming pings