Author Topic: Solaris Network Config  (Read 670 times)

Offline scotbuff

  • Sys Admin
  • UNIX User
  • *****
  • Posts: 174
  • Karma: +2/-0
    • View Profile
    • Scott.Buffington.me
Solaris Network Config
« on: April 05, 2007, 08:20:37 am »
If you need to change the IP address of a server running Solaris 10, change the following files:
/etc/inet/hosts
/etc/inet/ipnodes    -   I have found IPV4 and IPV6 both require this file to be set.

WhatValid for RuntimePersistent After Reboot
Hostnamehostname <new name>/etc/nodename
/etc/hostname.<Interface>
/etc/inet/hosts
IP-Addressifconfig <Interface> plumb
ifconfig <Interface> <IP> up
/etc/inet/hosts
/etc/inet/ipnodes
Netmask ifconfig <Interface> <netmask> up /etc/netmasks
Gatewayroute add default <IP Gateway>/etc/defaultrouter
DHCP-Client ifconfig <Interface> plumb
ifconfig <Interface> dhcp start
touch /etc/hostname.<Interface>
touch /etc/dhcp.<Interface>

« Last Edit: September 07, 2007, 02:07:54 pm by scotbuff »

Offline scotbuff

  • Sys Admin
  • UNIX User
  • *****
  • Posts: 174
  • Karma: +2/-0
    • View Profile
    • Scott.Buffington.me
Re: Solaris Network Config
« Reply #1 on: November 01, 2007, 09:01:30 am »
Changing the Hostname
1. Edit the following files and globally replace the old name with the new name as necessary.


/etc/inet/hosts [hosts(4)]

/etc/nodename [nodename(4)]

/etc/hostname.<interface>

where <interface> is replaced by the name of the primary interface for the system, e.g., "hme0". It is possible that this file contains an IP address instead of a name, if this is the case you may leave this file as it is unless you are also changing IP addresses (see below).


2. If you are running a version of Solaris[TM] prior to 10 you should also edit the following files.


/etc/net/ticlts/hosts [ticlts(7D)]

etc/net/ticots/hosts [ticots(7D)]

/etc/net/ticotsord/hosts [ticotsord(7D)]


3. For Versions of Solaris[TM] later than 7, check the /etc/inet/ipnodes file [ipnodes(4)] and edit it appropriately.


4. Reboot the system.


Changing IP Addresses
1. Edit the /etc/inet/hosts file as necessary.


2. Check each interface configuration file and edit it as appropriate. These files may be listed using the find(1) command as follows.


  # /usr/bin/find /etc -name hostname.*


    Note: Each file may contain a name rather that an IP address and may be left alone if this is the case.


2. If you are running a version of Solaris[TM] prior to 10 you should also edit the following files.


/etc/net/ticlts/hosts

etc/net/ticots/hosts

/etc/net/ticotsord/hosts


3. For Versions of Solaris[TM] later than 7, check the /etc/inet/ipnodes file and edit it appropriately.


4. If you changing IP addresses because the host has moved to a different subnet you may also need to amend the following files.


/etc/inet/netmasks [netmasks(4)]

/etc/defaultrouter [defaultrouter(4)]

/etc/resolv.conf [resolv.conf(4)]


5. Reboot the system.