Operating System - HP-UX
1833144 Members
3250 Online
110051 Solutions
New Discussion

Re: Problems changing netmask

 
SOLVED
Go to solution
Paul Remeika_1
Occasional Contributor

Problems changing netmask

I am having problems changing the netmask on a L1000 running 11.00.
I need my IP address to be 10.0.0.182 with netmask of 255.255.0.0. to match customers existing network config.
Currently it is set to 255.0.0.0. All efforts to change via SAM result in 'network card not configured' coming back or via ifconfig I get the error 'netmask bad'.
I have even tried to set as 255.255.255.0, but get the same error messages.

Any ideas????
5 REPLIES 5
bhavin asokan
Honored Contributor

Re: Problems changing netmask

hi,

Try disabling subnet mask checking:

ndd -set /dev/ip ip_check_subnet_addr 0

To make permanent, edit /etc/rc.config.d/nddconf:
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0

regds,
Marcel Boogert_1
Trusted Contributor

Re: Problems changing netmask

Hi there,

Have you tried to edit your /etc/rc.config.d/netconf file and reboot your machine?

Regards, MB.
Ron Kinner
Honored Contributor
Solution

Re: Problems changing netmask

bhavin is correct about the cause of the problem but the nddconf entry is garbled (this happened to a lot of the old posts when they moved the forum to the new platform).

Should be


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

If you already have a entries in nddconf then use the next higher interger in the brackets.

Marcel also has a point that it is simpler to make the change in
/etc/rc.config.d/netconf

and if SAM still doesn't want to work then you may have to do that. It's pretty simple.

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.0.0.182
SUBNET_MASK[0]="255.255.0.0"


Save the file then (assuming you are on the console) run

/sbin/init.d/net stop
/sbin/init.d/net start

Ron



Paul Remeika_1
Occasional Contributor

Re: Problems changing netmask

Thanks Guys - it took a couple of reboots, but finally got it to take.

Thanks again for your input.
Paul Remeika_1
Occasional Contributor

Re: Problems changing netmask

Changing the files as suggested has resolved the problem