惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
B
Blog
博客园 - Franky
I
InfoQ
A
About on SuperTechFans
博客园_首页
L
LangChain Blog
量子位
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
美团技术团队
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
雷峰网
雷峰网
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
G
Google Developers Blog
Last Week in AI
Last Week in AI

Ittavern.com

Wimage - Hosting Open-Source Image Uploader with Podman and external S3 Storage Switching from Hugo to picopaper Encryption using SSH Keys with age in Linux ETag in nginx - Simple Resource Caching Sending nginx Logs to Loki with Grafana Alloy How to: Cisco ISE backup to SFTP repository with public key authentication Deploying ISSO Commenting System for Static Content using Docker Generate a Vanity v3 Hidden Service Onion Address with mkp224o ssh-audit Primer - Audit your SSH Server mtr - More Detailed Traceroute - Network Troubleshooting My Personal Backup Strategy - August 2024 iperf3 - User Authentication with Password and RSA Public Keypair Adding a trash can to Linux with trash-cli Bandwidth Measurement using netcat on Linux Getting started with rsync - Comprehensive Guide Cron Jobs on Linux - Comprehensive Guide with Examples SSH Server Hardening Guide v2 Port Knocking with knockd and Linux - Server Hardening Getting started with rclone - Data transmission Getting started with dig - DNS troubleshooting Getting started with Fail2Ban on Linux Getting started with netcat on Linux with examples URL explained - The Fundamentals Troubleshooting Asking The Right Questions Create tmux layouts using bash scripts Getting started with tcpdump - Ittavern.com Curl on Linux - Reference Guide Getting started with nmap scripts My Offsite Backup - March 2023 Getting started with iperf3 - Network Troubleshooting
Dummy IP & MAC Addresses for Documentation & Sanitization
2024-09-02 · via Ittavern.com

In this article, we are going to look at a topic that, in my experience, is not well known. There are IP and MAC ranges that are reserved for documentation and can't be routed. There are many use cases for these ranges.

Use Cases

There are several reasons why you don't want to use real or accessible host addresses. Perhaps the biggest reasons are for Security & Privacy: you want to avoid sharing sensitive information or running scripts against 'real' host addresses.

More examples:
Documentation - in scripts, manuals, articles, ...
Placeholder - in firewall policies, scripts, templates, ...
Mock-up - in product demonstrations, presentations, flyers, ...
Sanitize / Anonymize Data - logs, packet captures, configuration files, ...

There are more, but you know where I am going with this.

Important: Just to mention it again, please do not use the following address for anything else to avoid problems.

IP Addresses

IPv4 has the following IP address ranges:

TEST-NET-1 - 192.0.2.0/24 (192.0.2.0–192.0.2.255)

TEST-NET-2 - 198.51.100.0/24 (198.51.100.0–198.51.100.255)

TEST-NET-3 - 203.0.113.0/24 (203.0.113.0–203.0.113.255)

Referenced in the RFC5737.


For Any-Source Multicast (ASM):

MCAST-TEST-NET - 233.252.0.0/24 (233.252.0.0–233.252.0.255)

Noted, that it is part of the normal multicast space and referenced in RFC6676.


You have two ranges in IPv6:

  • 2001:db8::/32
    • Start: 2001:db8::
    • End: 2001:db8:ffff:ffff:ffff:ffff:ffff:ffff
    • Referenced in RFC3849
  • 3fff::/20
    • Start: 3fff::
    • End: 3fff:fff:ffff:ffff:ffff:ffff:ffff:ffff
    • Referenced in RFC9637

Ethernet MAC Addresses

For Ethernet you have the following ranges for documentation purposes:

Unicast EUI-48:

00-00-5E-00-53-00 - 00-00-5E-00-53-FF

Multicast EUI-48:

01-00-5E-90-10-00 - 01-00-5E-90-10-FF

Both ranges are referenced in RFC7042.


I have rarely used the EUI-64 format, so I will just share the RFC7042 reference link rather than plastering half the article with it.

Conclusion

I hope you found this article helpful and apply what you have learned at some point.