ehartman |
04-17-2019 02:41 PM |
Quote:
Originally Posted by chrisguk
(Post 5986007)
I thought I was loosing my mind but I setup an interface with the IP 10.10.0.254 and a netmask of 16 bit. Once I brought the interface up and ran ifconfig it stated that the address was 8 bit 255.0.0.0
Anyone know why?
|
You must have specified the netmask wrong because 255.0.0.0 is neither an 8- nor a 16-bit netmask, it is the default 24-bit netmask that belongs to a 10.*.*.* private network.
The number of 0-bits from the RIGHT is the netmask, so an 8-bit mask gives 255.255.255.0 and a 16-bit one would result in 255.255.0.0
I.e, in my private network I use only a 3-bit netmask, so ifconfig returns:
netmask 255.255.255.248
as that private net contains less than 7 systems anyway.
|