Operating System - HP-UX
1849061 Members
8192 Online
104041 Solutions
New Discussion

Re: Having problem with ifconfig

 
SOLVED
Go to solution
Sushil Singh_1
Advisor

Having problem with ifconfig

Hi all,
Having problem with ifconfig. I get the following error

# ifconfig lan0
ifconfig: no such interface
#

But when I do a lanscan, I can see the lan0 which is up and running.

# 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 0x00306E087E0A 0 UP lan0 snap0 1 ETHER Yes 119
0/3/0/0 0x00306E05AC0B 1 UP lan1 snap1 2 ETHER Yes 119
0/6/0/0 0x00306E05DC92 2 UP lan2 snap2 3 ETHER Yes 119


5 REPLIES 5
Jeff Schussele
Honored Contributor
Solution

Re: Having problem with ifconfig

Hi Sushil,

What does
lanadmin 0
return?
Also does SAM show the NIC?
What's status does SAM show?
Also please post system type & OS in use.
Possible it's a PHNE patch situation.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: Having problem with ifconfig

The error "No such interface" simply means no IP configuration was found on lan0. Did you assign any IP address to lan0 ? What happen if you run ifconfig on the rest of the lan interface (lan1 & lan2) ?

The lanscan can show you that it's up but if no IP config is found then ifconfig command will not know anything about the card.
Steven Sim Kok Leong
Honored Contributor

Re: Having problem with ifconfig

Hi,

In addition, try plumbing the interface before configuring it to be on the sure side:

# ifconfig lan0 plumb
# ifconfig lan0 1.2.3.4 netmask 255.0.0.0

Replace the IP address 1.2.3.4 and netmask 255.0.0.0 accordingly to your specifics.

Hope this helps. Regards.

Steven Sim Kok Leong
S.K. Chan
Honored Contributor

Re: Having problem with ifconfig

One final thing you should check too ..
# cd /dev
# ll lan*
===> does the file "lan" exist ? If not do this ..

# ln -s /dev/dlpi /dev/lan

And now try the ifconfig command again ..


Sukant Naik
Trusted Contributor

Re: Having problem with ifconfig

Hi Sushil,

This indicated no IP Address has been configure on the LAN card.

Use SAM and then configure the IP address for this card.

-Sukant
Who dares he wins