Friday, September 16, 2005

sets network nic parameters value

Bhushan <bhushan.li...@gmail.com> wrote:
> Add following line in /etc/system file

> set bge:bge_adv_autoneg_cap=0

> This sets value to permannetly even after reboot

That's the most inflexible way of doing it:

1. It requires a reboot to activate
2. It sets the value on all instances of the driver

You have more flexibility with ndd:

ndd -set /dev/bge0 adv_autoneg_cap 0

I hope Sun will make a consistent interface for all network drivers one
day. The situation today is frustating.

- some drivers have a single /dev entry, you have to set instance first
then the parameter:
ndd -set /dev/qfe instance 3
ndd -set /dev/qfe adv_autoneg_cap 0
- others (like bge) create a separate /dev entry for each instance:
ndd -set /dev/bge3 adv_autoneg_cap 0
- some drivers use completely different names
- some drivers (mostly x86) don't have a ndd interface at all.

0 Comments:

Post a Comment

<< Home