title: S2E4 - linux cli network tools cheat sheet |
author: Nicholas Morrison nick@nanocat.net |
draft: false |
tags: [network, workshop, arista] |
categories: [workshop] |
noindex: true |
net-tools
net-tools
is an old suite of network-related tools
iproute2
iproute2
superceded net-tools
, and
includes more modern utilities
ip
toolip
manages many many aspects of linux networkingip route
= manage your routing table (try
ip -c route
)ip netns
= manage network namespaces (try
ip netns exec clab-www-pc1 ip -c route
)ip address
= manage ip addresses (don’t forget
-c
for colour - ip -c address
)ip neigh
= manage ARP cache. (Other hosts in the same
layer 2 network are your neigh
bours.)ip -c neigh
= with colour!ss
toolss
gives us information about SOCKETSss -t -l
= listening TCP socketsss -t -a
= listening and non-listening TCP socketsss -u -l
= listening UDP socketsss -t | grep ssh
= show active ssh connections