狼愛上貍

          我胡漢三又回來了

          Solaris10無法上網

          /etc/defaultrouter中配網關
          /etc/resolv.conf中配DNS

          nameserver 202.XX.XX.XX
          /etc/nsswitch.conf中hosts條中的file后加寫dns

          安裝完solaris后,默認是不能上網的,需要修改如下四個文件:

          1. /etc/hosts or /etc/inet/hosts
          2. /etc/resolv.conf 默認是沒有的,需要手工添加
          3. /etc/nsswitch.conf這個修改一下就ok
          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

          2.創建resolv.conf文件,加入dns服務器地址:

          #vi /etc/resolv.conf

          nameserver 202.101.172.48
          nameserver 202.101.172.46

          3.修改/etc/nsswitch.conf,只修改如下行:

          hosts: files dns

          4.創建/etc/defaultrouter文件,加入網關地址:

          #vi /etc/defaultrouter

          192.168.1.1


          來自:http://limingchengwu.blog.163.com/blog/static/126785777200972841953324/

          posted on 2009-12-31 10:48 狼愛上貍 閱讀(549) 評論(0)  編輯  收藏 所屬分類: SOLARIS

          主站蜘蛛池模板: 宜川县| 双鸭山市| 林甸县| 涞水县| 比如县| 江安县| 美姑县| 平利县| 焉耆| 海阳市| 岳阳县| 泾阳县| 民丰县| 托克逊县| 南宫市| 油尖旺区| 福海县| 静宁县| 巴南区| 鄂尔多斯市| 万年县| 平顶山市| 吉木乃县| 县级市| 灵山县| 双辽市| 浦县| 苏尼特左旗| 临夏县| 始兴县| 东乌珠穆沁旗| 南投市| 东海县| 靖远县| 宜黄县| 许昌市| 昂仁县| 嘉义县| 张家川| 格尔木市| 闵行区|