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 閱讀(452) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 班玛县| 灵寿县| 贡觉县| 商南县| 新巴尔虎左旗| 屏边| 嵊州市| 莒南县| 襄城县| 金坛市| 和龙市| 乾安县| 静安区| 乌兰浩特市| 余姚市| 西畴县| 芦山县| 崇礼县| 永登县| 金门县| 六盘水市| 辉南县| 六安市| 仁化县| 富源县| 宜兰市| 博客| 克什克腾旗| 当阳市| 安宁市| 花莲县| 金山区| 丰镇市| 南陵县| 星子县| 天气| 新平| 天柱县| 梅河口市| 五大连池市| 木里|