2007年9月5日星期三

Solaris 的网路基本设定

/etc/inet/netmasks

网路的address netmask 的设定
192.168.0.0 255.255.255.0

/etc/nodename
主机名
U10

/etc/inet/hosts
网路内的 IP 地址和其它机器的名称和 IP 地址的记录
127.0.0.1 localhost
192.168.0.1 U10 loghost
192.168.011 V880
192.168.0.12 E4900


/etc/hostname.qfe0
自己主机名所对应的网口上要写上主机名(qfe0是网口的代码)
U10

/etc/defaultrouter
网关的指定
192.168.0.254

/etc/resolv.conf
DNS
服务器指定及自己网域的指定
domain hogehoge.com
nameserver 192.168.0.252
nameserver 192.168.0.253


/etc/nsswitch.conf
使用了dns 服务,要改一下hosts:之后的设定
hosts: files dns
改完了之后,把 /etc/init.d/nscd重新起动一次
#/etc/init.d/nscd stop
#/etc/init.d/nscd start

基本的设定就是这些。

如果看不到网口的名称,也可以使用 sys-unconfig ,来把系统全部重新设定。(请小心使用)

没有评论: