John Smith <
12...@whatismyemailaddress.xyz> wrote:
>11.12.22/19
Don't do this. It's ambiguous. iptables will expand 11.12.22/19 to
11.12.22.0/19 and then apply the netmask, yielding
11.12.0.0/19:
|[9/6157]mh@drop:~ $ ipcalc
11.12.22.0/19
|Address: 11.12.22.0 00001011.00001100.000 10110.00000000
|Netmask: 255.255.224.0 = 19 11111111.11111111.111 00000.00000000
|Wildcard: 0.0.31.255 00000000.00000000.000 11111.11111111
|=>
|Network:
11.12.0.0/19 00001011.00001100.000 00000.00000000
|HostMin: 11.12.0.1 00001011.00001100.000 00000.00000001
|HostMax: 11.12.31.254 00001011.00001100.000 11111.11111110
|Broadcast: 11.12.31.255 00001011.00001100.000 11111.11111111
|Hosts/Net: 8190 Class A
|
|[10/6158]mh@drop:~ $
Other tools will expand 11.12.22 to
11.12.0.22:
|[10/6158]mh@drop:~ $ ping 11.12.22
|PING 11.12.22 (11.12.0.22) 56(84) bytes of data.
And also, please don't use real-life world-wide routable IP addresses
outside the link local, site local and documentation ranges or
examples and questions; the IP address you have used belongs to the
DoD's network
11.0.0.0/8.
in IPv6, there is defined behavior, you can write :: to insert as many
zeroes as needed to yield a full 128 bit address:
|[2/6160]mh@drop:~ $ sipcalc fec0:0:0:ffff::1
|-[ipv6 : fec0:0:0:ffff::1] - 0
|
|[IPV6 INFO]
|Expanded Address - fec0:0000:0000:ffff:0000:0000:0000:0001
|Compressed address - fec0:0:0:ffff::1
|Subnet prefix (masked) - fec0:0:0:ffff:0:0:0:1/128
|Address ID (masked) - 0:0:0:0:0:0:0:0/128
|Prefix address - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
|Prefix length - 128
|Address type - Site-Local Unicast Addresses
|Network range - fec0:0000:0000:ffff:0000:0000:0000:0001 -
| fec0:0000:0000:ffff:0000:0000:0000:0001
|
|-
|[3/6161]mh@drop:~ $
Greetings
Marc
--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber | " Questions are the | Mailadresse im Header
Mannheim, Germany | Beginning of Wisdom " |
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834