jinfeng_wang

          G-G-S,D-D-U!

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
          pls refer: http://www.linuxdiyf.com/viewarticle.php?id=87424

          Step I): change the network config file.
          1)run command :$ sudo vi /etc/network/interfaces
          2)Find and remove dhcp entry:
                  iface eth0 inet dhcp
          3)Append new network settings:
                  iface eth0 inet static
                  address 192.168.1.100
                  netmask 255.255.255.0
                  network 192.168.1.0
                  broadcast 192.168.1.255
                  gateway 192.168.1.254

          Step II):Define new DNS servers
          Open /etc/resolv.conf file
          $ sudo vi /etc/resolv.conf
          search myisp.com
          nameserver 192.168.1.254
          nameserver 202.54.1.20
          nameserver 202.54.1.30

          Step III) Restart the network
          $ sudo /etc/init.d/networking restart

          Step IV): check the network:
          1)ping the gateway : ping 192.168.1.254
          2)check dns server:  host www.XXX.com
          3)ping the remote machine: ping host www.XXX.com

          Reference:

           

          如何在 Windows XP 中配置 Internet 連接共享

          http://support.microsoft.com/kb/306126/zh-cn


          posted on 2009-05-15 23:23 jinfeng_wang 閱讀(455) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 历史| 广宗县| 文昌市| 咸阳市| 陇川县| 嫩江县| 墨竹工卡县| 黔江区| 汤原县| 淮阳县| 三台县| 驻马店市| 木里| 马尔康县| 开原市| 娱乐| 高阳县| 平阳县| 临泉县| 麦盖提县| 时尚| 阿克苏市| 冀州市| 来宾市| 舟山市| 大港区| 昌宁县| 宁海县| 汉源县| 库车县| 秭归县| 新晃| 克山县| 昭平县| 西宁市| 南投县| 左权县| 青阳县| 九江县| 林州市| 涡阳县|