zoukankan      html  css  js  c++  java
  • 怎样设置Solaris上网


    I find there are many guys don't know how to setup files to connected to internet and ask the same question again and again. So, I post my configuration file here for those who need reference for internet set up. Hopefully this can help some one a little.

    OK, basicly there are 4 file you have to config at Solaris to go to internet:

    1.  /etc/hosts or /etc/inet/hosts
    2.  /etc/resolv.conf 
    3. /etc/nsswitch.conf
    4. /etc/defaultrouter

    What i have to say is that the files  /etc/resolv.conf and  /etc/defaultrouter are not existed by default system installation. you have to create that 2 file when you need setup internet.

    The following are my configuration file: (192.168.0.3 is my solaris 9 system and 192.168.0.1 is the machine of Windows 2000/XP which has 2 network interfice, one connected to internet by 24.101.186.193 and one connected to solaris9 by interfice 192.168.0.1. You have to choose to share internet for the interface that connected to internet at windows as you have)

    Cat  /etc/hosts

    127.0.0.1                     localhost
    192.168.0.3                 lion            loghost
    192.168.0.1                 router

    ---------------------------------------------

     vi   /etc/resolv.conf

    nameserver       192.168.0.1

    -----------------------------------------------
    vi   /etc/nsswitch.conf

    hosts:   files   dns

    -----------------------------------------------

    vi    /etc/defaultrouter

    router            192.168.0.1

    ------------------------------------------------

    Good luck.
  • 相关阅读:
    李洪强IOS经典面试题 33-计算有多少个岛屿
    李洪强iOS经典面试题32-简单介绍 ARC 以及 ARC 实现的原理
    李洪强iOS经典面试题31-解释垃圾回收的原理
    iOS音频合并
    Macbook小问题
    weex-iOS集成
    WEEX快速入门
    Mac上Nginx-增加对HLS的支持
    iOS直播-基于RTMP的视频推送
    iOS直播-播放基于RTMP协议的视频
  • 原文地址:https://www.cnblogs.com/yechuan/p/198735.html
Copyright © 2011-2022 走看看