configuracion de red en solaris _ red-orbita

4
19/1/2015 Configuracion de red en Solaris | RedOrbita http://redorbita.com/?p=4816 1/4 Configuracion de red en Solaris Posted on 26 febrero, 2012 by rokitoh 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: Ejemplo: Para agregarlo de forma permanente hay que añadirlo al fichero hostname.[Interfaz] Crear SubInterfaces Sintaxis: ejemplo: #ifconfig [Interfaz] [Ip] netmask [Mascara] up #ifconfig e1000g0 192.168.1.180 netmask 255.255.255.0 up #cat >> /etc/hostname.e1000g0 192.168.1.180 up #ifconfig e1000g0 addig [IP] up #ifconfig e1000g0 addig 192.168.1.185

Upload: willrei9677

Post on 04-Dec-2015

4 views

Category:

Documents


2 download

DESCRIPTION

Configurar la red con solaris

TRANSCRIPT

Page 1: Configuracion de Red en Solaris _ Red-Orbita

19/1/2015 Configuracion de red en Solaris | Red­Orbita

http://red­orbita.com/?p=4816 1/4

Configuracion de red en SolarisPosted on 26 febrero, 2012 by rokitoh

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:

Ejemplo:

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

Crear SubInterfaces

Sintaxis:

ejemplo:

#ifconfig [Interfaz] [Ip] netmask [Mascara] up“#ifconfig e1000g0 192.168.1.180 netmask 255.255.255.0 up“#cat >> /etc/hostname.e1000g0

“192.168.1.180 up““

#ifconfig e1000g0 addig [IP] up

“#ifconfig e1000g0 addig 192.168.1.185

Page 2: Configuracion de Red en Solaris _ Red-Orbita

19/1/2015 Configuracion de red en Solaris | Red­Orbita

http://red­orbita.com/?p=4816 2/4

Elimitar SubInterfaces

Otra forma de crear SubInterfaces:

Sintaxis:

Ejemplo:

Elimitar SubInterfaces

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

Ejemplo:

Configuración DHCP

creamos el archivo /etc/dhcp.interfaz

“ #ifconfig e1000g0 remove 192.168.1.185“#ifconfig  e1000g0:1 plumb [IP]

“#ifconfig  e1000g0:1 plumb  192.168.1.186

“#ifconfig e1000g0:1 unplumb

“#cat >> /etc/hostname.e1000g0addif [IP] up“#cat >> /etc/hostname.e1000g0addif  192.168.1.186 up“#touch /etc/dhcp.e1000g0

“# echo wait 300 > /etc/dhcp.e100g0# echo primary > /etc/dhcp.e1000g0

Page 3: Configuracion de Red en Solaris _ Red-Orbita

19/1/2015 Configuracion de red en Solaris | Red­Orbita

http://red­orbita.com/?p=4816 3/4

Configuramos el Gateway

Ejemplo

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

Agregar DNS

para ello vamos a crear o editar si la existiese.

Ejemplo:

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í:

Configurar el nombre de dominio.

“ #route add default [Ip]“#route add default 192.168.1.1“add net default: gateway 192.168.1.1“#echo “192.168.1.1″> /etc/defaultrouter

“#nameserver [Ip servidor DNS]“#nameserver 192.168.1.1“#hosts: files dns

“#domainname red­orbita

“#domainname > /etc/defaultdomain

Page 4: Configuracion de Red en Solaris _ Red-Orbita

19/1/2015 Configuracion de red en Solaris | Red­Orbita

http://red­orbita.com/?p=4816 4/4

Configuramos el nombre de HOSTS

editamos el fichero nodename

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

Un saludo, rokitoh!

 

This entry was posted in UNIX ­ *BSD ­ GNU/Linux by rokitoh. Bookmark the permalink [http://red­orbita.com/?p=4816] .

““#hostname rokitoh“#hostname > /etc/nodename“#cat >> /etc/hosts“192.168.1.181                   rokitoh1“Cntrl + D

“Untitled

Utilizamos cookies propias y de terceros para mejorar la experiencia denavegación, y ofrecer contenidos y publicidad de interés. Al continuarcon la navegación entendemos que se acepta nuestra Política decookies. . Untitled .