红联Linux门户
Linux帮助

Solaris网络配置注意项

发布时间:2008-03-21 00:01:43来源:红联作者:chiver
故障现象:系统配置网络(172.31.130.196/255.255.255.224 GW:172.31.130.193)
配置Hosts,defaultrouter,netmasks后重新启动系统,发现IP为192.168.20.153
判断:系统未正常加载hosts文件
解决:查找到./inet/ipnodes配置如下
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.20.153 ems loghost
删除最后一行,重启系统解决。
附录:
查找说明后发现,正常情况下不需要修改ipnodes文件。Ipnodes文件在IPV6中使用!

solaris 10 修改网络配置
hostname.interface_name
hosts
defaultrouter
netmasks
nodename
还需要更改/etc/inet/ipnodes
Note :
If you need to add addresses, you must add IPv4 addresses to both the hosts and ipnodes files. You add only IPv6 addresses to the ipnodes file.
Address search order is ipnodes first, then hosts. (solaris 8, 9, 10)
So ipnodes needn't be modified if it's no information about IPv4 address.
But in Solaris 10, a new feature added:
In your case, hosts changed but ipnodes untouched so that
system got old ip address from ipnodes.
附:DNS设置
若要使DNS的设置生效,需要两个文件,一个是创建一个文件,另外要修改一个文件。
nameserver 211.97.235.241
nameserver 211.97.168.129
nameserver 202.96.0.133
hosts: files dns,networks: files dns 即在files后面再跟一个dns,这样两个文件同时作用,DNS就可以工作了。
文章评论

共有 0 条评论