Episode 1.5
NETWORKS & LINUX JOURNEY
Class 12 (10+2) • Unit 1: Network Operating System
💡 Direct Stream: You can also watch directly on YouTube or via local server:
📺 Watch on YouTube.com
Episode code: 1.5
✍️ Episode 1.5 Topic Notes
📌 A. Network Interface Inspection: `ifconfig` & `ip`
ifconfig: Displays active network interfaces, IP addresses, netmasks, broadcast addresses, and hardware MAC addresses.ifconfig eth0 down/ifconfig eth0 up: Disables or enables a physical network card.ifconfig eth0 192.168.1.50 netmask 255.255.255.0: Assigns a static IP and subnet mask.ip addr(Modern alternative): Part of theiproute2package; displays IP addresses (ip addr show) and link status (ip link show).
📌 B. Connectivity & Latency Testing: `ping`
- Sends ICMP Echo Request packets to a target host and listens for ICMP Echo Reply packets.
- Measures Round-Trip Time (RTT) in milliseconds and reports packet loss percentage:
📌 C. Path Tracing: `traceroute` & `tracepath`
- Traces the exact hop-by-hop route that IP packets traverse from source to destination across intermediate routers.
- Works by incrementing the Time to Live (TTL) value in the IP header starting at 1. Each consecutive router decrements TTL to 0, discards the packet, and returns an ICMP Time Exceeded packet, revealing the router's IP address.
📌 D. Socket & Port Auditing: `netstat` & `ss`
netstat(Network Statistics): Displays active network connections, routing tables, and listening daemon ports.netstat -tuln: Lists all listening (-l) TCP (-t) and UDP (-u) ports numerically (-n).ss(Socket Statistics): Modern, ultra-fast replacement fornetstatreading socket data directly from kernel space.
📌 E. Domain Name Resolution: `nslookup` & `dig`
nslookup domain.com: Queries DNS servers to resolve hostnames to IP addresses or vice versa.dig domain.com(Domain Information Groper): Provides detailed DNS record lookups (A, AAAA, MX, NS records).
📌 F. Kernel Routing Table: `route` & `ip route`
- Displays the local kernel routing table, showing destination networks, gateway IPs, netmasks, and the default gateway interface.