Cambiando direccion ip en un solaris 8
Reseña de comandos que permiten hacer el cambio de ip en un solaris 8:
Ver las tarjetas de red activas
# ifconfig -a
El mundo de Solaris es un poco diferente al mundo Linuxero, pero con un simple comando podemos facilmente ver cuales NIC tenemos instaladas en nuestro SUN Solaris 10 Server:
# kstat -c net | grep net
name: dls_stat class: net
name: e1000g0 class: net
name: tcpstat class: net
name: tcpstat_g class: net
name: udpstat class: net
# ifconfig e1000g0
e1000g0: flags=201000843 mtu 1500 index 2
inet 10.0.1.10 netmask ffffff00 broadcast 10.0.1.255
ether 0:14:4f:8c:ba:22
Para poder configurar la direccion IP manualmente en nuestro Solaris 8, teclemos los siguientes comandos:
# ifconfig e1000g0 inet 192.168.1.5 netmask 255.255.255.0 up
Cambiar la ip en el archivo hosts
# cat /etc/hosts
En el /etc/resolv.conf, he añadido el DNS primario y el secundario
Crear un archivo / etc / defaultrouter archivo con la dirección IP de su router.
O Cambiar el gateway
Para ver la tabla de ruteo existente
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
——————– ——————– —– —– ———- ———
192.168.1.0 192.168.1.10 U 1 195 hme0
224.0.0.0 192.168.1.10 U 1 0 hme0
default 192.168.1.1 UG 1 325
127.0.0.1 127.0.0.1 UH 5 92 lo0
Quitando el gateway default;
# route delete default 172.1.1.1
Agregando un nuevo Gateway:
# route add default 192.168.1.1
Comentarios recientes