[ CS: NETWORKING ]

L1 Physical
L2 Data Link
L3 Network
L4 Transport
L5 Session
L6 Presentation
L7 Application
# Purpose: Network interface inspection
# Description: Displays IP addresses and properties for the eth0 interface
user@linux:~$ ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:8d:c3:25 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.103/24 brd 192.168.1.255 scope global dynamic eth0
    inet6 fe80::a00:27ff:fe8d:c325/64 scope link
# Purpose: Service and port auditing
# Description: Lists all listening TCP and UDP ports with process names
user@linux:~$ ss -tunlp
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 0.0.0.0:68 0.0.0.0:*
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
tcp LISTEN 0 100 127.0.0.1:25 0.0.0.0:*
# Purpose: Domain name resolution
# Description: Quickly checks the IP address associated with a domain
user@linux:~$ dig +short google.com
142.250.185.78
user@linux:~$ # Tip: Use 'ip -c addr' for colored output!
< BACK_TO_HOME