The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
change NIC to 1000 Mbps full duplex DarReNz SUN Solaris 5 05-23-2006 06:33 AM
100 gigabit full duplex csaunders SUN Solaris 4 04-13-2006 12:06 PM
full -duplex ? parvathy High Level Programming 1 06-11-2005 07:07 AM
Full duplex at HUB? merlin UNIX for Dummies Questions & Answers 4 09-03-2002 05:41 AM
How to configure Full Duplex and TCP/IP marc3483 UNIX for Dummies Questions & Answers 2 07-24-2002 09:55 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-02-2007
Registered User
 

Join Date: Sep 2007
Posts: 3
change to 1000MB full duplex for Solaris 10 ce

I am running Solaris with two NICs in the box ce0 ce1. Is there any way to get full duplex 1000

FYI


bash-2.05# netstat -k ce0 | egrep 'link_speed|link_status|link_duplex'
lp_cap_asmpause 1 lp_cap_pause 0 link_T4 0 link_speed 1000
link_duplex 2 link_asmpause 0 link_pause 0 link_up 1 mac_mtu 1522

bash-2.05# netstat -k ce1 | egrep 'link_speed|link_status|link_duplex'
lp_cap_asmpause 0 lp_cap_pause 0 link_T4 0 link_speed 10
link_duplex 1 link_asmpause 0 link_pause 0 link_up 1 mac_mtu 1522

See in ce1 link speed is 10 mpbs its should be same as that ce0 , please help me ,

when i tried to set

# ndd -set /dev/ce instance 1
# ndd -set /dev/ce adv_1000fdx_cap 1
# ndd -set /dev/ce adv_autoneg_cap 1

ndd -set /dev/ce1 adv_1000fdx_cap 1
open of /dev/ce1 failed: No such file or directory

after added the command ce1 still shows same 10x only

Aug 31 16:52:23 eqoas322 genunix: [ID 611667 kern.info] NOTICE: ce1: xcvr addr:0x01 - link up 10 Mbps half duplex
Aug 31 17:04:58 eqoas322 genunix: [ID 611667 kern.info] NOTICE: ce1: xcvr addr:0x01 - link up 10 Mbps half duplex

CHARLES
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-02-2007
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,212
use this script:

http://docs.cirkva.net/Sun/Solaris/Eis/S68net-tune

p.s. read the instructions!
Reply With Quote
  #3 (permalink)  
Old 09-02-2007
Registered User
 

Join Date: Sep 2007
Posts: 3
Thank you for the script

Can you help me how to run this script i am using ce1 and ce2 , i new to sun
if u need any other information let me know
Reply With Quote
  #4 (permalink)  
Old 09-02-2007
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,212
everything you need to know is in the script. follow the instructions written in the top of the script an then uncomment the entries for ce0 and ce1 bellow in the script. afterwars reboot you mashine....

if you have sshd running on your mashine i can do the needed steps remote (if you are willing to give root access to a stranger)!
Reply With Quote
  #5 (permalink)  
Old 09-02-2007
Registered User
 

Join Date: Sep 2007
Posts: 3
Thanks you for you update, dont have vpn connection .. please check this is correct or not so i can make sure to run

#!/sbin/sh
# /etc/rc2.d/S68net-tune /etc/init.d/net-tune
# Copyright (c) 2000 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident "@(#)net-tune 1.6.4 030416 SMI ES-PTS-NET/Lor"
#
# Edit the following example code to suit your needs.
# Depending on your changes, this script overwrites the Sun recommended default
# values (To use the default values, you do not need this script). See Product
# Documentation and SunSolve Infodocs for proper use first (e.g. Infodocs 17416,
# 23041, 41665). Most parameters must be set on both sides to have effect
# (e.g. check switch and IP partner settings).
# To install:
# 1) cp S68net-tune to /etc/rc2.d
# 2) perform edits on the sript as required
# 3) chmod 744 /etc/rc2.d/S68net-tune
# 4) chown root:sys /etc/rc2.d/S68net-tune
# 5) ln /etc/rc2.d/S68net-tune /etc/init.d/net-tune

PATH=/usr/bin:/usr/sbin

case "$1" in
'start')
echo "Implementing Solaris Network Tuning."

# hme-Interfaces
# hme0
#ndd -set /dev/hme instance 0
#ndd -set /dev/hme adv_100T4_cap 0
#ndd -set /dev/hme adv_100fdx_cap 1
#ndd -set /dev/hme adv_100hdx_cap 0
#ndd -set /dev/hme adv_10fdx_cap 0
#ndd -set /dev/hme adv_10hdx_cap 0
#ndd -set /dev/hme adv_autoneg_cap 0
# hme1
#ndd -set /dev/hme instance 1
#ndd -set /dev/hme adv_100T4_cap 0
#ndd -set /dev/hme adv_100fdx_cap 1
#ndd -set /dev/hme adv_100hdx_cap 0
#ndd -set /dev/hme adv_10fdx_cap 0
#ndd -set /dev/hme adv_10hdx_cap 0
#ndd -set /dev/hme adv_autoneg_cap 0

# eri-Interfaces
# eri0
#ndd -set /dev/eri instance 0
#ndd -set /dev/eri adv_100T4_cap 0
#ndd -set /dev/eri adv_100fdx_cap 1
#ndd -set /dev/eri adv_100hdx_cap 0
#ndd -set /dev/eri adv_10fdx_cap 0
#ndd -set /dev/eri adv_10hdx_cap 0
#ndd -set /dev/eri adv_autoneg_cap 0

# qfe-Interfaces
# qfe0
#ndd -set /dev/qfe instance 0
#ndd -set /dev/qfe adv_100T4_cap 0
#ndd -set /dev/qfe adv_100fdx_cap 1
#ndd -set /dev/qfe adv_100hdx_cap 0
#ndd -set /dev/qfe adv_10fdx_cap 0
#ndd -set /dev/qfe adv_10hdx_cap 0
#ndd -set /dev/qfe adv_autoneg_cap 0
# qfe1
#ndd -set /dev/qfe instance 1
#ndd -set /dev/qfe adv_100T4_cap 0
#ndd -set /dev/qfe adv_100fdx_cap 1
#ndd -set /dev/qfe adv_100hdx_cap 0
#ndd -set /dev/qfe adv_10fdx_cap 0
#ndd -set /dev/qfe adv_10hdx_cap 0
#ndd -set /dev/qfe adv_autoneg_cap 0

# dmfe-Interfaces (Netra X1)
# dmfe0
#ndd -set /dev/dmfe0 adv_100fdx_cap 1
#ndd -set /dev/dmfe0 adv_100hdx_cap 0
#ndd -set /dev/dmfe0 adv_10fdx_cap 0
#ndd -set /dev/dmfe0 adv_10hdx_cap 0
#ndd -set /dev/dmfe0 adv_autoneg_cap 0
# dmfe1
#ndd -set /dev/dmfe1 adv_100fdx_cap 1
#ndd -set /dev/dmfe1 adv_100hdx_cap 0
#ndd -set /dev/dmfe1 adv_10fdx_cap 0
#ndd -set /dev/dmfe1 adv_10hdx_cap 0
#ndd -set /dev/dmfe1 adv_autoneg_cap 0

# vge-Interfaces (Gigabit 1.x)
# vge0
#ndd -set /dev/vge instance 0
#ndd -set /dev/vge fdr_filter 1
#ndd -set /dev/vge link_negotiation 0
# vge1
#ndd -set /dev/vge instance 1
#ndd -set /dev/vge fdr_filter 1
#ndd -set /dev/vge link_negotiation 0

# ge-Interfaces (Gigabit 2.x and 3.x)
# example: forced 1000 Mbit/s, 802.3x Flow Control send and receive
# check if your NIC is 802.3x capable (ndd parameter pause_cap, asm_dir_cap)
# ge0
#ndd -set /dev/ge instance 0
#ndd -set /dev/ge adv_1000fdx_cap 1
#ndd -set /dev/ge adv_1000hdx_cap 0
#ndd -set /dev/ge adv_pauseTX 1
#ndd -set /dev/ge adv_pauseRX 1
#ndd -set /dev/ge adv_1000autoneg_cap 0
# ge1
#ndd -set /dev/ge instance 1
#ndd -set /dev/ge adv_1000fdx_cap 1
#ndd -set /dev/ge adv_1000hdx_cap 0
#ndd -set /dev/ge adv_pauseTX 1
#ndd -set /dev/ge adv_pauseRX 1
#ndd -set /dev/ge adv_1000autoneg_cap 0

# ce-Interfaces (GigaSwift 1.0 UTP)
# example: forced 1000 Mbit/s, 802.3x Flow Control send and receive
ce0
ndd -set /dev/ce instance 0
Master values, change in forced 1000 Mbit/s back-to-back config only:
ndd -set /dev/ce link_master 0 # one link partner 1, the other 0 (ce <=1.118)
ndd -set /dev/ce master_cfg_enable 1 # enable usage of master_cfg_value (ce >1.118)
ndd -set /dev/ce master_cfg_value 0 # one link partner 1, the other 0 (ce >1.118)
Speed/Mode values, set the desired to 1, all other to 0:
ndd -set /dev/ce adv_1000fdx_cap 1
ndd -set /dev/ce adv_1000hdx_cap 0
ndd -set /dev/ce adv_100fdx_cap 0
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_asmpause_cap 0
ndd -set /dev/ce adv_pause_cap 1
ndd -set /dev/ce adv_autoneg_cap 0
ce1
ndd -set /dev/ce instance 1
Master values, change in forced 1000 Mbit/s back-to-back config only:
ndd -set /dev/ce link_master 0 # one link partner 1, the other 0 (ce <=1.118)
ndd -set /dev/ce master_cfg_enable 1 # enable usage of master_cfg_value (ce >1.118)
ndd -set /dev/ce master_cfg_value 0 # one link partner 1, the other 0 (ce >1.118)
Speed/Mode values, set the desired to 1, all other to 0:
ndd -set /dev/ce adv_1000fdx_cap 1
ndd -set /dev/ce adv_1000hdx_cap 0
ndd -set /dev/ce adv_100fdx_cap 0
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_asmpause_cap 0
ndd -set /dev/ce adv_pause_cap 1
ndd -set /dev/ce adv_autoneg_cap 0

# switch MTU path discovery off
#ndd -set /dev/ip ip_path_mtu_discovery 0
# TCP/UDP buffer tunings
#ndd -set /dev/tcp tcp_xmit_hiwat 65536
#ndd -set /dev/tcp tcp_recv_hiwat 65536
#ndd -set /dev/udp udp_xmit_hiwat 65536
#ndd -set /dev/udp udp_recv_hiwat 65536
# TCP congestion window size, for Solaris <= 2.5, only
#ndd -set /dev/tcp tcp_cwnd_max 65535
# Change TCP maximum retransmission interval, for Solaris <= 7, only
#ndd -set /dev/tcp tcp_rexmit_interval_max 60000
# Change number of TCP slow start initial packets to work arround
# slow start bug in BSD stack and Windows. For Solaris <= 7, only
#ndd -set /dev/tcp tcp_slow_start_initial 2
;;

'stop')
echo "No kernel parameters changed."
;;

*)
echo "Usage: $0 {start|stop}"
;;

esac
exit 0
Reply With Quote
  #6 (permalink)  
Old 09-02-2007
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 710
you could use that config file as well....

Code:
# ce.conf
# GigaSwift (ce) driver configuration file
# Copyright (c) 2000 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident  "@(#)ce.conf      1.0.5     041110 SMI ES-PTS-NET/Lor"
#
################################################################################
# This file is not needed for most installations !
#
# It MAY be needed for rare special customizations. In this case,
# copy the file and edit the following example to suit your needs.
################################################################################
#
# Depending on your changes, this file overwrites the Sun[TM] recommended
# default values (To use the default values, you do not need this file).
# In particular, Sun's[TM] recommendation is to leave Ethernet Auto-negotiation
# ON at both link partners (this is the default). See Product Documentation and
# SunSolve Infodocs 41665, 72033 for proper use first.
#
# Most parameters must be set on both sides to have effect
# (e.g check also switch and remote partner(s) settings).
#
# To install:
# 1) On SPARC systems, copy ce.conf to /platform/sun4u/kernel/drv/ce.conf
#    On x86 Opteron systems, copy ce.conf to /kernel/drv/ce.conf
# 2) edit file to your needs. Default is to do nothing.
# 3) reboot the system
#
# For settings per interface, name, parent and unit-address
# must be specified. Obtain the hardware path from /etc/driver_aliases and
# /etc/path_to_inst as shown below (unit-address is NOT the instance !) :
#
# % grep ce /etc/driver_aliases
# ce "pci108e,abba"
#           |                       % grep ce /etc/path_to_inst
#           |                       "/pci@21c,700000/pci@1/network@0" 0 "ce"
#           |                               |                      |
#           V                               V                      V
# name="pci108e,abba" parent="/pci@21c,700000/pci@1" unit-address="0"
#
# after this, append the settings you want.
# Repeat for each interface to be configured. All other will be default.
# Don't forget the ";" after each section. Hardware path examples:
#
# name="pci108e,abba" parent="/pci@21c,700000/pci@1" unit-address="0"
# (GigaSwift NIC in Sun Fire 15000 hsPCI Board IO 16 PCI Slot 1)
#
# name="pci100b,35" parent="/pci@9,600000/pci@2/pci@0" unit-address="1"
# (2nd port of QGE NIC in Sun Fire V880 PCI Slot 7)
#
# name="pci108e,abba" parent="/pci@9,700000" unit-address="2"
# name="pci108e,abba" parent="/pci@9,600000" unit-address="1"
# (V480R onboard interfaces)
#
# For global settings, no hardware path needs to
# be specified, the settings are used for all ce interfaces.
################################################################################
#
# Select hardware path (not needed if all interfaces set the same)
#name="" parent="" unit-address=""
#
# example: forced 1000 Mbit/s, 802.3x Flow Control send and receive
# Speed/Mode values, set the desired to 1, all other to 0:
#adv_1000fdx_cap=1
#adv_1000hdx_cap=0
#adv_100fdx_cap=0
#adv_100hdx_cap=0
#adv_10fdx_cap=0
#adv_10hdx_cap=0
#
# Enable Ethernet Flow Control
#adv_asmpause_cap=0
#adv_pause_cap=1
#
# Clock Master values, change in forced 1000 Mbit/s back-to-back config only:
#master_cfg_enable=1 # enable usage of master_cfg_value (ce >1.118)
#master_cfg_value=0 # one link partner 1, the other 0 (ce >1.118)
#
# Advertize values above per Auto-negotiation.
# Should be set to 1 in most cases, 0 disables Auto-negotiation
#adv_autoneg_cap=0
#
#
# Enable Jumbo Frames
#accept-jumbo=1
;
regards
- PRESSY
Reply With Quote
  #7 (permalink)  
Old 09-02-2007
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,212
Code:
#!/sbin/sh
# /etc/rc2.d/S68net-tune /etc/init.d/net-tune
# Copyright (c) 2000 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident  "@(#)net-tune      1.6.4     030416 SMI ES-PTS-NET/Lor"
#
# Edit the following example code to suit your needs.
# Depending on your changes, this script overwrites the Sun recommended default
# values (To use the default values, you do not need this script). See Product
# Documentation and SunSolve Infodocs for proper use first (e.g. Infodocs 17416,
# 23041, 41665). Most parameters must be set on both sides to have effect
# (e.g. check switch and IP partner settings).
# To install:
# 1) cp S68net-tune to /etc/rc2.d
# 2) perform edits on the sript as required
# 3) chmod 744 /etc/rc2.d/S68net-tune
# 4) chown root:sys /etc/rc2.d/S68net-tune
# 5) ln /etc/rc2.d/S68net-tune /etc/init.d/net-tune

PATH=/usr/bin:/usr/sbin

case "$1" in
     'start')
	echo "Implementing Solaris Network Tuning."

# ce-Interfaces (GigaSwift 1.0 UTP)
# example: forced 1000 Mbit/s, 802.3x Flow Control send and receive
# ce0
       ndd -set /dev/ce instance 0
       ndd -set /dev/ce link_master 0
       ndd -set /dev/ce master_cfg_enable 1
       ndd -set /dev/ce master_cfg_value 0
       ndd -set /dev/ce adv_1000fdx_cap 1
       ndd -set /dev/ce adv_1000hdx_cap 0
       ndd -set /dev/ce adv_100fdx_cap 0
       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_asmpause_cap 0
       ndd -set /dev/ce adv_pause_cap 1
       ndd -set /dev/ce adv_autoneg_cap 0

# ce1
       ndd -set /dev/ce instance 1
       ndd -set /dev/ce link_master 0
       ndd -set /dev/ce master_cfg_enable 1
       ndd -set /dev/ce master_cfg_value 0
       ndd -set /dev/ce adv_1000fdx_cap 1
       ndd -set /dev/ce adv_1000hdx_cap 0
       ndd -set /dev/ce adv_100fdx_cap 0
       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_asmpause_cap 0
       ndd -set /dev/ce adv_pause_cap 1
       ndd -set /dev/ce adv_autoneg_cap 0


         ;;

     'stop')
         echo "No kernel parameters changed."
         ;;

        *)
         echo "Usage: $0 {start|stop}"
         ;;

  esac
  exit 0
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0