天天看点

AIX修改主机名

修改主机名暂时生效:

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中数据是一致的。

继续阅读