|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Changing hostname and IP on Solaris 10
We have a Solaris 10 machine and need to change the hostname and the IP address. I have worked primarily with Solaris 8 and this is my first experience with Solaris 10. I am fairly sure I will get the basics, but I have the vague recollection that there was something under /etc/opt or similar. Now, I cannot find it. So, I was wondering if someone knew of a checklist of things to change to make sure that I do not miss anything.
Any info would be greatly appreaciated. |
|
#2
|
||||
|
||||
|
I dunno if it is still in Sol 10, but there WAS a command/script called sys_unconfig which you could use to do this.
|
|
#3
|
|||
|
|||
|
Changing the IP on Solaris 10 requires editing two files:
1. /etc/hosts 2. /etc/inet/ipnodes If you are changing network address, you will need to change the router address in the file: 1. /etc/defaultrouter Changing the hostname now only requires editing these files: 1. /etc/hosts 2. /etc/nodename 3. /etc/hostname.<interface name> <interface name> 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 Note: the following hosts files are no longer used in solaris 10. /etc/net/ticlts/hosts /etc/net/ticots/hosts /etc/net/ticotsord/hosts Rebooting the computer should bring up the new ip and hostname. |
|
#4
|
|||
|
|||
|
Need Help to change the hostname and IPAddress on Solaris8
Hi,
I tried modifying the hostanme and IPAddress using sys-unconfig command but in vain. After feeding all the configuration details of the system, at the end the following error is observed. "System Identification Error------- An error occured while trying to set the IP address XX.XXX.XX.XX on the network interface. - Kraja Your help on this is greatly appreciated....as i have imp deliverables. Quote:
|
|
#5
|
|||
|
|||
|
No luck with changing hostname
I tried editing the three files suggested by shiv--- to no avail. I've tried as well editing all the meaningful /etc* files as prescribed by "the book" and still no luck. Running 5.10 on a new x86 Toshiba laptop and so far everything else seems fine. Installed as 'network' computer and using DHCP (as req'd by router); which gives no opportunity to name the host, so it's "unknown". Ask away if you need to know what some of the files or prtconf looks like. Thanks in advance.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Changing hostname and IP on Solaris 10 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|