Calculate Network Number in /etc/netmasks file.

Hi All,

I have an issue with calculating the network number that needs to be put in /etc/netmasks file in my Sol-9 server.

The IP of my server in 10.164.114.135
Default Gateway - 10.164.114.130
Netmask - 255.255.255.240

If I set "10.164.114.130 255.255.255.240" in netmask file, after reboot the server is not setting the netmask properly. It is setting the netmask as �ff000000� instead of �fffffff0�.
If I set "10.164.114.0 255.255.255.240" in netmask file, after reboot the server is again not setting the netmask properly . It is setting the netmask as �ff000000� instead of �fffffff0�.
If I set "10.164.114.1 255.255.255.240" in netmask file, after reboot the server is again not setting the netmask properly . It is setting the netmask as �ff000000� instead of �fffffff0�.

I don't know what exactly the problem is. I am able to manually set the netmask and get the server in network properly. Please let me know what exactly the issue is. How is the network-number to be put in netmasks file calculated?

Thanks
HG

Wouldn't the network be 10.164.114.128 with a /28 consisting of 14 hosts(129-142)?

I am not sure as the Network IP details are provided to me by my network team. I am a novice and am yet to learn how this is calculated.

I will try putting "10.164.114.128 255.255.255.240" in /etc/netmasks file and will let you know the result.

Thanks
HG