Operating System - HP-UX
1832993 Members
3833 Online
110048 Solutions
New Discussion

Lan card device file D220

 
Tarek
Super Advisor

Lan card device file D220

Hi all..
i need to know which is the device file
of my lan card..the hp ws model is D220..when i do ioscan -fun it didn't give me to which device file my lan card is associated..
the output is:
lan 0 8/20/5/1 btlan0 CLAIMED INTERFACE EISA card INP0500
Which is its device file??
thanks...
14 REPLIES 14
A. Clay Stephenson
Acclaimed Contributor

Re: Lan card device file D220

Hi,

The EISA 100BT lan card uses Data Link Provider Interface (DLPI) access and there is no device file associated directly with it.

Regards, Clay
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Lan card device file D220

I suppose I should add that the built-in 10BaseT uses the Link Level Access (LLA) method and there should be a devive node /dev/lanx or /dev/etherx for it.

If it ain't broke, I can fix that.
Tarek
Super Advisor

Re: Lan card device file D220

Sorry i haven't understand well...
i have to compile a program via lancard and so i have to specify the device file to comunicate with my lancard...
so what can i do??
Vincenzo Restuccia
Honored Contributor

Re: Lan card device file D220

#ioscan -nfkClan
in output you have also /dev/...
A. Clay Stephenson
Acclaimed Contributor

Re: Lan card device file D220

Hi,
Unfortunately connecting to a DLPI interface is not really easy. I suggest that you downlaod a copy of the "DLPI Programmer's Guide" from http://www.docs.hp.com. It will walk you through the steps.
A second option is to use the 10BaseT port. Because it's LLA all you need to do is open /dev/lanx.

Hope this helps, Clay
If it ain't broke, I can fix that.
Tarek
Super Advisor

Re: Lan card device file D220

There aren't those two devices. Under /dev the only "thing" with lan is strlan..but there isn't lanx or etherx and also there isn't any thing concerning lan (except the strlan) or ethern
A. Clay Stephenson
Acclaimed Contributor

Re: Lan card device file D220

The built-in lan may have been disabled.

1) Do a lanscan and see if you see more than 1 device and not the statuses.
2) Do an ioscan -fn -C lan and see if there is more than 1 interface and that it is claimed.

If it ain't broke, I can fix that.
Tarek
Super Advisor

Re: Lan card device file D220

I have two lan cards. Both EISA.
Output of lanscan is:
path address Hardware state up net-interface lan0 State UP NMID 4 MAC Type ETHER HP DLPI Support Yes Mjr Num 76
The output of ioscan is the one i wrote before..both lan cards use btlan0 driver
A. Clay Stephenson
Acclaimed Contributor

Re: Lan card device file D220

Ok, you seem to have no choice but to download the DLPI Programer's Guide and study it but I would still look into enabling and using the bultin in lan interface. That's going to be easier unless you have some reason to connect to all the interfaces with your program.
If it ain't broke, I can fix that.
Tarek
Super Advisor

Re: Lan card device file D220

Where is the DLPI Programmers Guide??
Under which section is?? I haven't find it.
Can i create a device file associated with my lan card? I tried with insf but it seems it isn't working..
A. Clay Stephenson
Acclaimed Contributor

Re: Lan card device file D220

Hi,
Go to http:/docs.hp.com and search for "DLPI"; you will find everything you need.
I suspect that you do not have the built-in LAN device (I think it is lan2 but I'm not sure on a D220) enabled. Go to SAM->Kernel Configuration->Devices and notice if the lan devices are In or Out. You may need to mark a device in and regen a kernel.

If it ain't broke, I can fix that.
Tarek
Super Advisor

Re: Lan card device file D220

In sam-kernel configuration-drivers i have:
btlan0 in in no description
btlan3 out out 10/100 Mbit PCI LAN Interface Driver
Tarek
Super Advisor

Re: Lan card device file D220

There is also:
lan0 out out CIO Ethernet Driver
lan1 out out NIO Ethernet Driver
lan2 out out LAN Interface Module
lan3 out out HP-PB LAN Interface Module for LAN/MUX In
lanmux0 out out HP-PB LAN/MUX Interface Module
A. Clay Stephenson
Acclaimed Contributor

Re: Lan card device file D220

Enable lan2.
If it ain't broke, I can fix that.