-
设置IP:修改/etc/hosts,/etc/inet/hosts和 /etc/inet/ipnodes这三个文件,内容为192.168.16.2 主机名 loghost
-
设置子网掩码:更改了/etc/netmasks
-
/etc/resolv.conf 默认是没有的,需要手工添加
nameserver 202.101.172.48
nameserver 202.101.172.46 -
-
/etc/nsswitch.conf这个修改一下就ok
hosts: files dns
-
设置主机名:添加了文件/etc/nodename 内容为主机名
-
重启网卡,不需要重启系统即可生效: # svcadm disable physical # svcadm enable physical
-
检测IP是否设置成功ifconfig –a
如何更改机器名
/etc/hostname.pcn0
/etc/hosts
/etc/nodename