IP Addressing, Subnetting, and basic networking commands

 

1. IP Addressing 🏷️

  • Definition: An IP (Internet Protocol) address is a unique number assigned to each device on a network to identify it.

  • Format: IPv4 is most common → 4 numbers separated by dots (e.g., 192.168.1.10)

  • IPv4 Classes:

    • Class A: 1.0.0.0 – 126.255.255.255 → Large networks 🌍

    • Class B: 128.0.0.0 – 191.255.255.255 → Medium networks 🏢

    • Class C: 192.0.0.0 – 223.255.255.255 → Small networks 🏠

Types of IP Address:

  • Private IP: Used inside LAN (e.g., 192.168.x.x) 🏠

  • Public IP: Used on the internet 🌐


2. Subnetting ✂️🖧

  • Definition: Subnetting divides a large network into smaller, manageable networks called subnets.

  • Purpose:

    • Efficient IP address usage 💡

    • Better network performance ⚡

    • Enhanced security 🔐

Example:

  • Network: 192.168.1.0/24 → 256 IP addresses (192.168.1.0 to 192.168.1.255)

  • Subnet into 2 smaller networks:

    • 192.168.1.0/25 → 128 IPs

    • 192.168.1.128/25 → 128 IPs

Subnet Mask: Determines which part of IP is network and which is host

  • /24255.255.255.0

  • /25255.255.255.128


3. Basic Networking Commands 🖥️💻

A. Windows Commands

CommandUseExample
ipconfigShows IP address & network infoipconfig
pingTests connectivity to another deviceping 8.8.8.8
tracertShows path to a device/websitetracert google.com
nslookupChecks DNS resolutionnslookup example.com
netstatShows active connections & portsnetstat -an

B. Linux Commands 🐧

CommandUseExample
ifconfig or ip addrShow network interfacesifconfig
pingTest connectivityping 8.8.8.8
tracerouteShow path to hosttraceroute google.com
digDNS querydig example.com
netstatActive connectionsnetstat -tuln

4. Practical Tips 💡

  • Use ping to check if another device is reachable 🏓

  • Use ipconfig/ifconfig to verify your device IP before connecting to a network

  • Subnetting helps avoid IP conflicts in LAN

  • Label network devices and IP ranges for easier management 🏷️


💡 Quick Summary:

  • IP Address: Unique device identifier

  • Subnetting: Divide networks for efficiency and security

  • Commands: Ping, tracert, ipconfig/ifconfig, netstat, nslookup/dig → troubleshoot and manage networks

Comments

Popular posts from this blog

PG DCA Syllabus

Internet configuration and troubleshooting