Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #172000 > unrolled thread
| Started by | Andre Majorel <aym-naibed@teaser.fr> |
|---|---|
| First post | 2016-09-10 19:40 +0200 |
| Last post | 2016-09-10 21:30 +0200 |
| Articles | 4 — 4 participants |
Back to article view | Back to linux.debian.user
Tool that says whether IP addresses are routable or reserved Andre Majorel <aym-naibed@teaser.fr> - 2016-09-10 19:40 +0200
Re: Tool that says whether IP addresses are routable or reserved <tomas@tuxteam.de> - 2016-09-10 20:00 +0200
Re: Tool that says whether IP addresses are routable or reserved Joe <joe@jretrading.com> - 2016-09-10 20:30 +0200
Re: Tool that says whether IP addresses are routable or reserved Henrique de Moraes Holschuh <hmh@debian.org> - 2016-09-10 21:30 +0200
| From | Andre Majorel <aym-naibed@teaser.fr> |
|---|---|
| Date | 2016-09-10 19:40 +0200 |
| Subject | Tool that says whether IP addresses are routable or reserved |
| Message-ID | <sfUpX-39r-13@gated-at.bofh.it> |
Is there a tool which would take IPv4 addresses on the command line and say whether or not they are regular and routable ? host(1) is not very useful for that as it doesn't seem to distinguish between an address which happens not to used by a domain name at this time (eg 9.9.9.9) and one which could never be (eg 192.168.0.1). Thanks in advance. -- André Majorel <http://www.teaser.fr/~amajorel/> alias reportbug='cat >/dev/null'
[toc] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2016-09-10 20:00 +0200 |
| Message-ID | <sfUJk-3g0-19@gated-at.bofh.it> |
| In reply to | #172000 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, Sep 10, 2016 at 07:36:11PM +0200, Andre Majorel wrote:
> Is there a tool which would take IPv4 addresses on the command
> line and say whether or not they are regular and routable ?
>
> host(1) is not very useful for that as it doesn't seem to
> distinguish between an address which happens not to used by a
> domain name at this time (eg 9.9.9.9) and one which could never
> be (eg 192.168.0.1).
- From your question I'm not sure this is the answer you are looking
for, but I'll give it a try. According to RFC 1918 [1], the following
address ranges are reserved for "private use":
10.0.0.0 - 10.255.255.255 (10/8 prefix)
172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
Note that this is for IPV4, IPV6 is probably a bit more complex :-)
[1] http://www.faqs.org/rfcs/rfc1918.html
regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlfUSdoACgkQBcgs9XrR2kYFNQCeKDc9DKiVSrHPQluEAP2Fmu6z
A1MAn01j6i/tgdCEvTLr1b6cGuoC82IF
=RkcO
-----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Joe <joe@jretrading.com> |
|---|---|
| Date | 2016-09-10 20:30 +0200 |
| Message-ID | <sfVcl-3Jf-3@gated-at.bofh.it> |
| In reply to | #172003 |
On Sat, 10 Sep 2016 19:58:50 +0200 <tomas@tuxteam.de> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sat, Sep 10, 2016 at 07:36:11PM +0200, Andre Majorel wrote: > > Is there a tool which would take IPv4 addresses on the command > > line and say whether or not they are regular and routable ? > > > > host(1) is not very useful for that as it doesn't seem to > > distinguish between an address which happens not to used by a > > domain name at this time (eg 9.9.9.9) and one which could never > > be (eg 192.168.0.1). > > > - From your question I'm not sure this is the answer you are looking > for, but I'll give it a try. According to RFC 1918 [1], the following > address ranges are reserved for "private use": > > 10.0.0.0 - 10.255.255.255 (10/8 prefix) > 172.16.0.0 - 172.31.255.255 (172.16/12 prefix) > 192.168.0.0 - 192.168.255.255 (192.168/16 prefix) > > Note that this is for IPV4, IPV6 is probably a bit more complex :-) > There are a lot more reserved for other unspecified reasons. The list of more than 165,000 address blocks here http://software77.net/geo-ip/ contains quite a few listed 'reserved'. The list is frequently updated. -- Joe
[toc] | [prev] | [next] | [standalone]
| From | Henrique de Moraes Holschuh <hmh@debian.org> |
|---|---|
| Date | 2016-09-10 21:30 +0200 |
| Message-ID | <sfW8p-4hN-13@gated-at.bofh.it> |
| In reply to | #172006 |
On Sat, 10 Sep 2016, Joe wrote: > > - From your question I'm not sure this is the answer you are looking > > for, but I'll give it a try. According to RFC 1918 [1], the following > > address ranges are reserved for "private use": > > > > 10.0.0.0 - 10.255.255.255 (10/8 prefix) > > 172.16.0.0 - 172.31.255.255 (172.16/12 prefix) > > 192.168.0.0 - 192.168.255.255 (192.168/16 prefix) > > > > Note that this is for IPV4, IPV6 is probably a bit more complex :-) > > > There are a lot more reserved for other unspecified reasons. The list > of more than 165,000 address blocks here http://software77.net/geo-ip/ > contains quite a few listed 'reserved'. The list is frequently updated. https://tools.ietf.org/html/rfc6890 http://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xhtml These are canonical and authoritative. IPv6 has them, too: http://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml http://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml There are also the registries for multicast space, etc. -- Henrique Holschuh
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web