- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- I want an IP address with subnet mask- but problem...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 08:12 AM
тАО03-03-2003 08:12 AM
I want IP address 192.168.0.27
SM 255.255.255.224
this means broadcast address is: 192.168.0.31
What's wrong?
root on venus:/>ifconfig lan0:1 192.168.0.27 netmask 255.255.255.224 broadcast 192.168.0.31
ifconfig: ioctl (SIOCSIFNETMASK): bad value
root on venus:/>ifconfig lan0:1 192.168.0.30 netmask 255.255.255.224 broadcast 192.168.0.31
ifconfig: ioctl (SIOCSIFNETMASK): bad value
root on venus:/>ifconfig lan0:1 192.168.0.225 netmask 255.255.255.224 broadcast 192.168.0.255
ifconfig: ioctl (SIOCSIFNETMASK): bad value
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 08:36 AM
тАО03-03-2003 08:36 AM
Re: I want an IP address with subnet mask- but problems
ndd -get /dev/ip ip_check_subnet_addr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 08:38 AM
тАО03-03-2003 08:38 AM
Re: I want an IP address with subnet mask- but problems
To overcome this see TKB doc ID NETUXKBRC00008098 here:
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062912284
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 08:53 AM
тАО03-03-2003 08:53 AM
Re: I want an IP address with subnet mask- but problems
how do I create sub-nets then?
I thought I could have the following
List of networks
for the 192.168.0.0 network with the subnet mask 255.255.255.224
Network Hosts Broadcast Address
from to
192.168.0.0 192.168.0.1 192.168.0.30 192.168.0.31
192.168.0.32 192.168.0.33 192.168.0.62 192.168.0.63
192.168.0.64 192.168.0.65 192.168.0.94 192.168.0.95
192.168.0.96 192.168.0.97 192.168.0.126 192.168.0.127
192.168.0.128 192.168.0.129 192.168.0.158 192.168.0.159
192.168.0.160 192.168.0.161 192.168.0.190 192.168.0.191
192.168.0.192 192.168.0.193 192.168.0.222 192.168.0.223
192.168.0.224 192.168.0.225 192.168.0.254 192.168.0.255
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 09:07 AM
тАО03-03-2003 09:07 AM
Re: I want an IP address with subnet mask- but problems
Set the system not to verify the subnetmasks using ndd.
ndd -set /dev/ip ip_check_subnet_add r 0
Leave the complaints about last and first subnets per old RFCs aside, HP does not seem to do well verifying even the legal subnetmasks too.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 09:29 AM
тАО03-03-2003 09:29 AM
Re: I want an IP address with subnet mask- but problems
You can fix this 0 (zero) checking as mentioned by others of do what I do and avoid subnets with 0 or 255 in the address. I.E.
192.168.1.xxx to 192.168.254.xxx then you don't have to worry.
Good Luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 10:05 AM
тАО03-03-2003 10:05 AM
Re: I want an IP address with subnet mask- but problems
dooby doop
I used a network calculator to verify if I had the correct parameters
192.168.0.1 seemed to be ok
anyway I'll change the third octet
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 11:15 AM
тАО03-03-2003 11:15 AM
Re: I want an IP address with subnet mask- but problems
Even if you change the third octet to a non-zero value, it is still going to complain.
As I mentioned before, HP does not do a good job in verifying the subnetmasks.
Turn on the ndd parameter. You will also need to modify /etc/rc.config.d/netconf file to make changes to survive later reboots.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 11:31 AM
тАО03-03-2003 11:31 AM
SolutionI fatfingered a lot in my previous message. I meant turning off (my first message) and it was supposed to be nddconf file not netconf.
This isn't a bug or fault. HP claims that it uses old RFC's to verify the subnetmasks.
To explain it further, consider a network IP 192.168.0.27. If you use the netmask 255.255.255.224, the network will become 192.168.0.0. If you have another system with 192.168.0.125 with the netmask 255.255.255.0, still the network is 192.168.0.0 However, both the above nets are different. Old router protocols would not recognize betweeen them.
This was long back and you do not need to worry about it now.
However, HP's claim that it uses old RFCs does not seem to be very valid. I have seen it rejecting even legal netmasks.
There is no harm in altering this behaviour by disabling the ip_check_subnet_addr parameter.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 11:34 AM
тАО03-03-2003 11:34 AM
Re: I want an IP address with subnet mask- but problems
I just read your reply and now the other one.
Bill I could not have a subnet with the above value unless I configured the nddconf file:
ip_check_subnet_addr
Is it possible to create the large (much larger than necassary) subnet's?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 11:34 AM
тАО03-03-2003 11:34 AM
Re: I want an IP address with subnet mask- but problems
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 11:47 AM
тАО03-03-2003 11:47 AM
Re: I want an IP address with subnet mask- but problems
by doing this in the nddconf file?
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0
yes I did have to turn this on
since the follwing did not work
#ipconfig lan0 192.168.1.2 netmask 255.255.255.224 broadcast 192.168.1.31
Is this a bug/fault with HP-UX requiring a patch
or
is it just like this on 11.00 or 10.x
If I do not alter the nddconf file like above, can I not have subnets?
Thanks for the support Sridhar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 11:51 AM
тАО03-03-2003 11:51 AM
Re: I want an IP address with subnet mask- but problems
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 12:11 PM
тАО03-03-2003 12:11 PM
Re: I want an IP address with subnet mask- but problems
I fatfingered a lot in my previous message. I meant turning off (my first message) and it was supposed to be nddconf file not netconf.
This isn't a bug or fault. HP claims that it uses old RFC's to verify the subnetmasks.
To explain it further, consider a network IP 192.168.0.27. If you use the netmask 255.255.255.224, the network will become 192.168.0.0. If you have another system with 192.168.0.125 with the netmask 255.255.255.0, still the network is 192.168.0.0 However, both the above nets are different. Old router protocols would not recognize betweeen them.
This was long back and you do not need to worry about it now.
However, HP's claim that it uses old RFCs does not seem to be very valid. I have seen it rejecting even legal netmasks.
There is no harm in altering this behaviour by disabling the ip_check_subnet_addr parameter.
//
The above is supposed to be the reply for your message
//
turn on the ndd parameter:
by doing this in the nddconf file?
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0
yes I did have to turn this on
since the follwing did not work
#ipconfig lan0 192.168.1.2 netmask 255.255.255.224 broadcast 192.168.1.31
Is this a bug/fault with HP-UX requiring a patch
or
is it just like this on 11.00 or 10.x
If I do not alter the nddconf file like above, can I not have subnets?
Thanks for the support Sridhar
//
Interestingly, it appeared before. So, I am trying again to see if it appears properly now.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2003 12:14 PM
тАО03-03-2003 12:14 PM
Re: I want an IP address with subnet mask- but problems
I knew Bill H would respond!
better not get started....