Servicios

Web hosting
Ver »
Páginas Web
Ver »
Soporte UNIX
Ver »
UNIX TIPS
Ver »

CONFIGURACIÓN Network Interface Card SUN SOLARIS

Here is how to set manually speed and duplex parameters on network interfaces in Sun Solaris 8,9.

Adding the following code (comment lines start with '*') to you /etc/system file and rebooting will put your hme type interfaces to 10 Mbits/s Half-Duplex:
*
* set hme driver modes
*
*set hme:hme_adv_100T4_cap = 0
*set hme:hme_adv_100fdx_cap = 1
*set hme:hme_adv_100hdx_cap = 0
*set hme:hme_adv_10fdx_cap = 0
set hme:hme_adv_10hdx_cap = 1
set hme:hme_adv_autoneg_cap = 0
The same for eri type interfaces:
*
* set eri driver modes
*
*set eri:adv_100T4_cap = 0
*set eri:adv_100fdx_cap = 1
*set eri:adv_100hdx_cap = 0
*set eri:adv_10fdx_cap = 0
set eri:adv_10hdx_cap = 1
set eri:adv_autoneg_cap = 0

---------PROPORCIONADO POR JACOST -------------
/usr/sbin/ndd -set /dev/bge0 adv_1000fdx_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_1000hdx_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_100fdx_cap 1
/usr/sbin/ndd -set /dev/bge0 adv_100hdx_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_10fdx_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_10hdx_cap 0
/usr/sbin/ndd -set /dev/bge0 adv_autoneg_cap 0

See also Manually setting nic speed / duplex problem Solaris 9 for a complete reference.

Manually setting NIC speed on Sun Solaris 10

Crear un script con las siguientes intrucciones indicando la interface card, en este ejemplo: ce5
La interfase se fijara a full duplex a 100 Mbits/s y se creara un script para mantener los cambios despues de un reboot.

El scripts se crea en /etc/init.d/ como set_fullduplex_ce5.ksh
Realizar un link a /etc/rc2.d/  como S100et_fullduplex_ce5.ksh

#!/bin/ksh  ndd -set /dev/ce instance 5
 ndd -set /dev/ce adv_autoneg_cap  0
 ndd -set /dev/ce adv_100fdx_cap   1
 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_1000fdx_cap  0
 ndd -set /dev/ce adv_1000hdx_cap  0

Ejecutar el script /etc/init.d/set_fullduplex_ce5.ksh
Validar los cambios con el siguiente comando:

# kstat -p ce:5::"/^link_/"
ce:5:ce5:link_asmpause  0
ce:5:ce5:link_duplex    2
ce:5:ce5:link_pause     0
ce:5:ce5:link_speed     100
ce:5:ce5:link_T4        0
ce:5:ce5:link_up        1


O de la siguiente forma: # kstat -p | grep link_ | grep ce5
Configuración full NIC e1000g0 --- Solaris X86 -------- 

ndd -set /dev/e1000g0 adv_1000fdx_cap 0 ndd -set /dev/e1000g0 adv_autoneg_cap 0

ZG-rmanair01 /etc/rc2.d # dladm show-dev e1000g0 link: up speed: 100 Mbps duplex: half e1000g1 link: up speed: 1000 Mbps duplex: full ZG-rmanair01 /etc/rc2.d # ZG-rmanair01 /etc/rc2.d # dladm show-dev e1000g0 link: up speed: 100 Mbps duplex: full e1000g1 link: up speed: 1000 Mbps duplex: full ZG-rmanair01 /etc/rc2.d #

Configurar a 100Mbs Full Duplex(FDX) en 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

Regresar


Random TIPS

MANAGING inetd SERVICES
Become superuser or assume a role that includes the Service Management Profile.
List the properties for the specific service.
# inetadm -l FMRI
Change the property for the service.
# inetadm -m FMRI property-name=value
Example:
# inetadm -m network/telnet tcp_trace=TRUE
# inetadm -l network/telnet

free counters