Operating System - HP-UX
1751807 Members
4922 Online
108781 Solutions
New Discussion юеВ

full or half dulplex mode of the NIC

 
SOLVED
Go to solution
Shivkumar
Super Advisor

full or half dulplex mode of the NIC

Hi,

What are the commands to find out all the network cards installed on the system are in full or half duplex mode ?
If a physical NIC is configured in full duplex mode then it's all virtual network interface will also be in full
duplex mode ?


Thanks,
Shiv
7 REPLIES 7
Sanjay_6
Honored Contributor
Solution

Re: full or half dulplex mode of the NIC

Hi shiv,

Try lanadmin

for lan0
# lanadmin -s 0
OR #lanadmin -s PPA

to get the PPA number of the card do a lanscan
#lanscan

Check the 3rd column in the lanscan o/p

Hope this helps.

regds
A. Clay Stephenson
Acclaimed Contributor

Re: full or half dulplex mode of the NIC

-s displays speed; use lanadmin -x NMID to display speed, duplex, and negotiation settings. NOTE: -x is not supported on all NIC's so it may print an error on stderr and exit with a non-zero status.
If it ain't broke, I can fix that.
YoungHwan, Ko
Valued Contributor

Re: full or half dulplex mode of the NIC

Hi Shivkumar..
This is an example

test01[/]# ioscan -funC lan
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
lan 0 0/1/2/0 igelan CLAIMED INTERFACE HP A6825-60101 PCI 1000Base-T Adapter

test01[/]# lanadmin -s 0
Message catalog can't be opened/accessed for language ko_KR.eucKR.
Language C will used.
Speed = 100000000
test01[/]# lanadmin -x 0
Message catalog can't be opened/accessed for language ko_KR.eucKR.
Language C will used.
Speed = 100 Full-Duplex.
Autonegotiation = On.

To modify this use SAM.
# sam -> Networking and Communications -> Network Interface Cards -> Select lan card and on the menubar select Action -> Modify
rick jones
Honored Contributor

Re: full or half dulplex mode of the NIC

Do you mean the vlans? Yes, they will all share the same duplex setting. Duplex is a feature of the hardware. I've attached something I often trot-out when people ask about duplex.
there is no rest for the wicked yet the virtuous have no pillows
sysadm_1
Valued Contributor

Re: full or half dulplex mode of the NIC


Hi Shiv,

Either use the lanadmin program or command
lanadmin -x 0 for each interface

cheers!!
sysadm
Steven E. Protter
Exalted Contributor

Re: full or half dulplex mode of the NIC

Shalom Shiv,

ioscan -funC lan | awk '{print $2}' > file

while read -r lannum
do
lanadmin -x $lannum
lanadmin -s $lannum

done < file

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunvijai_4
Honored Contributor

Re: full or half dulplex mode of the NIC

Hi Shiv,

You can also do with SAM,

# sam --> Networking and Communications --> Network Interface Cards

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"