[SunHELP] Configuring Negotiation on dfme interfaces
Ben Ricker
sunhelp at sunhelp.org
Thu Jan 3 09:56:08 CST 2002
I am having trouble getting information about how my dfme ethernet
interfaces are setting up their duplexing. I wrote a script that I
THOUGHT worked (it is printed below) but I cannot get it to work.
My questions are: how do you use ndd to query what the current settings
are and why doesn't the script reprinted below work?
Here is the script:
#!/sbin/sh
# Set dmfe0 to 100 full, no auto-negotiate
/usr/sbin/ndd -set /dev/dmfe instance 0
/usr/sbin/ndd -set /dev/dmfe adv_100T4_cap 0
/usr/sbin/ndd -set /dev/dmfe adv_100fdx_cap 1
/usr/sbin/ndd -set /dev/dmfe adv_100hdx_cap 0
/usr/sbin/ndd -set /dev/dmfe adv_10fdx_cap 0
/usr/sbin/ndd -set /dev/dmfe adv_10hdx_cap 0
/usr/sbin/ndd -set /dev/dmfe adv_autoneg_cap 0
# Set the dmfe1 to 100 Full, no auto-negotiate
/usr/sbin/ndd -set /dev/dmfe instance 1
/usr/sbin/ndd -set /dev/dmfe adv_100T4_cap 0
/usr/sbin/ndd -set /dev/dmfe adv_100fdx_cap 1
/usr/sbin/ndd -set /dev/dmfe adv_100hdx_cap 0
/usr/sbin/ndd -set /dev/dmfe adv_10fdx_cap 0
/usr/sbin/ndd -set /dev/dmfe adv_10hdx_cap 0
/usr/sbin/ndd -set /dev/dmfe adv_autoneg_cap 0
# Restart Networking
/etc/init.d/network start
Here is the output of that script when run from command line:
bash-2.03# ./S99zhme_set
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
operation failed, Invalid argument
configuring IPv4 interfaces: dmfe0 dmfe1.
Hostname: unknown
Thanks for your help...
Ben Ricker
Web Security System Engineer
Wellinx.com
More information about the SunHELP
mailing list