One of the Solaris 10 changes to the IP reference document

Source: Internet
Author: User

How to change hostname and/or IP Address without Running sys-unconfig-solaris and below [Video] (Doc ID 1005908.1)

This article does not do translation, the full text reproduced:

Applies to:solaris SPARC Operating system-version 8.0 to ten 1/13 U11 [Release 8.0 to 10.0]
All platforms
Note, this document applies to Solaris and below only. For Solaris one, please instead refer to the Product Guides in relation to "Ipadm" command. Goal

The purpose of this document are to explain how to change a system ' s hostname and/or IP address without running the Sys-unc Onfig command Since this would restore the system ' s configuration to an "as-manufactured" state, ready to be reconfigured a Gain. See the Sys-unconfig (1M) mans page for more information regarding the changes which this command makes to the system.

Solution

video-using the Sysunconfig command (10:00)

Note: The procedures shown in the document should not being used on a system which is hosting a naming service, e.g., NIS or nis+. Furthermore, any changes made only affect the local host and it could be necessary to update naming services to reflect Thes E changes.

References to appropriate SOLARIS[TM] reference manual pages is given in square brackets in what follows. These may is viewed using the (1) command with the following syntax.

#/usr/bin/man-s<section > <name>   

where <section > should is replaced by the sections of the manual and <name> should be replace D by the name of the man page. For example,

#/usr/bin/man-s7d Ticotsord



Steps to follow
Please follow the steps listed under heading to accomplish the desired effect.

Changing the Hostname

1. Edit the following files and globally replace the old name with the new name as necessary.

    • /etc/inet/hosts [The 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-also changing IP addresses (see below).

2. If you is running a version of SOLARIS[TM] prior to ten 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 of the file may contain a name rather the IP address and could be left alone if the .

2. If you is running a version of SOLARIS[TM] prior to ten 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 have moved to a different subnet your 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.



Product
Solaris 9 Operating System
Solaris 8 Operating System
Solaris 7 Operating System
Solaris Ten Operating System

One of the Solaris 10 changes to the IP reference document

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.