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 閱讀(453) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 乌拉特后旗| 孝感市| 中西区| 肥西县| 潼关县| 怀柔区| 鄂伦春自治旗| 新巴尔虎右旗| 怀化市| 宜都市| 泰州市| 乌拉特前旗| 寿阳县| 凤翔县| 济阳县| 崇明县| 日土县| 怀远县| 汉中市| 新巴尔虎左旗| 尼勒克县| 滨海县| 公安县| 蓬安县| 娱乐| 将乐县| 东源县| 开阳县| 玛纳斯县| 南皮县| 永康市| 奉新县| 武冈市| 大姚县| 昭平县| 象州县| 辉县市| 凌源市| 都兰县| 安阳县| 静安区|