Operating System - HP-UX
1847986 Members
7518 Online
104022 Solutions
New Discussion

Re: When I config netmask for a lan interface to 255.255.255.224, ifconfig report error.

 
SOLVED
Go to solution
稀里哗啦
Advisor

When I config netmask for a lan interface to 255.255.255.224, ifconfig report error.

If I config netmask 255.255.255.0, every thing is OK.
My OS is hpux 11.00.
Pls help me.
3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor
Solution

Re: When I config netmask for a lan interface to 255.255.255.224, ifconfig report error.

Hi,

Ask your system not to check for the validity of the subnetmask using "ndd".

ndd -get /dev/ip ip_check_subnet_addr 0

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Oleg Zieaev_1
Regular Advisor

Re: When I config netmask for a lan interface to 255.255.255.224, ifconfig report error.

Your IP is most likely in the subnet0, which you can not use by defaul as it reserved so route to your network is possible. Use IP address after 32 (subnet1 ip=32: client IPs :33-62, broadcast 63).
Or switch the IP subnet check mentioned above to 0, so you can use subnet0.
(note: should be set, not get - just a typo).

Hope this helps,
0leg
Professionals will prevail ...
Steven E. Protter
Exalted Contributor

Re: When I config netmask for a lan interface to 255.255.255.224, ifconfig report error.

What IP address are you trying to use?

The subnet mask .224 limits you to 30 possible IP addresses.

The lowest is reserved as gateway, the highest is reserved as broadcast address.

You can't use that mask for all IP addresses.

The corrected check command above should help you figure it out.

Your network administrator should be able to help you out. He or she is probably the one that told you to use the subnet mask in the first place.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com