1826783 Members
1435 Online
109702 Solutions
New Discussion

ifconfig dosent work

 
SOLVED
Go to solution
David Willams
Super Advisor

ifconfig dosent work

# ifconfig -a
ifconfig: no such interface
5 REPLIES 5
Tingli
Esteemed Contributor
Solution

Re: ifconfig dosent work

hp-ux doesn't work this way. You need to use something like:

ifconfig lan0 and etc..
James R. Ferguson
Acclaimed Contributor

Re: ifconfig dosent work

Hi David:

There is no '-a' switch to HP-UX's 'ifconfig'. You need to specify the lan interface. You can obtain these from 'lanscan'.

# lanscan
# ifconfig lan0

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: ifconfig dosent work

Hi (again) David:

In fact, you could do:

lanscan -i|while read LAN X
do
ifconfig ${LAN} 2>/dev/null
done

Regards!

...JRF...
melvyn burnard
Honored Contributor

Re: ifconfig dosent work

or even better:
man ifconfig
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
David Willams
Super Advisor

Re: ifconfig dosent work

thanks everyone