olaris5.8 和5.9环境下,可用 uname -a 查看主机名,然后修改下列六个文件:
1、 /etc/hostname.*
2、 /etc/nodename
3、 /etc/hosts
4、 /etc/net/ticlts/hosts
5、 /etc/net/ticots/hosts
6、 /etc/net/ticotsord/hosts
修改完毕后,重启机器即可。
修改IP,要新建文件/etc/hostname.内容为网卡名,可任取,再修改 /etc/hosts 文件内容为IP地址加网卡名,如有多个端口,网卡名不可相同。
Solaris5.10环境下,然后修改主机名和IP的方法:
Changing the IP on Solaris 10 requires editing two files:
1. /etc/hosts
2. /etc/inet/ipnodes
3. /etc/hostname.xxx
Changing the hostname now only requires editing these files:
1. /etc/hosts
2. /etc/nodename
3. /etc/hostname.
is the driver name followed by the instance number of the interface. ie. hme0, bge0, ce0, qfe0
You can find all your network interfaces by drivername and instance# by running the following command: prtconf -D | grep network
Note: the following hosts files are no longer used in solaris 10.
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
Rebooting the computer should bring up the new ip and hostname.修改完毕后,重启机器即可。
================================
如某机IDprom损坏,将会影响到网卡MAC地址的使用,直接影响到IP的设置,可进行:
# cd /etc/rc2.d
# vi S69etherup
ifconfig hme0 ether 0:3:ba:17:4b:e1 up
ifconfig hme0 inet 192.168.10.207 up
# chmod 777 S69etherup
# reboot
阅读(781) | 评论(0) | 转发(0) |