×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

HP-UX equivalent to ifconfig

HP-UX equivalent to ifconfig

HP-UX equivalent to ifconfig

(OP)
I am new to HP-UX and I was wondering if someone could tell me the HP-UX equivalent to ifconfig?  I have heard of lanscan and lanadmin, but I have never used either of them.  I am basically just looking to find out how many NICs a server has and what their IP address is.

Thanks,

John

RE: HP-UX equivalent to ifconfig

HP has ifconfig (in fact, the man page for ifconfig says the command was developed by HP and Berkeley). Have you done a man on ifconfig?

RE: HP-UX equivalent to ifconfig

(OP)
Thanks, bi.  I must have been accidentally typing in the wrong command because I tried it a few times.  Maybe I typed ipconfig instead of ifconfig...who knows!!  

Thanks,

John

RE: HP-UX equivalent to ifconfig

You could also try the man pages for lanscan and lanadmin

RE: HP-UX equivalent to ifconfig

If u do lanscan then it will show u the no. of lancards attach to the system and if ifconfig <devicename> then ipaddress, netmask and network address will be shown

Regards

RE: HP-UX equivalent to ifconfig

You can also cat /etc/rc.config.d/netconf - all the config information is in there for your active devices.

lanscan will show the devices, but not all may be set up (so doing an ifconfig on an unused interface will give you an error):

oiyou:/root=> lanscan
Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI
Path     Address        In# State NamePPA        ID  Type      Support Mjr#
0/0/0/0  0x001083F575F0 0   UP    lan0 snap0     1   ETHER     Yes     119
0/4/0/0/4/0 0x001083F86979 2   UP    lan2 snap2     2   ETHER     Yes     119
0/4/0/0/5/0 0x001083F8697A 3   UP    lan3 snap3     3   ETHER     Yes     119
0/4/0/0/6/0 0x001083F86983 4   UP    lan4 snap4     4   ETHER     Yes     119
0/4/0/0/7/0 0x001083F86982 5   UP    lan5 snap5     5   ETHER     Yes     119
1/10/0/0/4/0 0x00306E1BADD0 7   UP    lan7 snap7     6   ETHER     Yes     119
1/10/0/0/5/0 0x00306E1BADD1 8   UP    lan8 snap8     7   ETHER     Yes     119
1/10/0/0/6/0 0x00306E1BADD2 9   UP    lan9 snap9     8   ETHER     Yes     119
1/10/0/0/7/0 0x00306E1BADD3 10  UP    lan10 snap10   9   ETHER     Yes     119
1/4/0/0  0x00306E035ED7 6   UP    lan6 snap6     10  ETHER     Yes     119
0/12/0/0 0x00306E036E43 1   UP    lan1 snap1     11  ETHER     Yes     119
oiyou:/root=> ifconfig lan8
ifconfig: no such interface

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close