Operating System - HP-UX
1826398 Members
4127 Online
109692 Solutions
New Discussion

HP UX 10.20 CIDR support available?

 
Stuart Smiles
New Member

HP UX 10.20 CIDR support available?

Hi gents,
happy new year.

We are trying to configures some visualise workstations (B180L) running hpux 10.20 with addresses in the range 192.168.0.0/ 255.255.255.128

When configured in SAM or with the setparms script this does not allow us to set anything other than 255.255.255.0 as the subnet.

we already have an interface in a subnet 10.0.1.1 / 255.255.255.0 - is it because both subnets on each interface have to be the same?

Is there any way we can change this or can we apply a patch or a kernel parameter to allow cidr.

Can we set it via ifconfig for it to be allowed?

net 192.168.0.0 - 192.168.0.127
avail 192.168.0.2 - 192.168.0.126

ws1 192.168.0.23 255.255.255.128
defgw 192.168.0.126


thanks
Stuart Smiles
stuart.smiles@nortelnetworks.com
3 REPLIES 3
Bill Hassell
Honored Contributor

Re: HP UX 10.20 CIDR support available?

In 10.20, you can modify the rules checking for small subnets. Normally, HP-UX enforces the standard RFC1122 which limits how small a subnet may be. However, RFC1878 does allow smaller subnets and the command nettune (10.20 only, 11.x the command is ndd).

nettune -h (ndd -h for 11.x) will show the tunable network parameters. To enable small subnets, you must turn off the tunable called ip_check_subnet_add.

First, check the current setting:

# /usr/contrib/bin/nettune -l ip_check_subnet_addr

or

# /usr/bin/ndd -get /dev/ip
ip_check_subnet_addr

To turn off this checking feature:

# /usr/contrib/bin/nettune -s ip_check_subnet_addr 0

or

# /usr/bin/ndd -set /dev/ip ip_check_subnet_addr 0

To make the change permanent, you'll need to put the values into a startup script. For 10.20, there is no nettune script, so you'll need to put a simple start script in /sbin/init.d:

#!/sbin/sh
/usr/contrib/bin/nettune -s ip_check_subnet_addr 0

You can call it nettune. Change permissions to 555 and ownership to bin:bin and to make it run starting at run level 2, use the command:

# ln -s /sbin/init.d/nettune /sbin/rc2.d/S006nettune

and for 11.x, it is much more standard. Edit the file in /etc/rc.config.d called ndd and add these lines:

TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0

Note: the [0] refers to an array reference so related items belong together. If other tunables are desired, use the next available array location (starting from 0) for the next 3 items.


Bill Hassell, sysadmin
Stuart Smiles
New Member

Re: HP UX 10.20 CIDR support available?

Hi Gents,

Thanks for the replies.
We will try them on monday morning.

thanks again

Stuart