How to find half duplex or full duplex


 
Thread Tools Search this Thread
Operating Systems Solaris How to find half duplex or full duplex
# 1  
Old 11-23-2009
How to find half duplex or full duplex

Hi,

How to find whether the server is running with half duplex or full duplex. I tried with the following command ndd -get /dev/ but am not getting any output,. Is the command correct?
Also let me know how to change from half to full duplex.
rogerben
# 2  
Old 11-23-2009
try:

dladm show-dev (you need root priv probably)


this is the output I get:

Code:
~> sudo dladm show-dev
hme0            link: unknown   speed: 0     Mbps       duplex: unknown
qfe0            link: unknown   speed: 100   Mbps       duplex: full
qfe1            link: unknown   speed: 0     Mbps       duplex: unknown
qfe2            link: unknown   speed: 0     Mbps       duplex: unknown
qfe3            link: unknown   speed: 0     Mbps       duplex: unknown



---------- Post updated at 12:32 AM ---------- Previous update was at 12:28 AM ----------

or to do it your way it would be
(say your interface is qfe0)

Code:
ndd -set /dev/qfe instance 0
ndd -get /dev/qfe link_speed
ndd -get /dev/qfe link_mode

then your output will only be a 0 or 1

Code:
# ndd -get /dev/qfe link_mode

Interpretation:
0 -- half-duplex
1 -- full-duplex

Code:
# ndd -get /dev/qfe link_speed

Interpretation:
0 -- 10 Mbit
1 -- 100 Mbit
1000 -- 1 Gbit



Forgot the setting part:

Code:
ndd -set /dev/qfe adv_autoneg_cap 0    #autoneg off
ndd -set /dev/qfe adv_10hdx_cap 0       #10M half duplex
ndd -set /dev/qfe adv_10fdx_cap 0        #10M full duplex
ndd -set /dev/qfe adv_100hdx_cap 0     #100M half duplex
ndd -set /dev/qfe adv_100fdx_cap 1      #100M full duplex



OR

you can make it all easier, and just get ethtool Smilie
download:
http://sourceforge.net/projects/gkernel/
info:
http://gd.tuwien.ac.at/linuxcommand..../ethtool8.html

Last edited by DukeNuke2; 11-23-2009 at 10:26 AM.. Reason: add info
This User Gave Thanks to ippy98 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

100Mb/s full duplex link

Hi, I have been trying to connect two computers directly through their LAN cards. One is a 3com 3c905c 10/100 Mbit/s card and the other is an Intel i217-lm 10/100/1000Mbit/s card. I have connected them through a CAT 6 cable. Whenever autoneg is turned on, the PCs connect in the 10Mb/s mode, and... (7 Replies)
Discussion started by: jamie_123
7 Replies

2. AIX

Connected and Running with half duplex speed

VIO Server connected to switch port and running with half duplex speed on one of the shared ethernet adapter. We have verified at switch end and everythings looks good. Other ethernet adapter in the VIO server are connected and running in Full duplex speed. Please help me find why this shared... (4 Replies)
Discussion started by: mugunthanvh
4 Replies

3. Linux

Network 10Mb/s half duplex only. r8168 on Centos 5.

Hi, For some reason my network card started going 10Mb/s half duplex instead of 1000Mb/s full duplex. System is connected to 8x1Gb HP switch. Other devices connect fine through the switch and get full 1Gb network. I have Centos 5 with all updates. Driver comes from elrepo and as well is... (1 Reply)
Discussion started by: columb
1 Replies

4. SuSE

configure full duplex

How do I configure full duplex on suse 8.2 I tried ethtool -s eth0 speed 100 duplex full autoneg off the above works but when I reboot the machine the configure was lost. How do I configure full duplex so that when the machine get rebooted the configuration will stay. My interface... (4 Replies)
Discussion started by: hassan2
4 Replies

5. Solaris

How to force a full duplex

I need to change some Ip addresses for my servers to reflect in the NIS map. I also need to force full duplex on the 10/100 cards & 1/2 duplex in the 10 cards. I can change the IP by doing ifconfig <NIC card > plumb up <newip>. Not quite sure on how to force the full / half duplex & how to... (2 Replies)
Discussion started by: Remi
2 Replies

6. Red Hat

RedHat 9 Force full duplex

All, I have a RedHat 9 box which I need to figure out how to get it to stay in full duplex mode after a reboot. I have tried ethtool -s eth0 speed 100 duplex full autoneg off I have tried to add a line to the /etc/sysconfig/network-scripts/ifcfg-eth0 like this: ETHTOOL_OPTS="speed... (4 Replies)
Discussion started by: bubba112557
4 Replies

7. Programming

full -duplex ?

what is meant by full duplex and half duplex? b'coz in differences b\w hub and switch ,i heard lot this duplex word so please help me (1 Reply)
Discussion started by: parvathy
1 Replies

8. UNIX for Dummies Questions & Answers

Full Duplex Howto

Dear Members, I was reading a few posts and saw something about installing two Nics so one could use Full Duplex. I remember back in the day of dial up, you could have two modems and use one for upstream and one for downstream. This was called shotgunning. It seems that you can now do the same... (4 Replies)
Discussion started by: Phobos
4 Replies

9. UNIX for Dummies Questions & Answers

Full duplex at HUB?

Ok at the moment I have a hub whit 5 computers connected to it. It's a 10/100 NetGear hub. Ok I heard that there is some command I can run or a file I edit or something like that. But what the command/file/script/whatever does is tells you what connect speed it's connecting to the hub to. ... (4 Replies)
Discussion started by: merlin
4 Replies
Login or Register to Ask a Question