~/netref / Command Cheatsheet
##

Command Cheatsheet

The commands you reach for daily — on a Cisco switch/router and on a Linux host.

cisco ios
enable
configure terminal
show ip interface brief
show running-config
show vlan brief
show ip route
show mac address-table
show cdp neighbors
interface gi0/1
 no shutdown
switchport mode access
copy running-config startup-config
linux networking
ip addr            # interfaces & IPs
ip route           # routing table
ss -tulpn          # listening sockets
ping <host>
traceroute <host>
dig <name>
tcpdump -i eth0
nmap -sV <host>
cat /etc/resolv.conf
nmcli
ethtool eth0