solaris 網路設定

edwardking888發表於2010-11-19
IP 為:192.168.0.72
子網掩碼:255.255.255.0
閘道器:192.168.0.254
首選DNS:10.27.1.30
備選DNS:202.102.24.35
配置過程如下:
vi /etc/hostname.iprb0
輸入:
nspsx86 (注:主機名)
(注:根據不同的網路卡,hostname.xxx 檔案的字尾xxx不同,如果網路卡裝上的話都應該有這個檔案)

vi /etc/hosts
輸入:
127.0.0.1 localhost
192.168.0.72 nspsx86 loghost (注:IP地址 主機名)

vi /etc/defaultrouter
輸入:
192.168.0.254 (注:閘道器地址)
(注:若etc目錄下無defaultrouter檔案<wbr>,則自己在該目錄下建立)

vi /etc/nsswitch.conf
輸入:
hosts: files dns (注:原先為hosts: files,改成hosts: files dns)

vi /etc/resolv.conf (注:若無此檔案,請建立)
輸入:
domain nspsx86.domain.com
nameserer 10.27.1.30 (注:首選DNS)
nameserer 202.102.24.35 (注:備選DNS)

重啟就可以上因特網了。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8183550/viewspace-678544/,如需轉載,請註明出處,否則將追究法律責任。

相關文章