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 reflect it in the NIS map.

Thanks
Remi

That's not going to go in the NIS maps. You need to use ndd to set the parmeters for the cards.

eg 100 fdx:


ndd -set /dev/bge0 adv_1000fdx_cap 0
ndd -set /dev/bge0 adv_1000hdx_cap 0
ndd -set /dev/bge0 adv_100fdx_cap 1
ndd -set /dev/bge0 adv_100hdx_cap 0
ndd -set /dev/bge0 adv_10fdx_cap 0
ndd -set /dev/bge0 adv_10hdx_cap 0
ndd -set /dev/bge0 adv_autoneg_cap 0

or edit /kernel/drv/bge.conf
sam for ce devices.

for hme,dmfe,eri and qfe you can use the same ndd commands (updated as appropriate or put this in /etc/system


set hme:hme_adv_autoneg_cap=0
set hme:hme_adv_100fdx_cap=1
set hme:hme_adv_100hdx_cap=0
set hme:hme_adv_10fdx_cap=0
set hme:hme_adv_10hdx_cap=0

set qfe:qfe_adv_autoneg_cap=0
set qfe:qfe_adv_100fdx_cap=1
set qfe:qfe_adv_100hdx_cap=0
set qfe:qfe_adv_10fdx_cap=0
set qfe:qfe_adv_10hdx_cap=0

set eri:adv_autoneg_cap=0
set eri:adv_100fdx_cap=1
set eri:adv_100hdx_cap=0
set eri:adv_10fdx_cap=0
set eri:adv_10hdx_cap=0

set dmfe:dmfe_adv_autoneg_cap=0
set dmfe:dmfe_adv_100fdx_cap=1
set dmfe:dmfe_adv_100hdx_cap=0
set dmfe:dmfe_adv_10fdx_cap=0
set dmfe:dmfe_adv_10hdx_cap=0

Thank You..............This helps a lot.

Remi