i would like to know why this subnet is wrong, iam using an online IP calculator
198.32.130.192/25
gives me:
Code:
Address: 198.32.130.192 11000110.00100000.10000010.1 1000000
Netmask: 255.255.255.128 = 25 11111111.11111111.11111111.1 0000000
Wildcard: 0.0.0.127 00000000.00000000.00000000.0 1111111
=>
Network: 198.32.130.128/25 11000110.00100000.10000010.1 0000000 (Class C)
Broadcast: 198.32.130.255 11000110.00100000.10000010.1 1111111
HostMin: 198.32.130.129 11000110.00100000.10000010.1 0000001
HostMax: 198.32.130.254 11000110.00100000.10000010.1 1111110
Hosts/Net: 126
which is wrong, the network shows as 198.32.130.128/25
128???, it is supposed to show as 192/25.
when i run this 198.32.130.192/26 , or /27 or /28 or /29 or /30
it shows ok:
Code:
Address: 198.32.130.192 11000110.00100000.10000010.11 000000
Netmask: 255.255.255.192 = 26 11111111.11111111.11111111.11 000000
Wildcard: 0.0.0.63 00000000.00000000.00000000.00 111111
=>
Network: 198.32.130.192/26 11000110.00100000.10000010.11 000000 (Class C)
Broadcast: 198.32.130.255 11000110.00100000.10000010.11 111111
HostMin: 198.32.130.193 11000110.00100000.10000010.11 000001
HostMax: 198.32.130.254 11000110.00100000.10000010.11 111110
Hosts/Net: 62
online ip calc:
http://jodies.de/ipcalc?host=198.32....ask1=26&mask2=
for ubuntu or fedora:
sudo apt-get install ipcalc
su -c 'yum install ipcalc'