How to set/get NIC speed and duplex:
- Pick an interface to query or configure - This example specifies hme0
- Display current duplex for the selected interface:
- Display current speed for the selected interface:
- Turn autonegotiation off using:
- Change the 'advertised capabilities' of the interface:
# ndd -set /dev/hme instance 0
# ndd -get /dev/hme link_mode
# ndd -get /dev/hme link_speed
# ndd -set /dev/hme adv_autoneg_cap 0
# ndd -set /dev/hme adv_100hdx_cap 0 # ndd -set /dev/hme adv_100fdx_cap 1
The example above sets the card to advertise ONLY 100MBps Full Duplex