歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> solaris10上網設置

solaris10上網設置

日期:2017/2/28 11:13:11   编辑:關於Unix


安裝完solaris後,默認是不能上網的,需要修改如下四個文件:
1. /etc/hosts or /etc/inet/hosts
4. /etc/defaultrouter默認也是沒有的,手工添加
詳細如下:
1.編輯/etc/hosts文件,用過linux的朋友明白這步是什麼意思的,只不過/etc/hosts文件是/etc/inet/hosts文件的一個軟鏈接,如下所示:
#cd /etc
#ls -l hosts
lrwxrwxrwx 1 root root 12 Jan 6 17:12 hosts -> ./inet/hosts
#cd /etc/inet
#ls -l hosts
-r--r--r-- 1 root sys 107 Jan 6 19:56 hosts
nameserver 202.101.172.48
nameserver 202.101.172.46
hosts: files dns
4.創建/etc/defaultrouter文件,加入網關地址:
#vi /etc/defaultrouter
192.168.1.1
ok,到此結束。
Copyright © Linux教程網 All Rights Reserved