ice world

          There is nothing too difficult if you put your heart into it.
          posts - 104, comments - 103, trackbacks - 0, articles - 0
          網絡配置:
          臨時(重丟失)
          ifconfig eth0 192.168.1.xxx netmask 255.255.xxx.0


          永久(重啟有效)
          vi /etc/network/interfaces

          # This file describes the network interfaces available on your system
          # and how to activate them. For more information, see interfaces(5).

          # The loopback network interface
          auto lo
          iface lo inet loopback

          # The primary network interface
          allow-hotplug eth0
          iface eth0 inet static
                  address 192.168.1.xxx
                  netmask 255.255.xxx.0
                  network 192.168.1.1
                  broadcast 192.168.1.255
                  gateway 192.168.1.1
                  
          # dns-* options are implemented by the resolvconf package, if installed
                  dns-nameservers 202.106.196.115


          由于非法關機導致重啟后無法聯網

          ifconfig eth0 192.168.1.xxx netmask 255.255.xxx.0 

          route add default gw 192.168.1.1

          重啟后配置丟失,所以必須在重啟之前執行:
          apt-get update

          apt-get install ifupdown

          不能聯網是因為非法關機導致ifup腳本丟失





          主站蜘蛛池模板: 大理市| 嘉善县| 毕节市| 通榆县| 胶州市| 汪清县| 德保县| 泾阳县| 衢州市| 托克逊县| 耒阳市| 张掖市| 台南县| 赞皇县| 左云县| 集贤县| 稷山县| 沙雅县| 三原县| 五莲县| 大冶市| 乳山市| 巨鹿县| 永胜县| 江都市| 巴林右旗| 且末县| 黄石市| 乌恰县| 东宁县| 石棉县| 阿鲁科尔沁旗| 敦化市| 娄底市| 高阳县| 霍林郭勒市| 沐川县| 璧山县| 马龙县| 年辖:市辖区| 漳州市|