Wednesday, September 16, 2009

Changing the IP / Hostname on Solaris 10

Changing the IP on Solaris 10 requires editing two files:
1. /etc/hosts

If you are changing network address, you will need to change the defualt gateway address in the file:
2. /etc/defaultrouter

Changing the hostname now only requires editing these files:
1. /etc/hosts
2. /etc/nodename
3. /etc/hostname.
4. svcadm restart network/physical
  • is the driver name followed by the instance number of the interface. ie. hme0, bge0, ce0, qfe0
  • You can find all your network interfaces by drivername and instance# by running the following command: prtconf -D grep network

No comments:

Post a Comment