Tao

          Tao obeys its own inherent Nature

          Add two ips to one NIC in ubuntu

          edit file: /etc/network/interfaces

          the original content should be something like:

          # The primary network interface
          auto eth0
          iface eth0 inet static
          address 192.168.0.5
          netmask 255.255.255.0
          network 192.168.0.0
          broadcast 192.168.0.255
          gateway 192.168.0.1
          # dns-* options are implemented by the resolvconf package, if installed
          dns-nameservers 192.168.0.1 

          add the following settings in the file:

          auto eth0:1
          iface eth0:1 inet static
          address 192.168.0.6
          netmask 255.255.255.0
          network 192.168.0.0
          broadcast 192.168.0.255
          gateway 192.168.0.1

          # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.0.1

           

          run command in root mode:

          /etc/init.d/networking restart

          that's all. you can run ifconfig to check if it works.

          I tested it in ubuntu 6.10.


           

          posted on 2007-09-25 14:37 wade 閱讀(478) 評論(0)  編輯  收藏 所屬分類: Linux

          導航

          <2007年9月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          統計

          常用鏈接

          留言簿(7)

          隨筆分類

          隨筆檔案

          相冊

          Photo

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 公主岭市| 巴楚县| 罗源县| 井陉县| 古浪县| 应用必备| 贞丰县| 安徽省| 津市市| 白朗县| 正宁县| 吕梁市| 鹿邑县| 连州市| 宝兴县| 通州区| 九龙城区| 铁岭县| 岢岚县| 上杭县| 方山县| 锦屏县| 太仆寺旗| 岗巴县| 湖南省| 涞源县| 阿坝县| 滁州市| 双江| 额尔古纳市| 两当县| 都昌县| 玉树县| 静乐县| 巴东县| 梧州市| 基隆市| 大化| 牙克石市| 东平县| 辉南县|