Lab:05 CIDR and IP Subnetting with MXToolbox - TanveeKhanDB/OCI GitHub Wiki
CIDR
CIDR (Classless Inter-Domain Routing) is a modern way of assigning IP addresses using flexible network prefixes instead of fixed classes. CIDR allows any size of network, not restricted to fixed blocks.
Formate:IP_Address / Prefix
Example: 192.168.1.0/24 /24 โ first 24 bits = network ID Remaining bits โ hosts ID
Calculation:
Block=Net ID + Host ID
Hosts = 2^(32 - prefix/Net )
For 192.168.1.0/24 โ Hosts = 2^(32โ24) = 256 IPs
For 10.0.0.0/26 โ Hosts = 2^(32โ26) = 64 IPs
Additional Info:
Smaller number after / โ bigger network Bigger number after / โ smaller network
๐ Example:
/16 โ large network
/24 โ medium
/30 โ very small
IP Subnetting
IP Subnetting is the process of dividing a large network into smaller, manageable networks (subnets).
Below are the benifits:
- Improve security
- Better performance
- Easy management
- Efficient IP usage
Step 1: Start with a Network
192.168.1.0/24 Total IPs = 256 Usable IPs = 254
Step 2: Need 2 Subnets
We borrow 1 bit from host part:
192.168.1.0/25 192.168.1.128/25
Step 3: Result
Example: 02
Example: 03
๐งพ Final One-Line Summary
๐ CIDR defines IP range
Subnetting splits that range into smaller networks
MXToolbox helps you check and validate them
MXToolbox
MXToolbox is a web-based toolset used by network engineers and cloud architects to:
Check DNS records Analyze IP addresses Troubleshoot email (MX records) Detect blacklisting issues Test network connectivity
Usages: 1. DNS Troubleshooting Check A, MX, TXT, SPF records Verify domain configuration
๐ Example:
Your website not loading โ check DNS mapping
๐ง 2. Email (MX Record) Testing Verifies mail server configuration Helps fix email delivery issues
๐ Example:
Emails going to spam โ check SPF/DKIM
๐ซ 3. Blacklist Monitoring Checks if your server IP is blacklisted
๐ Important for:
Email servers Public-facing apps
๐ 4. IP & Network Analysis Shows: IP details Reverse DNS Host information โก 5. Connectivity Tests Ping SMTP test Port checks
๐ Helps debug:
Server not reachable Port blocked
๐ In short: It helps you quickly diagnose network & DNS problems from a single place