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

SET UP ALOM CARD ON A Sun Fire V440

Configuración para los servers Sun Fire V210, V215, V240, V245, V445, V250, V440.

a) Moverse hasta el directorio de nuestra arquitectura del server:

root@ # cd /usr/platform/`uname -a`/sbin
root@ # pwd
/usr/platform/SUNW,Sun-Fire-V440/sbin
root@ # ls
eeprom fruadm prtdiag scadm trapstat
root@ # ./scadm shownetwork
IP Address: 0.0.0.0
Gateway address: 0.0.0.0
Netmask: 255.255.255.0
Ethernet address: 00:03:ba:d4:cf:e8
root@ #

b) Configurar parametros de red para su acceso remoto a la ALOM

root@ # ./scadm set if_network true
root@ # ./scadm set netsc_tpelinktest true
root@ # ./scadm set netsc_ipaddr 172.18.136.228
root@ # ./scadm set netsc_ipnetmask 255.255.255.0
root@ # ./scadm set netsc_ipgateway 172.18.136.1
root@ # ./scadm set sc_cliprompt aeromexicoqa

root@ # ./scadm shownetwork
IP Address: 172.18.136.228
Gateway address: 172.18.136.1
Netmask: 255.255.255.0
Ethernet address: 00:03:ba:d4:cf:e8

root@ # ./scadm resetrsc

Ahora a testear conectividad vía telnet, una vez que se halla conectado el cable de red a la tarjeta ALOM.

free counters