ice world

          There is nothing too difficult if you put your heart into it.
          posts - 104, comments - 103, trackbacks - 0, articles - 0
          網(wǎng)絡(luò)配置:
          臨時(shí)(重丟失)
          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


          由于非法關(guān)機(jī)導(dǎo)致重啟后無法聯(lián)網(wǎng)

          ifconfig eth0 192.168.1.xxx netmask 255.255.xxx.0 

          route add default gw 192.168.1.1

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

          apt-get install ifupdown

          不能聯(lián)網(wǎng)是因?yàn)榉欠P(guān)機(jī)導(dǎo)致ifup腳本丟失





          主站蜘蛛池模板: 玛曲县| 精河县| 高州市| 江北区| 阳泉市| 石楼县| 靖宇县| 河西区| 阜平县| 翁源县| 东丰县| 兴宁市| 集贤县| 宜兰县| 宁国市| 从化市| 宜州市| 望都县| 喀喇沁旗| 曲水县| 哈密市| 兴化市| 自贡市| 怀安县| 盘山县| 大丰市| 龙江县| 杨浦区| 图木舒克市| 西充县| 武隆县| 兴隆县| 蓬溪县| 丰县| 织金县| 蒙城县| 琼海市| 鄂伦春自治旗| 永靖县| 孝义市| 罗定市|