Chinaunix首页 | 论坛 | 博客
  • 博客访问: 810751
  • 博文数量: 167
  • 博客积分: 7173
  • 博客等级: 少将
  • 技术积分: 1671
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-04 23:07
文章分类

全部博文(167)

文章存档

2018年(1)

2017年(11)

2012年(2)

2011年(27)

2010年(88)

2009年(38)

分类:

2009-08-05 10:11:36

Solaris5.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
阅读(1570) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~