SunOS dev 5.9 sun4u sparc SUNW,Sun-Fire-V240
Cambiar la ip de una de las targetas de red
ifconfig 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
Guarda los datos de la siguiente manera:
En el archivo /etc/hosts guarda:
192.168.1.1 dev dev. loghost i2dev.company.fr 10.100.100.100 dev-adm 192.168.100.14 dev-bkp
Donde dev es el nombre que le da a determinada ip
Por otro lado crea los ficheros: “hostname.bge0” ,“hostname.bge1”,“hostname.bge2” , “hostname.bge3” que corresponden a las 4 targetas dered que tiene la máquina. Donde cada uno de los ficheros contiene el nombre del host que hay definido en /etc/hosts por ejemplo. en mi caso:
root@dev@/etc#cat hostname.bge3 dev-bkp
Además existe el fichero /etc/netmasks donde guarda las máscaras de red para cada red
root@dev@/etc#cat netmasks # # The netmasks file associates Internet Protocol (IP) address # masks with IP network numbers. # # network-number netmask # # The term network-number refers to a number obtained from the Internet Network # Information Center. # # Both the network-number and the netmasks are specified in # "decimal dot" notation, e.g: # # 128.32.0.0 255.255.255.0 # 192.168.1.0 255.255.254.0 10.100.100.0 255.255.255.192 192.168.100.0 255.255.255.0
De este modo, alterando el contenido de:
/etc/hosts y /etc/netmasks se puede alterar manualmente la ip de la ethernet deseada