IP
TCP/IP
- Wikipedia:IP addressWikipediaIP address
- Wikipedia:Reserved IP addressesWikipediaReserved IP addresses
- ip.taobao.com
- AS13335
- RFC 3330RFCRFC 3330IETF Request for Comments standard document.RFC
# 获取 IP
curl checkip.amazonaws.com
curl ipinfo.io/ip
curl ifconfig.co
curl ipecho.net/plain
curl icanhazip.com
curl ipv4.icanhazip.com
curl 'https://vv.video.qq.com/checktime?otype=json&callback=onCheckTime'
# 使用 DNS 的方式获取
dig +short myip.opendns.com @resolver1.opendns.com
# Service
curl https://www.cloudflare.com/ips-v4
curl https://www.cloudflare.com/ips-v6
curl https://ip-ranges.amazonaws.com/ip-ranges.json- 240.0.0.0/4
- class E
- 没有被使用
- 特殊 IP 段
- www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
- tools.ietf.org/html/draft-chen-ati-adaptive-ipv4-address-space-03
- Reclaiming IPv4 Class E's 240.0.0.0/4 HN #40491038Hacker NewsHacker News #40491038Hacker News
- 169.254.169.254
- 通常作为 metadata
- AWS, GCP, Azure
- 系统会通过这个 IP 地址向云服务查询当前实例的信息(例如实例ID、区域、配置信息等)。
- AWS 169.254.169.254/latest/meta-data
- Azure
http://169.254.169.254/metadata/instance?api-version=2021-02-01- Header
Metadata: true
- Header
- GCP metadata.google.internal
- Header
Metadata-Flavor: Google
- Header
- OpenStack 169.254.169.254/openstack
Private
| CIDR | Start | End | Count | Class | | --------------- | ----------- | --------------- | -------- | ----- | ---------- | | 0.0.0.0/8 | | 127.0.0.0/8 | | 10.0.0.0/8 | 10.0.0.0 | 10.255.255.255 | 16777216 | A | | 100.64.0.0/10 | 100.64.0.0 | 100.127.255.255 | | 169.254.0.0/16 | | 172.16.0.0/12 | 172.16.0.0 | 172.31.255.255 | 1048576 | B | | 192.0.0.0/24 | | 192.0.2.0/24 | | | | | TEST-NET-1 | | 192.168.0.0/16 | 192.168.0.0 | 192.168.255.255 | 65536 | B | | 192.88.99.0/24 | | 198.18.0.0/15 | | 198.51.100.0/24 | | | | | TEST-NET-2 | | 203.0.113.0/24 | | | | | TEST-NET-3 | | 224.0.0.0/3 | | 224.0.0.0/4 | | ::1/128 | | fc00::/7 | | fe80::/10 |
127.0.0.0/8,10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16- rfc5737RFCRFC 5737IETF Request for Comments standard document.RFC IPv4 Address Blocks Reserved for Documentation
- TEST-NET
- 文档建议 Block
Welknown Private
| CIDR | for |
|---|---|
| 10.42.0.0/16 | k3s cluster-cidr |
| 10.43.0.0/16 | k3s service-cidr |
| 10.244.0.0/16 | k0s cluster-cidr |
| 10.96.0.0/12 | k0s service-cidr |
| 10.96.0.10 | k0s dns |
| 10.10.0.0 | openvpn |
| 100.64.0.0/10 | tailscale |
| 100.100.100.100 | tailscale dns |
Tags
- MetaCubeX/meta-rules-datGitHubMetaCubeX/meta-rules-dat
- Loyalsoldier/v2ray-rules-datGitHubLoyalsoldier/v2ray-rules-dat
- Loyalsoldier/domain-list-customGitHubLoyalsoldier/domain-list-custom
- v2fly/domain-list-communityGitHubv2fly/domain-list-community
- mmdb - MaxMind DB
- maxmind.github.io/MaxMind-DB
- runk/node-maxmindGitHubrunk/node-maxmind
- NodeJS
- runk/mmdb-libGitHubrunk/mmdb-lib
- MIT, Browser
- geoip2
FAQ
IP-address ending with zero?
- 现在来说是没问题的, 20 年前有隐性的子网约定, .0 代表网络, .255 代表广播, 许多硬件设备和软件规则有基于这样的假设, 现在都是以 CIDR 为标准, 因此 .0 和 .255 都是有效的地址
- IP-address ending with zero?
Tools
apnic
DanielPLSH/apnicGitHubDanielPLSH/apnic 根据 apnic 发布的最新 IP 地址,分析电信、联通、移动等 IP 地址段
version|registry|serial|records|startdate|enddate|UTCoffset ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest
关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub11 条
- aws/amazon-ec2-metadata-mockgithub.com/aws/amazon-ec2-metadata-mock
- DanielPLSH/apnicgithub.com/DanielPLSH/apnic
- Loyalsoldier/domain-list-customgithub.com/Loyalsoldier/domain-list-custom
- Loyalsoldier/v2ray-rules-datgithub.com/Loyalsoldier/v2ray-rules-dat
- metacubex/geogithub.com/metacubex/geo
- MetaCubeX/meta-rules-datgithub.com/MetaCubeX/meta-rules-dat
- MetaCubeX/meta-rules-dat/.github/workflows/run.ymlgithub.com/MetaCubeX/meta-rules-dat/blob/master/.github/workflows/run.yml
- runk/mmdb-libgithub.com/runk/mmdb-lib
- runk/node-maxmindgithub.com/runk/node-maxmind
- v2fly/domain-list-communitygithub.com/v2fly/domain-list-community
- v2fly/v2ray-core/app/router/config.protogithub.com/v2fly/v2ray-core/blob/master/app/router/config.proto
Wikipedia2 条
- IP addressWikipedia:IP address
- Reserved IP addressesWikipedia:Reserved IP addresses
Hacker News1 条
- Hacker News #40491038HN #40491038
标准文档2 条
其他外链18 条
- 169.254.169.254/latest/meta-data169.254.169.254/latest/meta-data
- 169.254.169.254/openstack169.254.169.254/openstack
- bgpview.io/asn/13335bgpview.io/asn/13335
- dev.maxmind.com/geoip/geoip2/geolite2dev.maxmind.com/geoip/geoip2/geolite2
- developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/firewalldevelopers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/firewall
- dnsdaquan.comdnsdaquan.com/
- docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.htmldocs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
- ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latestftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest
- icplishi.com/jiashule.comicplishi.com/jiashule.com
- ip.taobao.comip.taobao.com/
- ipchaxun.comipchaxun.com/
- ipjisuanqi.comipjisuanqi.com/
- maxmind.github.io/MaxMind-DBmaxmind.github.io/MaxMind-DB
- metadata.google.internalmetadata.google.internal/
- stackoverflow.com/questions/14915188stackoverflow.com/questions/14915188
- tools.ietf.org/html/draft-chen-ati-adaptive-ipv4-address-space-03tools.ietf.org/html/draft-chen-ati-adaptive-ipv4-address-space-03
- www.apnic.net/about-apnic/corporate-documents/documents/resource-guidelines/rir-statistics-exchange-formatwww.apnic.net/about-apnic/corporate-documents/documents/resource-guidelines/rir-statistics-exchange-format
- www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtmlwww.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml