solaris下配置IP 地址

修改/etc/hosts文件
vi hostname.网卡名, 写入ip地址
修改/etc/inet/netmasks文件 在文件末尾加入网卡ip和它的netmask 192.168.70.251 255.255.255.0

配置默认网关:在/etc目录下,新建defaultrouter文件,修改文件内容为网关地址。如:192.168.70.1

在/etc目录下,新建resolv.conf文件,修改内容为 nameserver dnsIP地址

nameserver 202.106.0.20
nameserver 202.106.196.115
nameserver 202.106.46.151

修改/etc/nsswitch.conf文件
将文件内:hosts与nodes项 的末尾 加入dns

你可能感兴趣的:(Solaris)