Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HP-UX equivalent to ifconfig

Status
Not open for further replies.

johngiggs

Technical User
Oct 30, 2002
492
US
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
 
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?
 
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
 
You could also try the man pages for lanscan and lanadmin
 
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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top