h051202020
作者h051202020·2013-01-31 10:07
数据库管理员·丹东

AIX修改主机名

字数 591阅读 7146评论 0赞 1

修改主机名暂时生效:
hostname NEW_HOSTNAME
永久生效 smit hostname
或者 smit tcpip - futher configureation - hostname -set the hostname
uname -S hostname
或者直接用命令 chdev -l inet0 -a hostname=NEW_HOSTNAME

正确更改IP 地址是用 smit tcpip 进入菜单之后,选择further configuration 再选 Network Interfaces,再选 Network Interface Selection,
再选 Change /show characteristic of a network interface来更改 IP,这样/etc/hosts就不会新加入一条记录,只需更改文件中相应的IP就行了。
install_assist


生产环境实际操作过程:

进入修复 session,(single session模式)
修改主机的名字
或者 smit tcpip - futher configureation - hostname -set the hostname


修改网卡的ip地址
smitty mktcpip ,选择 en6
修改其ip地址

最后确认 /etc/hosts中数据是一致的。

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

1

添加新评论0 条评论

Ctrl+Enter 发表
X社区推广