Software >> OS >> Unix >> Solaris >> How to set network interface link speed and duplex

1. identify the network interface by ifconfig -a e.g. for hme0, the device file is /dev/hme 2. run the following to determin what are the paramters configurable ndd /dev/hme \? e.g. you see adv_100fdx_cap listed and is of type (read and write) 3. run the following to see current value ndd /dev/hme adv_100fdx_cap 4. run the following to set ndd -set /dev/hme adv_100fdx_cap 1 ============================ (1) change the current configuration ndd -set /dev/ce instance 0 ndd -set /dev/ce adv_1000fdx_cap 0 ndd -set /dev/ce adv_1000hdx_cap 0 ndd -set /dev/ce adv_100fdx_cap 1 ndd -set /dev/ce adv_100hdx_cap 0 ndd -set /dev/ce adv_10fdx_cap 0 ndd -set /dev/ce adv_10hdx_cap 0 ndd -set /dev/ce adv_autoneg_cap 0 verify the current setting has changed by running # kstat -p 'ce:0::/link_(speed|up|duplex)/' expected output ce:0:ce0:link_duplex 2 ce:0:ce0:link_speed 100 ce:0:ce0:link_up 1 (2) create a config file /platform/sun4u/kernel/drv/ce.conf containing :- adv_autoneg_cap=0 adv_1000fdx_cap=0 adv_1000hdx_cap=0 adv_100fdx_cap=1 adv_100hdx_cap=0 adv_10fdx_cap=0 adv_10hdx_cap=0; (3) reboot the server to make the change permanent