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
          主站蜘蛛池模板: 海宁市| 景泰县| 岐山县| 吉木萨尔县| 原平市| 长海县| 泸溪县| 北辰区| 永嘉县| 昌乐县| 淮南市| 莱西市| 利津县| 东宁县| 万全县| 台南市| 大竹县| 城固县| 隆安县| 遂昌县| 丰宁| 台南市| 封丘县| 衢州市| 宜兰市| 攀枝花市| 金坛市| 潞西市| 任丘市| 神农架林区| 旌德县| 隆德县| 深圳市| 永仁县| 武威市| 女性| 喀喇沁旗| 明光市| 镇江市| 宿迁市| 扎鲁特旗|