Solaris 10 改ip参考文档之一
来源:互联网 发布:网络推广经理工作职责 编辑:程序博客网 时间:2024/05/13 00:38
How to Change hostname and/or IP Address Without Running sys-unconfig - Solaris 10 and below [Video] (Doc ID 1005908.1)
本文不做翻译,全文转载:
Applies to:
Solaris SPARC Operating System - Version 8.0 to 10 1/13 U11 [Release 8.0 to 10.0]All Platforms
Note, this document applies to Solaris 10 and below only. For Solaris 11, please instead refer to the Product Guides in relation to "ipadm" command.
Goal
The purpose of this document is to explain how to change a system's hostname and/or IP address without running the sys-unconfig command since this will restore the system's configuration to an "as-manufactured" state, ready to be reconfigured again. See the sys-unconfig(1M) man 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 be 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 may be necessary to update naming services to reflect these changes.
References to appropriate Solaris[TM] reference manual pages are given in square brackets in what follows. These may be viewed using the man(1) command with the following syntax.
# /usr/bin/man -s<section> <name>
where <section> should be replaced by the section of the manual and <name> should be replaced by the name of the man page. For example,
# /usr/bin/man -s4 hosts
# /usr/bin/man -s7D ticotsord
Steps to Follow
Please follow the steps listed under each 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 [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.
Product
Solaris 9 Operating System
Solaris 8 Operating System
Solaris 7 Operating System
Solaris 10 Operating System
- Solaris 10 改ip参考文档之一
- Solaris 10 改ip参考文档之二
- 更改Solaris 10的IP地址
- solaris 10 IP Filter 基本配置方法
- 11gr2 rac改IP系列之一:修改公网IP为同网段其它IP
- ALV GRID参考文档 ( 10 )
- Solaris10的革命性功能之一 Solaris 10 N1 Grid Container
- Solaris10的革命性功能之一 Solaris 10 N1 Grid Container
- solaris下修改ip
- Solaris 更改IP
- Solaris IP configuration
- solaris 配置IP
- Solaris下更改IP
- Solaris IP配置
- solaris配置ip
- solaris下修改ip
- solaris 配置IP过程
- Solaris 技术文档
- 6.28 洗刷刷 oj 继承 private protocted
- [学习笔记—Objective-C]《Objective-C 程序设计 第6版》第六章 选择结构
- EA那些小事
- 别人抢红包,我们研究一下红包算法
- SQL使用一张表的数据更新另一张表
- Solaris 10 改ip参考文档之一
- java学习之旅36--面向对象_09_static变量和方法_内存分析static
- SQL触发器详解
- C語言字符串函數大全
- struts 模型驱动的发射原理
- c++ primer读书笔记--第一章
- zookeeper原理
- MyEclipse关闭异常
- Verilog中“=”和“<=”的区别