1834679 Members
3056 Online
110069 Solutions
New Discussion

32 bit subnet mask

 
ASSIST
Frequent Advisor

32 bit subnet mask

Hi

I need assign a 32 bit netmask to a virtual loopback interface in order to use Cisco Server Load Balancing in a HP 9000 with HP-UX 11i.

I put the interface in the /etc/rc.config.d/netconf file

INTERFACE_NAME[1]=lo0:1
IP_ADDRESS[1]=172.2.203.136
SUBNET_MASK[1]=255.255.255.255
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0

And in the /etc/rc.config.d/nddconf file
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0

But when I restart the network service this is what happens

isaias1:/home/root# /sbin/init.d/net start
ERROR: lo0:1 interface: ifconfig: ioctl (SIOCSIFNETMASK): bad value
isaias1:/home/root#

But, if I try to make it with the ifconfig command

isaias1:/home/root# ifconfig lo0:1 172.2.203.136 255.255.255.255
isaias1:/home/root# netstat -in
Name Mtu Network Address Ipkts Opkts
lo0:1 4136 172.2.203.0 172.2.203.136 40075 15392
lan3 1500 172.2.203.0 172.2.203.121 18781226 13216463
lo0 4136 127.0.0.0 127.0.0.1 572582 572583
isaias1:/home/root# ifconfig lo0:1
lo0:1: flags=859
inet 172.2.203.136 --> 255.255.255.255 netmask ffffff00
isaias1:/home/root#

Thanks in advance
4 REPLIES 4
Ron Kinner
Honored Contributor

Re: 32 bit subnet mask

There is a parameter you can change in NDD which decides whether to check the mask for violations or not.

ip_check_subnet_addr

You probably want to set that to 0.

See http://people.hp.se/stevesk/bastion11.html for details on how to do this at the appropriate time during the boot.

Ron
Ron Kinner
Honored Contributor

Re: 32 bit subnet mask

If you read the article you will see there was a problem with the timing of the ndd call. It came after the mask had already been rejected. Supposedly a patch fixed that but you might try the little inti file they give and see if that helps.

Ron
sysone
Occasional Contributor

Re: 32 bit subnet mask

Your network check subnetmask alright??

Class A : 255.0.0.0
Class B : 255.255.0.0
Class C : 255.2555.255.0



SysOne
sysone
Occasional Contributor

Re: 32 bit subnet mask

Your network check subnetmask alright??

Class A : 255.0.0.0
Class B : 255.255.0.0
Class C : 255.255.255.0



SysOne