HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

ifconfig dosent work

 
SOLVED
Go to solution
David Willams
Super Advisor

ifconfig dosent work

# ifconfig -a
ifconfig: no such interface
5 REPLIES
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