Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force bge NIC speed

Status
Not open for further replies.

7280

MIS
Apr 29, 2003
331
0
0
IT
Hi,
I want to force NIC speed in 100FD on bge nic.

I know how to do this on eri and qfe, but same commands didn't work for bge.

Example:

ROOT@drfw2 $ ndd -set /dev/eri instance 0
ROOT@drfw2 $ ndd -get /dev/eri link_speed
1
ROOT@drfw2 $ ndd -get /dev/eri link_mode
1

on bge:
ROOT@drfw3 $ ndd -set /dev/bge instance 0
operation failed: Invalid argument
ROOT@drfw3 $ ndd /dev/bge \?
operation failed: Invalid argument
ROOT@drfw3 $ ls -las /dev/bge
2 lrwxrwxrwx 1 root root 29 Sep 27 11:45 /dev/bge -> ../devices/pseudo/clone@0:bge

Any idea?
Thanks,
Tarek
 
echo "Changing bge0 to 100MB/FD"
ndd -set /dev/bge0 adv_10hdx_cap 0
ndd -set /dev/bge0 adv_10fdx_cap 0
ndd -set /dev/bge0 adv_100hdx_cap 0
ndd -set /dev/bge0 adv_100fdx_cap 1
ndd -set /dev/bge0 adv_1000hdx_cap 0
ndd -set /dev/bge0 adv_1000fdx_cap 0
ndd -set /dev/bge0 adv_autoneg_cap 0

echo "Changing bge1 to 1000MB/FD"
ndd -set /dev/bge1 adv_10hdx_cap 0
ndd -set /dev/bge1 adv_10fdx_cap 0
ndd -set /dev/bge1 adv_100hdx_cap 0
ndd -set /dev/bge1 adv_100fdx_cap 0
ndd -set /dev/bge1 adv_1000hdx_cap 0
ndd -set /dev/bge1 adv_1000fdx_cap 1
ndd -set /dev/bge1 adv_autoneg_cap 0
 
In order to do this you will need to modifiy the bge.conf file. This is a specific driver file for the bge interfaces.

/platform/sun4u/kernel/drv/bge.conf

Good Luck.
 
Here is some additional info for this configuaration.

# cat /platform/sun4u//kernel/drv/xxx.conf (for ce or bge)The single line entries for each network instance (e.g. ce) for 1000Mbps and 100Mbps speeds should look like these respectively:

**each group beginning "name" has to be one continuous line.

name=”ce” parent=”<physical device path>” unit-address=”<unit-address>” adv_autoneg_cap=1 adv_1000fdx_cap=1 adv_1000hdx_cap=0 adv_100fdx_cap=0 adv_100hdx_cap=0 adv_10fdx_cap=0 adv_10hdx_cap=0 adv_100T4_cap=0;

name=”ce” parent=”<physical device path>” unit-address=”<unit-address>” 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 adv_100T4_cap=0;

NOTE: For more details on how to create these configuration files, see Sun Info Doc#72033.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top