Inicio Linux & Systems Networks & Infrastructure Cybersecurity Cloud & DevOps SIEM & Monitoring DFIR & Threat Intel Development & Other Todas las categorias Herramientas Proyectos Sobre

Configuracion de red en Solaris

Read in English
Configuracion de red en Solaris

Tabla de contenidos

Bueno traigo un pequeño tutorial de como configurar la dirección IP, Nombre de host, nombre DNS,  en Solaris

Agregamos un direccionamiento IP estatico.

Sintaxis:

text
#ifconfig [Interfaz] [Ip] netmask [Mascara] up

Ejemplo:

text
#ifconfig e1000g0 192.168.1.180 netmask 255.255.255.0 up

Para agregarlo de forma permanente hay que añadirlo al fichero hostname.[Interfaz]

text
#cat >> /etc/hostname.e1000g0
text
192.168.1.180 up

Crear SubInterfaces

Sintaxis:

text
#ifconfig e1000g0 addig [IP] up

ejemplo:

text
#ifconfig e1000g0 addig 192.168.1.185

Elimitar SubInterfaces

text
#ifconfig e1000g0 remove 192.168.1.185

Otra forma de crear SubInterfaces:

Sintaxis:

text
#ifconfig  e1000g0:1 plumb [IP]

Ejemplo:

text
#ifconfig  e1000g0:1 plumb  192.168.1.186

Elimitar SubInterfaces

text
#ifconfig e1000g0:1 unplumb

Para agregarlo de forma permanente hay que añadirlo al fichero hostname.[Interfaz]
Sintaxis:

text
#cat >> /etc/hostname.e1000g0

addif [IP] up

Ejemplo:

text
#cat >> /etc/hostname.e1000g0

addif  192.168.1.186 up

Configuración DHCP

creamos el archivo /etc/dhcp.interfaz

text
#touch /etc/dhcp.e1000g0
text
# echo wait 300 > /etc/dhcp.e100g0

# echo primary > /etc/dhcp.e1000g0

Configuramos el Gateway

text
#route add default [Ip]

Ejemplo

text
#route add default 192.168.1.1
text
add net default: gateway 192.168.1.1

Para mantener el Gateway (aunque me parece que no hace falta)

text
#echo “192.168.1.1″> /etc/defaultrouter

Agregar DNS

para ello vamos a crear o editar si la existiese.

text
#nameserver [Ip servidor DNS]

Ejemplo:

text
#nameserver 192.168.1.1

Para que podamos resolver mediante dns, también tenemos que configurar el archivo nsswitch.conf

en la fila hosts: files le tenemos que agregar dns. quedaría así:

text
#hosts: files dns

Configurar el nombre de dominio.

text
#domainname red-orbita
text
#domainname > /etc/defaultdomain

Configuramos el nombre de HOSTS

text
#hostname rokitoh

editamos el fichero nodename

text
#hostname > /etc/nodename

Tambien podemos configurar el fichero hosts para asociar las direcciones IP’s a los dominios

text
#cat >> /etc/hosts
text
192.168.1.181                   rokitoh1
text
Cntrl + D

Un saludo, rokitoh!

Comentarios