Operating System - HP-UX
1821993 Members
3562 Online
109638 Solutions
New Discussion юеВ

network-card: full-duplex or half-duplex ?

 
Michael Bluemm
Frequent Advisor

network-card: full-duplex or half-duplex ?

Hi pro's,
I'm looking for the configuration-file of our network-cards, because our network-master needs to know, whether they are full-duplex or half-duplex.
We're running 10.20.
Thanks, Michael
... still trying ...
15 REPLIES 15
Jeff Schussele
Honored Contributor

Re: network-card: full-duplex or half-duplex ?

Hi Michael,

We need more info.
Post the output from
#ioscan -fnC lan

If you use
lanadmin -x X
where X equals the NMID of the NIC. NOTE: NMID may NOT be equal to the lan# of the NIC. You can go into the lanadmin menu to determine what the NMID is for all NICs.

The files will all be located in /etc/rc.config.d but there will be several in there & they are tied to specific drivers for the different types of NICs.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Tully
Honored Contributor

Re: network-card: full-duplex or half-duplex ?

Here is a list of which configuration file is assigned to what lan driver (btlan? & gelan) 10.20 is different 11 and up.

btlan hpbtlanconf
btlan0 hpeisabtconf
btlan1 hpbasetconf
btlan3 hpbase100conf Internal (core) LAN card
btlan4 hpgsc100conf
btlan5 hppci100conf "external" PCI card A5230A
btlan6 hpsppci100conf V-class PCI lan card
gelan hpgelanconf GigaBit card A4926A

for HPUX 10.20
# ioscan -fnkC lan
lan 1 10/4/8 btlan1 CLAIMED INTERFACE HP HP-PB 100 Base TX card

HP_BASET_INTERFACE_NAME[0]=lan1
HP_BASET_STATION_ADDRESS[0]=0x080009D9E00B
HP_BASET_DUPLEX[0]=0x080009D9E00B

Output from landiag:
Description = lan1 Hewlett-Packard 10/100Base-TX Half-Duplex Hw Rev 0
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 100
Station Address = 0x080009db009c



Anyone for a Mutiny ?
Ravi_8
Honored Contributor

Re: network-card: full-duplex or half-duplex ?

Hi,

#ioscan -fnkC lanx
#lanadmin
will gives the info that your network-master needed
never give up
T G Manikandan
Honored Contributor

Re: network-card: full-duplex or half-duplex ?

#lanadmin
type 'lan'
type 'dis'

check the Description on the first line which should tell you the present duplex setting.

Thanks
Michael Bluemm
Frequent Advisor

Re: network-card: full-duplex or half-duplex ?

Thank you,
but your help was not enough yet. Attached I send you the output of "lanadmin - display" and "ioscan -fnkC lan"
half duplex or full duplex?
... still trying ...
Michael Bluemm
Frequent Advisor

Re: network-card: full-duplex or half-duplex ?

... and the second attachment
... still trying ...
Pete Randall
Outstanding Contributor

Re: network-card: full-duplex or half-duplex ?

Hi Michael,

I only see the ioscan output in your attachment. Can you try again to attach the lanadmin output?

Pete

Pete
Pete Randall
Outstanding Contributor

Re: network-card: full-duplex or half-duplex ?

Michael,

Sorry, I spoke too soon. However, there's no indication of the duplex setting in the second attachment. I'm not sure if this will work on 10.20, but will you try "lanadmin -x 1", where 1 is the instance number of the card (from ioscan)?

Thanks,
Pete

Pete
Jean-Louis Phelix
Honored Contributor

Re: network-card: full-duplex or half-duplex ?

Hi,

In fact as Jeff said, you really need your NMID, and the only way I know to get it is using lanscan :

> lanscan
Hardware Station Crd Hardware Net-Interface NM MAC HP DLPI Mjr
Path Address In# State NameUnit State ID Type Support Num
16/6 0x08000xxxxxxx 0 UP lan0 UP 4 ETHER Yes 52
20/5/1 0x0060Bxxxxxxx 1 UP lan1 DOWN 5 ETHER Yes 76

and in this case you can see that lan0 has NMID 4 and lan1 NMID 5. Then you can use :

> lanadmin -x 5
Current Speed = 10 Half-Duplex Auto-Negotiation-ON

or
> lanadmin -x 4
Error: This option is not supported for this hardware.

Perhaps that's your problem, but this old lan2 driver is for the core 10BT HD ...

Regards.


It works for me (┬й Bill McNAMARA ...)
T G Manikandan
Honored Contributor

Re: network-card: full-duplex or half-duplex ?

The operation status is down in the lanadmin output.
It is not up.

Can you please post the lanamdin ouput of the interface which is running and up.

Thanks
Cristian Salescu
New Member

Re: network-card: full-duplex or half-duplex ?

1. Login to the node as ???root???.
2. Confirm the LAN card status of the particular card driver:
#> ioscan ???fnC lan
The following is an output sample:
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 8/0/1/0 btlan5 CLAIMED INTERFACE PCI(10110019) ??? 1
lan 1 8/0/20/0 btlan3 CLAIMED INTERFACE HP PCI 10/100Base-TX Core
lan 2 8/4/1/0 btlan4 CLAIMED INTERFACE HP HSC 100Base-TX Prototype card

3. Confirm the LAN card naming:
#>lanscan
The following is an output sample:
Hardware Station Crd Hardware Net-Interface NM MAC HP DLPI Mjr
Path Address In# State NameUnit State ID Type Support Num
8/0/1/0 0x00108336C472 0 UP lan0 UP 4 ETHER Yes 130
8/0/2/0 0x00108336C473 1 UP lan1 UP 5 ETHER Yes 130
8/4/2/0 0x00108336A509 3 UP lan3 DOWN 6 ETHER Yes 130

4. Match the LAN driver with the LAN card configuration file accordingly:
Driver Configuration File
btlan3 /etc/rc.config.d/hpbase100conf
btlan4 /etc/rc.config.d/hpgsc100conf
btlan5 /etc/rc.config.d/hppci100conf
5. Backup the original LAN card configuration:
#> cp ???Rp /etc/rc.config.d/hpbase100conf /tmp/hpbase100conf.bak
#> cp ???Rp /etc/rc.config.d/hpgsc100conf /tmp/hpgsc100conf.bak
#> cp ???Rp /etc/rc.config.d/hppci100conf /tmp/hppci100conf.bak
6. Edit the particular LAN configuration file accordingly:
/etc/rc.config.d/hpbase100conf
HP_BASE100_INTERFACE_NAME[0]=lan0
HP_BASE100_STATION_ADDRESS[0]=
HP_BASE100_SPEED[0]=100FD
/etc/rc.config.d/hpgsc100conf
HP_GSC100_INTERFACE_NAME[0]=lan0
HP_GSC100_STATION_ADDRESS[0]=
HP_GSC100_SPEED[0]=100FD
/etc/rc.config.d/hppci100conf
HP_PCI100_INTERFACE_NAME[0]=lan0
HP_PCI100_STATION_ADDRESS[0]=
HP_PCI100_DUPLEX[0]=FULL
7. Restart the node to activate the change:
#> cd /
#> /etc/shutdown ???ry 0
8. After the node has restarted, confirm the correct LAN speed:
#> /usr/sbin/lanadmin ???x [NMID]
Where [NMID] is captured from the previous ???lanscan??? result. The following is a sample result:
Current Speed = 100 Full-Duplex Auto-Negotiation-OFF
Wise to resolve, and patient to perform.
Michael Bluemm
Frequent Advisor

Re: network-card: full-duplex or half-duplex ?

Thank you,
lanadmin -x doesn't work, the "x" is an unrecognized option for my version of the "lanadmin"-command (1997, 53248 Bytes)
.
Is there a patch for this?
Thank you, Michael
... still trying ...
V. Nyga
Honored Contributor

Re: network-card: full-duplex or half-duplex ?

Hi Michael,

check with 'man lanadmin' if the -x option is able.

For your problem:
use 'landiag'
Then you are in the LAN Online admin.

Typ 'lan' and 'dis' -
you will get the informations you need:
1. the nmid of the lancard you get displayed
2. Description: FULL-DUPLEX or HALF-DUPLEX
3. and 4. not interested
5. Speed: 100 or 10 maybe 100000000 or 10000000 for 100MBit or 10MBit.
7. and 8. if this lancard is up or down.

For your second card change the nmid with 'nmid' instead of 'dis' and the second number you have got from lanscan.

Then with 'dis' you get the infos of your second card.
Then you should have all you need.

Regards
Volkma
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: network-card: full-duplex or half-duplex ?

Hi again,

I've checked it:
you will (logical) only get the full-/half-duplex description of a card which is 'up' - the file you have attached former was from the card with operation status 'down' - so no description.
Change the nmid runing landiag and you get your informations.

Regards
Volkmar
*** Say 'Thanks' with Kudos ***
Darrell Allen
Honored Contributor

Re: network-card: full-duplex or half-duplex ?

Hi Michael,

Your ioscan shows 2 PCI interfaces (btlan4 driver) and a built-in interface (lan2 driver). I believe the built-in interface is only a 10Mb half duplex interface. The other 2 interfaces support 100Mb full duplex.

Your lanadmin output was for nmid 4. That's the built-in interface. You see the speed is specified as 10000000 (10Mb).

To see the other interfaces in lanadmin, enter the command ppa (or nmid - depending on what your version supports).

There are patches to implement lanadmin support for "-x". I'm not certain which you need however PHNE_20422 is the latest PCI 100BASE-T cumulative patch for 10.20.

It appears you aren't up to date with patches. If not, I suggest you install the latest 10.20 Quality Pack patch bundle. You may have the CD already. If not, I presume you can order it from HP or you can download the bundle from the ITRC.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)