Certificaciones

Certificaciones
Certificaciones
Mostrando entradas con la etiqueta Solaris. Mostrar todas las entradas
Mostrando entradas con la etiqueta Solaris. Mostrar todas las entradas

miércoles, 31 de agosto de 2016

Migrar de Servidor Sun Fire V440 y Sistema Operativo Solaris 8 a Servidor Sun Sparc T4-1(Solaris10) sin Reinstalación.

Migración de Sistema Operativo, Software Aplicativo y Base de Datos Instalados en un Servidor Sun Fire V440 con Solaris 8 a un Servidor Sun Sparc T4-1 con Solaris 10 sin reinstalación.

El objetivo es llevar todo lo instalado en el servidor Sun Fire V440, Sistema Operativo Solaris 8 y aplicativos Oracle sin tener que reinstalar el software.
El Sistema Operativo Solaris 8 no puede ser instalado en el Servidor Sun Sparc T4-1, la version mínima soportada en este servidor es Solaris 10 10/09(u8), No podemos cambiar la version del software aplicativo y bases de datos ni se cuenta con los medios para una reinstalación.

Para lograr esto sin perder la información se instaló primero el Sistema Operativo Solaris 10 u13 en el servidor Sun Sparc T4-1 con el ultimo set de parches disponible.
Luego procedí a tomar una imagen flar completa del Sistema Operativo Solaris 8 2/04 en el servidor Sun Fire V440:
La imagen flar fue creada en los discos internos del servidor Sun Fire V440 y posteriormente copiado al Servidor T4-1

Para crear la imagen flar me conecté al Servidor Sun Fire V440 con usuario root y ejecuté el comando flarcreate de la siguiente manera:

    **La ejecución de este comando requiere usuario root y debemos estar posicionados en el directorio raiz /

    root@roatan # cd /

    root@roatan # flarcreate -S -n s8-roatan /flar/s8-roatan.flar
    Determining which filesystems will be included in the archive...
    Creating the archive...
    cpio: File size of "etc/mnttab" has
    increased by 463
    2756850 blocks
    1 error(s)
    Archive creation complete.

Una vez con la imagen flar creada en el servidor Sun Fire V440, copié el archivo flar a uno de los discos internos del servidor Sparc T4-1.
Me conecté al servidor T4-1 que tiene nombre de host guanaja y procedí con la creación de la zona para albergar el sistema operativo y aplicativos del servidor V440.

Cree la Zona para solaris 8 (branded zone) de la siguiente manera:
#el nombre de la zona se definió como s8-roatan, s8 versión de sistema operativo y roatan el nombre original del host
root@guanaja # zonecfg -z s8-roatan

#se creo una nueva configuración de zona de solaris8 usando el template SUNWsolaris8.
create -t SUNWsolaris8

# se definió el path de instalación de la zona
set zonepath=/zonas/roatan
set autoboot=true

#se seteó la dirección ip para la zona como interface de red virtual heredada de la zona global. aqui se cambió la ip original
add net
set address=172.16.1.18
set physical=bge0
set defrouter=172.16.1.1
end

#debido a que hay aplicativos en el Sistema operativo Solaris 8 instalado cuya licencia esta amarrada al hostid del equipo se definió el parametro hostid en la zona y se seteo con el mismo valor del servidor físico v440
add attr
set name=hostid
set type=string
set value=83123e3e
end
# se definió el parametro machine type para que quedará con la especificación del hardware original Sun Fire V440(sun4u)
add attr
set name=machine
set type=string
set value=sun4u
end

verify

#se salvó la configuración de la zona
commit
exit

#validé la información de definición de la zona
root@guanaja # zonecfg -z s8-roatan info
    zonename: s8-roatan
    zonepath: /zonas/roatan
    brand: solaris8
    autoboot: true
    bootargs:
    pool:
    limitpriv:
    scheduling-class:
    ip-type: shared
    hostid:
    net:
        address: 172.16.1.18
        physical: igb0
        defrouter: 172.16.1.1
    attr:
        name: hostid
        type: string
        value: 83123e3e
    attr:
        name: machine
        type: string
        value: sun4u
   
#exportamos la configuración de la zona para tener un respaldo de la misma
root@guanaja # zonecfg -z s8-roatan export > s8-roatan.config


#Una vez con la zona creada y el archivo imagen flar en el servidor procedimos a instalar la zona utilizando la imagen original del servidor Sun Fire v440, este procedimiento tomó al rededor de 2 horas
#Esta instalación se ejecutó de la siguiente manera:

root@guanaja # zoneadm -z s8-roatan install -p -a /flar/s8_roatan.flar

#despues de instalar la zona se procedió con el boot de la misma con el comando zoneadm boot
root@guanaja # zoneadm -z s8-roatan boot

#validamos que la zona hiso boot
root@guanaja # zoneadm list -icv

  ID NAME       STATUS     PATH                           BRAND    IP   
   0 global           running         /                                    native      shared
   1 s8-roatan     running         /zonas/roatan                 solaris8   shared

#Despues de esto procedimos a hacer login a la zona para validar la instalación y configuración de la misma con el comando zlogin:

root@guanaja # zlogin s8-roatan
[Connected to zone 's8-roatan' pts/1]
Your password will expire in 5 days.
Last login: Wed Jan 30 23:54:08 from 172.16.1.3
Sourcing //.profile-EIS.....
root@roatan # netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              172.16.1.1           UG        1        429          
172.16.1.0           172.16.1.18          U         1         51 igb0:1   
224.0.0.0            172.16.1.18          U         1          0 igb0:1   
127.0.0.1            127.0.0.1            UH        3          9 lo0:1    

root@roatan # uname -X
System = SunOS
Node = roatan
Release = 5.8
KernelID = Generic_Virtual
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 64

La zona fue instalada y todos los aplicativos iniciaron sin problemas, la ventana para esta actividad tomó 12 horas desde el inició de la creación de la imagen flar hasta las pruebas finales de los usuarios.

Despues de esto y un periodó de validación de una semana el servidor Sun Fire V440 fue reconfigurado para ambiente de desarrollo y test del aplicativo y base de datos.
  

miércoles, 27 de julio de 2016

Solaris 10 VNC: Script para Habilitar VNC en Solaris 10

Solaris ofrece muchas interfaces de acceso remoto como ssh, X11, server remote redirection, etc.
En muchas ocasiones nos es requerido ejecutar tareas o procesos sin que estas se pierdan o se detengan cuando se pierde la conexion al Servidor o Sistema Operativo. Para esto lo mejor es usar VNC, para lo cual Solaris 10 ya incluye su propio vnc basado en servidor X standard  lo cual nos permite redireccionar la pantalla o display en modo virtual a traves de vnc como si fuera un X Display.
A continuación presento un script el cual pueden copiar y ejecutar en el Sistema Operativo Solaris 10 para habilitar el xvnc sin tener que instalar software VNC de terceros:

#!/bin/sh
#
# habilitavnc.sh
# Script para habilitar el vnc en Solaris 10
#
# Ejecutar este script con usuario root
#
# Despues de ejecutar el script puede ingresar con VNC Viewer a
# la ip del servidor a los display :1 y :2
#

# Agrega el display 1 a la configuracion del vnc

svccfg -s application/x11/x11-server add display1
svccfg -s application/x11/x11-server:display1 addpg options application
svccfg -s application/x11/x11-server:display1 addpropvalue options/server astring: "/usr/X11/bin/Xvnc"
svccfg -s application/x11/x11-server:display1 addpropvalue options/server_args astring: '"SecurityTypes=None"'

# Agrega el display 2 a la configuracion del vnc, para poder
# utilizar dos display

svccfg -s application/x11/x11-server add display2
svccfg -s application/x11/x11-server:display2 addpg options application
svccfg -s application/x11/x11-server:display2 addpropvalue options/server astring: "/usr/X11/bin/Xvnc"
svccfg -s application/x11/x11-server:display2 addpropvalue options/server_args astring: '"SecurityTypes=None"'
svccfg -s application/x11/x11-server:display2 addpropvalue options/server_args astring: '"-alwaysshared"'

# Configura el dtlogin para que cargue configuración en cada
# reboot

if [ ! -d /etc/dt/config ] ; then
        mkdir -p /etc/dt/config
fi
if [ ! -f /etc/dt/config/Xservers ] ; then
        cp /usr/dt/config/Xservers /etc/dt/config/Xservers
fi

echo "   :1   Local local_uid@none root /usr/X11/bin/Xserver :1" >> /etc/dt/config/Xservers
echo "   :2   Local local_uid@none root /usr/X11/bin/Xserver :2" >> /etc/dt/config/Xservers

pkill -HUP dtlogin

lunes, 18 de julio de 2016

Administración de Privilegios y Roles en Solaris, RBAC

Se puede dar privilegios especificos a usuarios no root para que ejecuten tareas avanzadas o solo permitidas a usuarios root, esto se puede completar con los siguientes y sencillos pasos:
1.
Crear una Cuenta de Role.
2.
Setear Password a la cuenta Role.
3.
Editar el archivo /etc/security/prof_attr y crear o buscar el profile con la descripcion de las tareas que queremos permitir ejecutar al usuario.
4.
Editar el archivo /etc/security/exec_attr para ver o definir lo que el profile puede hacer o ejecutar.
5.
Asociar el profile con la cuenta de role con el siguiente comando /usr/bin/rolemod.
6.
Agregar el role al usario con el comando usermod.

Ejemplo:

Usar RBAC para permitir a un usuario general o no root reiniciar o apagar el servidor en ventanas de mantenimiento.
Rolename:  mantenimiento
Username:  operador
Profile Name: Maintenance and Repair

1. Crear la cuenta de role:

# roleadd -d /export/home/mantenimiento -m mantenimiento
             
Asignar password a la cuenta de role

# passwd mantenimiento
        
2. validar el profil Maintenance and Repair.

Ver el archivo /etc/security/prof_attr y buscar la linea de Maintenance and Repair:

Maintenance and Repair:::Maintain and repair a system:auths=solaris.smf.manage.system-log,solaris.label.range,solaris.admin.logsvc.write,solaris.admin.logsvc.read,solaris.compsys.write,solaris.compsys.read,solaris.system.shutdown;help=RtMaintAndRepair.html

3. Validar los atributos de ejecución en el archivo /etc/security/exec_attr.
Este define el comando o script a ejecutar y el uid que el role asume al ejecutarlo.

Ver el archivo /etc/security/exec_attr:

Maintenance and Repair:suser:cmd:::/sbin/bootadm:uid=0
Maintenance and Repair:suser:cmd:::/sbin/init:euid=0
Maintenance and Repair:suser:cmd:::/usr/bin/date:euid=0
Maintenance and Repair:suser:cmd:::/usr/bin/ldd:euid=0
Maintenance and Repair:suser:cmd:::/usr/bin/mdb:euid=0
Maintenance and Repair:suser:cmd:::/usr/bin/vmstat:euid=0
Maintenance and Repair:suser:cmd:::/usr/sbin/eeprom:euid=0
Maintenance and Repair:suser:cmd:::/usr/sbin/halt:euid=0
Maintenance and Repair:suser:cmd:::/usr/sbin/poweroff:uid=0
Maintenance and Repair:suser:cmd:::/usr/sbin/prtconf:euid=0
Maintenance and Repair:suser:cmd:::/usr/sbin/reboot:uid=0
Maintenance and Repair:suser:cmd:::/usr/sbin/syslogd:euid=0

4. Use el comando rolemod para agregar los profiles Maintenance and Repair y All al role de la siguiente manera:

# rolemod -P "Maintenance and Repair",All Mantenimiento

5. El comando rolemod actualiza el archivo /etc/user_attr file. Verifique que los cambios fueron hechos.

# more /etc/user_attr 

mantenimiento::::type=role;profiles=Maintenance and Repair,All
operador::::type=normal;roles=mentenimiento

Aqui puede ver facilmente que el role mantenimiento a sido asignado al usuario operador. El profile Maintenance and Repair esta ahora asociado al role mantenimiento.

6. Use el comando usermod para agregar el role al usuario.

# usermod -R mantenimiento <username>

Listo!

Instrucciones para el Usuario:

Debe estar logeado con la cuenta de usuario requerida (en este caso usuario operador).

Cambiar el usuario al Role de la siguiente manera:

$ su - mantenimiento
Password: <enter password>

Una vez que se ha autenticado con el Role puede ejecutar cualquier comando del Profile Maintenance and Repair de la siguiente manera:

$ /sbin/init 5 #para apagar
$ /usr/sbin/reboot #para reiniciar

etc!

Para salir del Role y regresar al usuario inicial escriba exit.

viernes, 15 de julio de 2016

Solaris11 Habilitar Desktop y VNC

# En una instalación normal del Sistema Operativo Solaris 11 este no incluye los paquetes de Escritorio ni conexion remota vnc
# Para habilitar el acceso a Desktop desde consola o remotamente desde VNC es requisito instalar primero el paquete solaris-desktop

# 1) Instalar Paquete solaris-desktop a Sistema Operativo
# Para esto puede ser requerido configurar el support-repository antes de ejecutar el comando pkg install

pkg install solaris-desktop

# 2) Configurar el archivo /etc/gdm/custom.conf con las Siguientes Opciones

[xdmcp]
Enable=true
[security]
DisallowTCP=false
AllowRoot=true
AllowRemoteRoot=true

# 3) Habilitar el Servicio xvnc-inetd
inetadm -e xvnc-inetd

# 4) Reiniciar el servicio svc:/application/graphical-login/gdm:default

svcadm restart svc:/application/graphical-login/gdm:default

# 5) Configurar los servicios x11-server, xvnc-inetd :

svccfg -s x11-server setprop options/tcp_listen=true
svccfg -s xvnc-inetd setprop inetd/wait=true
svccfg -s xvnc-inetd
setprop inetd_start/exec=astring:"/usr/bin/Xvnc -geometry 1280x720 -inetd -query localhost -once securitytypes=none"
exit

# 6) Reiniciar los servicio gdm y xvnc-inetd

svcadm restart gdm xvnc-inetd
svcadm disable gdm xvnc-inetd
svcadm enable gdm xvnc-inetd

# Con esto se puede probar ya el acceso con cliente vnc o mediante consola al desktop del servidor.

martes, 20 de enero de 2015

Configuración IPMP con Vlan Tag en Solaris 10


Configuración IPMP con Vlan Tag en Solaris 10:


Interfaces de Red a Utilizar:



OS Interface
PCI Slot/Port
VLAN trunk
Comments
nxge-0
XAUI 1
2,10
VPN and ClInterconnect vlans
nxge-1
XAUI 2
200,15
Backup and Public vlans
ixgbe-0
PCI/ETH 0
200,15
Backup and Public vlans
Ixgbe-1
PCI/ETH 1
2,10
VPN and ClInterconnect vlans
 


Redes a Configurar:



1.1.1.   VPN - Private Network

Hostname
FO IP-Address
1st NIC
Vlan 2
IP-Address
2nd NIC
Vlan 2
IP-Address
IPMP Group
test-1
10.1.51.1
nxge2000
10.1.51.11
ixgbe2001
10.1.51.21
vpn
test-2
10.1.51.2
nxge2000
10.1.51.12
ixgbe2001
10.1.51.22
vpn
test-3
10.1.52.1
nxge2000
10.1.52.11
ixgbe2001
10.1.52.21
vpn

1.1.2.   PUB - Public Network

Hostname
FO IP-Address
1st NIC
Vlan 15
IP-Address
2nd NIC
Vlan 15
IP-Address
IPMP Group
test-1-pub
172.28.10.103
nxge15001
172.28.10.104
ixgbe15000
172.28.10.105
pub
test-2-pub
172.28.10.106
nxge15001
172.28.10.107
ixgbe15000
172.28.10.108
pub
test-3-pub
172.28.10.109
nxge15001
172.28.10.110
ixgbe15000
172.28.10.111
pub

1.1.3.   BAK - Backup Network

Hostname
FO IP-Address
1st NIC
Vlan 200
IP-Address
2nd NIC
Vlan 200
IP-Address
IPMP Group
test-1-bak
10.2.51.1
nxge200001
10.2.51.11
ixgbe200100
10.2.51.21
bak
test-2-bak
10.2.51.2
nxge200001
10.2.51.12
ixgbe200100
10.2.51.22
bak
test-3-bak
10.2.52.1
nxge200001
10.2.52.11
ixgbe200100
10.2.52.21
bak
 

Se dejó el mismo Archivo /etc/host en todos los nodos:




# Red Priv
10.1.51.1           test-1 test-1. SYB_LIC
10.1.51.11          test-1-nxge0  test-1-nxge0.2    test-1-nxge2000
10.1.51.21          test-1-ixgbe1 test-1-ixgbe1.2   test-1-ixgbe2001
10.1.51.2           test-2 test-2.   
10.1.51.12          test-2-nxge0  test-2-nxge0.2    test-2-nxge2000
10.1.51.22          test-2-ixgbe1 test-2-ixgbe1.2   test-2-ixgbe2001
10.1.52.1           test-3 test-3.
10.1.52.11          test-3-nxge0  test-3-nxge0.2    test-3-nxge2000
10.1.52.21          test-3-ixgbe1 test-3-ixgbe1.2   test-3-ixgbe2001

# Red public
172.28.10.103       test-1-pub
172.28.10.104       test-1-pub-nxge1  test-1-pub-nxge1.15     test-1-pub-nxge15001
172.28.10.105       test-1-pub-ixgbe0 test-1-pub-ixgbe0.15    test-1-pub-ixgbe15000
172.28.10.106       test-2-pub
172.28.10.107       test-2-pub-nxge1  test-2-pub-nxge1.15     test-2-pub-nxge15001
172.28.10.108       test-2-pub-ixgbe0 test-2-pub-ixgbe0.15    test-2-pub-ixgbe15000
172.28.10.109       test-3-pub
172.28.10.110       test-3-pub-nxge1  test-3-pub-nxge1.15     test-3-pub-nxge15001
172.28.10.111       test-3-pub-ixgbe0 test-3-pub-ixgbe0.15    test-3-pub-ixgbe15000

# Red backup
10.2.51.1           test-1-bak
10.2.51.11          test-1-bak-nxge1  test-1-bak-nxge1.200    test-1-bak-nxge200001
10.2.51.21          test-1-bak-ixgbe0 test-1-bak-ixgbe0.200   test-1-bak-ixgbe200000
10.2.51.2           test-2-bak
10.2.51.12          test-2-bak-nxge1  test-2-bak-nxge1.200    test-2-bak-nxge200001
10.2.51.22          test-2-bak-ixgbe0 test-2-bak-ixgbe0.200   test-2-bak-ixgbe200000
10.2.52.1           test-3-bak
10.2.52.11          test-3-bak-nxge1  test-3-bak-nxge1.200    test-3-bak-nxge200001
10.2.52.21          test-3-bak-ixgbe0 test-3-bak-ixgbe0.200   test-3-bak-ixgbe200000
 


Configuración IPMP en cada nodo:

Nodo test-1:





1.1.1.   IPMP Configuration

/etc/hostname.nxge2000
group priv
set test-1 netmask + broadcast + up
addif test-1-nxge2000 netmask + broadcast + -failover deprecated up

/etc/hostname.ixgbe2001
group priv
set test-1-ixgbe2001 netmask + broadcast + -failover deprecated up
standby

/etc/hostname.nxge200001
group bak
set test-1-bak netmask + broadcast + up
addif test-1-nxge200001 netmask + broadcast + -failover deprecated up

/etc/hostname.ixgbe200000
group bak
set test-1-ixgbe200000 netmask + broadcast + -failover deprecated up
standby

/etc/hostname.nxge15001
group pub
set test-1-pub netmask + broadcast + up
addif test-1-nxge15001 netmask + broadcast + -failover deprecated up

/etc/hostname.ixgbe15000
group pub
set test-1-ixgbe15000 netmask + broadcast + -failover deprecated up
standby

/etc/init.d/ipmp.targets
# To install:
# 1) cp ipmp.targets /etc/init.d
# 2) perform edits on the script as required (e.g: add TARGETS)
# 3) chmod 744 /etc/init.d/ipmp.targets
# 4) chown root:sys /etc/init.d/ipmp.targets
# 5) ln /etc/init.d/ipmp.targets /etc/rc2.d/S70ipmp.targets

# cat /etc/init.d/ipmp.targets
# /bin/sh

# Edit the following IPMP test TARGETS to suit your needs.
# To install:
# 1) cp ipmp.targets /etc/init.d
# 2) perform edits on the script as required (e.g: add TARGETS)
# 3) chmod 744 /etc/init.d/ipmp.targets
# 4) chown root:sys /etc/init.d/ipmp.targets
# 5) ln /etc/init.d/ipmp.targets /etc/rc2.d/S70ipmp.targets
#

# default targets for SCP's
TARGETS="test-1 test-3 test-2 ccp-1 test-1-pub test-3-pub test-2-pub ccp-m1-pub"

HOSTNAME=`hostname`
echo "Will add static routes for host $HOSTNAME"
if [ $HOSTNAME = "ccp-m1" ]; then
        TARGETS="dp-1 test-3 test-2 test-1-pub test-3-pub test-2-pub"
fi
if [ $HOSTNAME = "test-1" ]; then
        TARGETS="test-3 test-2 ccp-1 ccp-m1-pub test-3-pub test-2-pub"
fi
if [ $HOSTNAME = "test-2" ]; then
        TARGETS="test-1 test-3 ccp-1 test-1-pub ccp-m1-pub test-3-pub"
fi
if [ $HOSTNAME = "test-3" ]; then
        TARGETS="test-1 test-2 ccp-1 test-1-pub ccp-m1-pub test-2-pub"
fi

case "$1" in
    'start')
        /usr/bin/echo "Adding static routes for use as IPMP targets"
        for target in $TARGETS; do
                /usr/sbin/route add -host $target $target
        done
        ;;
    'stop')
        /usr/bin/echo "Removing static routes for use as IPMP targets"
        for target in $TARGETS; do
                /usr/sbin/route delete -host $target $target
        done
        ;;
esac

# nevala - Saturday January 27 23:36:25 GMT 2007
ifconfig nxge15001 netmask 255.255.255.0
ifconfig ixgbe15001 netmask 255.255.255.0



 # ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
ixgbe2001: flags=269040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 1500 index 4
    inet 10.1.51.21 netmask ffe00000 broadcast 10.31.255.255
    groupname priv
    ether 0:10:e0:58:73:8e
ixgbe15000: flags=269000842<BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 0 index 2
    inet 0.0.0.0 netmask 0
    groupname pub
    ether 0:10:e0:58:73:8e
ixgbe20001: flags=201008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4,CoS> mtu 1500 index 8
    inet 172.16.0.67 netmask ffffffc0 broadcast 172.16.0.127
    ether 0:10:e0:58:73:8e
ixgbe200000: flags=269000842<BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 0 index 3
    inet 0.0.0.0 netmask 0
    groupname bak
    ether 0:10:e0:58:73:8e
nxge2000: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 6
    inet 10.1.51.1 netmask ffe00000 broadcast 10.31.255.255
    groupname priv
    ether 0:10:e0:58:73:8e
nxge2000:1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 6
    inet 10.1.51.11 netmask ffe00000 broadcast 10.31.255.255
nxge2000:2: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 6
    inet 10.1.51.101 netmask ffe00000 broadcast 10.31.255.255
nxge2000:3: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 6
    inet 10.1.51.102 netmask ffe00000 broadcast 10.31.255.255
nxge10000: flags=201008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4,CoS> mtu 1500 index 9
    inet 172.16.0.131 netmask ffffffc0 broadcast 172.16.0.191
    ether 0:10:e0:58:73:8e
nxge15001: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
    inet 172.28.10.16 netmask ffffffc0 broadcast 172.28.10.63
    groupname pub
    ether 0:10:e0:58:73:8e
nxge15001:1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
    inet 0.0.0.0 netmask 0
nxge15001:2: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 5
    inet 172.28.10.30 netmask ffffffc0 broadcast 172.28.10.63
nxge15001:3: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 5
    inet 172.28.10.6 netmask ffffffc0 broadcast 172.28.10.63
nxge15001:4: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 5
    inet 172.28.10.37 netmask ffffffc0 broadcast 172.28.10.63
nxge200001: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 7
    inet 10.2.51.1 netmask fffff800 broadcast 10.2.55.255
    groupname bak
    ether 0:10:e0:58:73:8e
nxge200001:1: flags=201000842<BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 7
    inet 0.0.0.0 netmask 0
usbecm0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 10
    inet 169.254.182.77 netmask ffffff00 broadcast 169.254.255.255
    ether 2:21:28:57:47:17
clprivnet0: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 11
    inet 172.16.2.3 netmask ffffff00 broadcast 172.16.2.255
    ether 0:0:0:0:0:3


Nodo test-2:



1.1.1.   IPMP Configuration

/etc/hostname.nxge2000
group priv
set test-2 netmask + broadcast + up
addif test-2-nxge2000 netmask + broadcast + -failover deprecated up

/etc/hostname.ixgbe2001
group priv
set test-2-ixgbe2001 netmask + broadcast + -failover deprecated up
standby

/etc/hostname.nxge200001
group bak
set test-2-bak netmask + broadcast + up
addif test-2-nxge200001 netmask + broadcast + -failover deprecated up

/etc/hostname.ixgbe200000
group bak
set test-2-ixgbe200000 netmask + broadcast + -failover deprecated up
standby

/etc/hostname.nxge15001
group pub
set test-2-pub netmask + broadcast + up
addif test-2-nxge15001 netmask + broadcast + -failover deprecated up

/etc/hostname.ixgbe15000
group pub
set test-2-ixgbe15000 netmask + broadcast + -failover deprecated up
standby

/etc/init.d/ipmp.targets
# To install:
# 1) cp ipmp.targets /etc/init.d
# 2) perform edits on the script as required (e.g: add TARGETS)
# 3) chmod 744 /etc/init.d/ipmp.targets
# 4) chown root:sys /etc/init.d/ipmp.targets
# 5) ln /etc/init.d/ipmp.targets /etc/rc2.d/S70ipmp.targets

# cat /etc/init.d/ipmp.targets
# /bin/sh

# Edit the following IPMP test TARGETS to suit your needs.
# To install:
# 1) cp ipmp.targets /etc/init.d
# 2) perform edits on the script as required (e.g: add TARGETS)
# 3) chmod 744 /etc/init.d/ipmp.targets
# 4) chown root:sys /etc/init.d/ipmp.targets
# 5) ln /etc/init.d/ipmp.targets /etc/rc2.d/S70ipmp.targets
#

# default targets for SCP's
TARGETS="test-1 test-3 test-2 ccp-1 test-1-pub test-3-pub test-2-pub ccp-m1-pub"

HOSTNAME=`hostname`
echo "Will add static routes for host $HOSTNAME"
if [ $HOSTNAME = "ccp-m1" ]; then
        TARGETS="dp-1 test-3 test-2 test-1-pub test-3-pub test-2-pub"
fi
if [ $HOSTNAME = "test-1" ]; then
        TARGETS="test-3 test-2 ccp-1 ccp-m1-pub test-3-pub test-2-pub"
fi
if [ $HOSTNAME = "test-2" ]; then
        TARGETS="test-1 test-3 ccp-1 test-1-pub ccp-m1-pub test-3-pub"
fi
if [ $HOSTNAME = "test-3" ]; then
        TARGETS="test-1 test-2 ccp-1 test-1-pub ccp-m1-pub test-2-pub"
fi

case "$1" in
    'start')
        /usr/bin/echo "Adding static routes for use as IPMP targets"
        for target in $TARGETS; do
                /usr/sbin/route add -host $target $target
        done
        ;;
    'stop')
        /usr/bin/echo "Removing static routes for use as IPMP targets"
        for target in $TARGETS; do
                /usr/sbin/route delete -host $target $target
        done
        ;;
esac

# nevala - Saturday January 27 23:36:25 GMT 2007
ifconfig nxge15001 netmask 255.255.255.0
ifconfig ixgbe15001 netmask 255.255.255.0



# ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
ixgbe2001: flags=269040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 1500 index 4
    inet 10.1.51.22 netmask ffe00000 broadcast 10.31.255.255
    groupname priv
    ether 0:10:e0:58:75:46
ixgbe15000: flags=269000842<BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 0 index 2
    inet 0.0.0.0 netmask 0
    groupname pub
    ether 0:10:e0:58:75:46
ixgbe20001: flags=201008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4,CoS> mtu 1500 index 8
    inet 172.16.0.66 netmask ffffffc0 broadcast 172.16.0.127
    ether 0:10:e0:58:75:46
ixgbe200000: flags=269000842<BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 0 index 3
    inet 0.0.0.0 netmask 0
    groupname bak
    ether 0:10:e0:58:75:46
nxge2000: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 6
    inet 10.1.51.2 netmask ffe00000 broadcast 10.31.255.255
    groupname priv
    ether 0:10:e0:58:75:46
nxge2000:1: flags=209040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,CoS> mtu 1500 index 6
    inet 10.1.51.12 netmask ffe00000 broadcast 10.31.255.255
nxge10000: flags=201008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4,CoS> mtu 1500 index 9
    inet 172.16.0.130 netmask ffffffc0 broadcast 172.16.0.191
    ether 0:10:e0:58:75:46
nxge15001: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 5
    inet 172.28.10.53 netmask ffffffc0 broadcast 172.28.10.63
    groupname pub
    ether 0:10:e0:58:75:46
nxge15001:1: flags=201000842<BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 5
    inet 0.0.0.0 netmask 0
nxge200001: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 7
    inet 10.2.51.2 netmask fffff800 broadcast 10.2.55.255
    groupname bak
    ether 0:10:e0:58:75:46
nxge200001:1: flags=201000842<BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 7
    inet 0.0.0.0 netmask 0
usbecm0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 10
    inet 169.254.182.77 netmask ffffff00 broadcast 169.254.255.255
    ether 2:21:28:57:47:17
clprivnet0: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 11
    inet 172.16.2.2 netmask ffffff00 broadcast 172.16.2.255
    ether 0:0:0:0:0:2


Nodo test-3:



1.1.1.   IPMP Configuration

/etc/hostname.nxge2000
group priv
set test-3 netmask + broadcast + up
addif test-3-nxge2000 netmask + broadcast + -failover deprecated up

/etc/hostname.ixgbe2001
group priv
set test-3-ixgbe2001 netmask + broadcast + -failover deprecated up
standby

/etc/hostname.nxge200001
group bak
set test-3-bak netmask + broadcast + up
addif test-3-nxge200001 netmask + broadcast + -failover deprecated up

/etc/hostname.ixgbe200000
group bak
set test-3-ixgbe200000 netmask + broadcast + -failover deprecated up
standby

/etc/hostname.nxge15001
group pub
set test-3-pub netmask + broadcast + up
addif test-3-nxge15001 netmask + broadcast + -failover deprecated up

/etc/hostname.ixgbe15000
group pub
set test-3-ixgbe15000 netmask + broadcast + -failover deprecated up
standby

/etc/init.d/ipmp.targets
# To install:
# 1) cp ipmp.targets /etc/init.d
# 2) perform edits on the script as required (e.g: add TARGETS)
# 3) chmod 744 /etc/init.d/ipmp.targets
# 4) chown root:sys /etc/init.d/ipmp.targets
# 5) ln /etc/init.d/ipmp.targets /etc/rc2.d/S70ipmp.targets

# cat /etc/init.d/ipmp.targets
# /bin/sh

# Edit the following IPMP test TARGETS to suit your needs.
# To install:
# 1) cp ipmp.targets /etc/init.d
# 2) perform edits on the script as required (e.g: add TARGETS)
# 3) chmod 744 /etc/init.d/ipmp.targets
# 4) chown root:sys /etc/init.d/ipmp.targets
# 5) ln /etc/init.d/ipmp.targets /etc/rc2.d/S70ipmp.targets
#

# default targets for SCP's
TARGETS="test-1 test-3 test-2 ccp-1 test-1-pub test-3-pub test-2-pub ccp-m1-pub"

HOSTNAME=`hostname`
echo "Will add static routes for host $HOSTNAME"
if [ $HOSTNAME = "ccp-m1" ]; then
        TARGETS="dp-1 test-3 test-2 test-1-pub test-3-pub test-2-pub"
fi
if [ $HOSTNAME = "test-1" ]; then
        TARGETS="test-3 test-2 ccp-1 ccp-m1-pub test-3-pub test-2-pub"
fi
if [ $HOSTNAME = "test-2" ]; then
        TARGETS="test-1 test-3 ccp-1 test-1-pub ccp-m1-pub test-3-pub"
fi
if [ $HOSTNAME = "test-3" ]; then
        TARGETS="test-1 test-2 ccp-1 test-1-pub ccp-m1-pub test-2-pub"
fi

case "$1" in
    'start')
        /usr/bin/echo "Adding static routes for use as IPMP targets"
        for target in $TARGETS; do
                /usr/sbin/route add -host $target $target
        done
        ;;
    'stop')
        /usr/bin/echo "Removing static routes for use as IPMP targets"
        for target in $TARGETS; do
                /usr/sbin/route delete -host $target $target
        done
        ;;
esac

# nevala - Saturday January 27 23:36:25 GMT 2007
ifconfig nxge15001 netmask 255.255.255.0
ifconfig ixgbe15001 netmask 255.255.255.0


 # ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
ixgbe2001: flags=269040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 1500 index 4
    inet 10.1.52.21 netmask ffe00000 broadcast 10.31.255.255
    groupname priv
    ether 0:10:e0:58:27:26
ixgbe15000: flags=269000842<BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 0 index 2
    inet 0.0.0.0 netmask 0
    groupname pub
    ether 0:10:e0:58:27:26
ixgbe20001: flags=201008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4,CoS> mtu 1500 index 8
    inet 172.16.0.65 netmask ffffffc0 broadcast 172.16.0.127
    ether 0:10:e0:58:27:26
ixgbe200000: flags=269000842<BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 0 index 3
    inet 0.0.0.0 netmask 0
    groupname bak
    ether 0:10:e0:58:27:26
nxge2000: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 6
    inet 10.1.52.1 netmask ffe00000 broadcast 10.31.255.255
    groupname priv
    ether 0:10:e0:58:27:26
nxge2000:1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 6
    inet 10.1.52.11 netmask ffe00000 broadcast 10.31.255.255
nxge2000:2: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 6
    inet 10.1.52.105 netmask ffe00000 broadcast 10.31.255.255
nxge2000:3: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 6
    inet 10.1.52.101 netmask ffe00000 broadcast 10.31.255.255
nxge10000: flags=201008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4,CoS> mtu 1500 index 9
    inet 172.16.0.129 netmask ffffffc0 broadcast 172.16.0.191
    ether 0:10:e0:58:27:26
nxge15001: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
    inet 172.28.10.46 netmask ffffffc0 broadcast 172.28.10.63
    groupname pub
    ether 0:10:e0:58:27:26
nxge15001:1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
    inet 0.0.0.0 netmask 0
nxge15001:2: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 5
    inet 172.28.10.49 netmask ffffffc0 broadcast 172.28.10.63
nxge15001:3: flags=1001040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,FIXEDMTU> mtu 1500 index 5
    inet 172.28.10.42 netmask ffffffc0 broadcast 172.28.10.63
nxge200001: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 7
    inet 10.2.52.1 netmask fffff800 broadcast 10.2.55.255
    groupname bak
    ether 0:10:e0:58:27:26
nxge200001:1: flags=201000842<BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 7
    inet 0.0.0.0 netmask 0
clprivnet0: flags=1008843<UP,BROADCAST,RUNNING,MULTICAST,PRIVATE,IPv4> mtu 1500 index 10
    inet 172.16.2.1 netmask ffffff00 broadcast 172.16.2.255
    ether 0:0:0:0:0:1
usbecm0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 11
    inet 169.254.182.77 netmask ffffff00 broadcast 169.254.255.255
    ether 2:21:28:57:47:17