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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NIC Link Speed Config Problem

Status
Not open for further replies.

100mbs

MIS
Feb 14, 2002
142
0
0
US
OK I am running Solaris 10 x86 on a VmWare VM.

my nic is labeled as "pcn0" when i do a ifconfig -a

I am trying to check the link speed and possibly adjust it.

when i do:
ndd -set /dev/pcn0 instance 0
I get this error - operation failed: Invalid argument

When i do:
ndd -set /dev/pcn0
I get -- name to get/set

For some reason i can get the nic info.

Any ideas????
 
Try dropping the "instance 0".

ndd -get /dev/pcn0 link_speed

ndd -set /dev/pcn0 adv_100fdx_cap 1

You can also check to see if there are config files in /kernel/drv/pcn.conf or similar.

Red Hat virtualization is free...
Hope this helps.
 
I tried that and i still get the error: "operation failed: Invalid argument"

I do have the pcn.conf file. Should i put set /dev/pcn0 adv_100fdx_cap 1 in the file?
 
I believe it is because ndd is not supported on x86, only SPARC.

Regards,
Chuck
 
As an alternative, you can try using the kstat command.

Regards,
Chuck
 
If NDD is not supported would you be able to man the command still?
 
Yes, because the ndd command should still be on your system, just not supported on x86.

Regards,
Chuck
 
for example, try this:

Code:
kstat -p :::duplex :::ifspeed

Regards,
Chuck
 
ndd is supported on x86. Well, it is on my sunfire x4200 anyway.

To hard code your settings in the pcn.conf use

adv_100fdx_cap 1
adv_100hdx_cap 0
e.t.c.


Then reboot.
 
ndd might be working on your hardware, but ndd is not supported as the NIC drivers that sun provides with solaris x86, are GLD based, which do not support the ndd model of querying the standard interface values like link_speed.

kstat is the supported method on x86.

Regards,
Chuck
 
I did the kstat -p :::duplex :::ifspeed and this is what i got.

bash-3.00# kstat -p :::duplex :::ifspeed
pcn:0:pcn0:duplex unknown
pcn:0:pcn0:ifspeed 0


 
I believe that should be:

Code:
ndd -set /dev/pcn instance 0

You don't need the 0 on the device name, that's what the 0 is in the instance parameter.

Annihilannic.
 
I did the dladm show-dev and got this.

dladm show-dev
pcn0 link: unknown speed: 0Mbps duplex: unknown
 
Yes i did and that didnt do anything either.

 
I'm also running Solaris 10 x86 under VMware Server and both the dladm show-dev and kstat -p :::duplex :::ifspeed commands suggested above work fine.

My interface is of e1000g0 type though, not pcn. How did you end up with a different type of NIC emulation I wonder?

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top