1833748 Members
2774 Online
110063 Solutions
New Discussion

Ifconfig error !!

 
SOLVED
Go to solution

Ifconfig error !!

Hi!!

After I change the IP address of /etc/rc.config.d/netconf file,
I do stop and start the "net daemon".
But That show the message.
ERROR: lan0 interface: ifconfig : ioctl
(SIOCSIFNETMSK) : vad value

lanscan and linkloop command OK!
I do "ifconfig lan0" command,
the result is " no such interface".

thanks!!
13 REPLIES 13
Ravi_8
Honored Contributor

Re: Ifconfig error !!

Hi,

just do
#ifconfig lan0 down
#ifconfig lan0 up

or else reboot the machine
never give up
Michael Tully
Honored Contributor

Re: Ifconfig error !!

Depending on the model of your system, your OS patch level you could have hung that actual LAN card.

You could try to run the 'lanadmin' command and
reset your card.
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: Ifconfig error !!

Rebooting your system should be the very last resort. You should be able to use th ifconfig command or, using lanadmin, as suggested.
Anyone for a Mutiny ?

Re: Ifconfig error !!

HI!!

I do ifconfig lan0 down and ifconfig lan0 up.
And rebooting the system.
But The result same.

My system is the name of E45 and O/S is 11.0.
As my company was changed IP address, I work
that IP change.
After I change IP address, I do "ifconfig lan0"
the result is "no Such interface".

the sloution?
Clemens van Everdingen
Honored Contributor

Re: Ifconfig error !!

Hi,

could there be something with the netmask in your netconf file.
It looks like he is complaining about a bad value !

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Printaporn_1
Esteemed Contributor

Re: Ifconfig error !!

Hi,

do you use sam to change IP adress ?
if not , try use sam , if may show you the error massage , some subnetmask is not valid in HP-UX because of some RFC ... I cannot rember it number.
enjoy any little thing in my life
Domenico_5
Respected Contributor

Re: Ifconfig error !!

hi jschae

send your netcof so we can help if there is an error
Steven Gillard_2
Honored Contributor
Solution

Re: Ifconfig error !!

Is it possible that you're using an 'all zeroes' or 'all ones' subnet address? By default HPUX will not allow you to configure such an address (eg 10.0.0.1 with mask 255.255.255.0 is not allowed). This check can be disabled by setting the ndd tunable ip_check_subnet_addr to 0. Try this before running the net start script:

# ndd -set /dev/ip ip_check_subnet_addr 0

To make this change permanent you can edit /etc/rc.config.d/nddconf.

Regards,
Steve
Ron Kinner
Honored Contributor

Re: Ifconfig error !!

If you are using a subnet of a major Class A , B or C network be aware that you can not use the first or the last subnet unless you go into ndd and make a change (11.0 +). The RFC recommends against them because they can be confused with the major Class network and broadcast addresses respectively. For example: if using a 10 net with a 255.255.255.0 mask you should avoid using the 10.0.0.0 - 10.0.0.255 subnet and the 10.255.255.0 -10.255.255.255 subnet.

Ron
Sandip Ghosh
Honored Contributor

Re: Ifconfig error !!

To eliminate all these errors either run it from SAM or
#set_parms ip_address

Sandip
Good Luck!!!
K.Vijayaragavan.
Respected Contributor

Re: Ifconfig error !!

Hi,

Does the command "ioscan -C lan" shows the network card you have.

Are you in runlevel 3 or not "
who -r" .

-Vijay
"Let us fine tune our knowledge together"
rick jones
Honored Contributor

Re: Ifconfig error !!

the stuff about all zeros or ones is probalby the thing. by default HP-UX < 11i interprets ip addresses and subnetmasks according to much older RFC's. setting ip_check_subnet_addr to 0 will get them interpreted according to newer RFC's.

11i defaults to ip_check_subnet_addr = 0 so no more need to tweak things with ndd.
there is no rest for the wicked yet the virtuous have no pillows

Re: Ifconfig error !!

Thank you!!

I thank you for reply.
My system seems to problem the net mask.
I have done everything.
Eventually, I succeed that ndd command use.
"ndd -set /dev/ip ip_check_subnet_addr 0"
Referencely, my company IP address is 211.241.160.0 and subnet mask is 255.255.255.224

thank you.