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 閱讀(475) 評論(0)  編輯  收藏 所屬分類: Linux

          導航

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

          統計

          常用鏈接

          留言簿(7)

          隨筆分類

          隨筆檔案

          相冊

          Photo

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 满洲里市| 南阳市| 乾安县| 杭锦后旗| 托克逊县| 德化县| 安泽县| 乐清市| 赞皇县| 彝良县| 徐汇区| 阿尔山市| 纳雍县| 和龙市| 米脂县| 莱阳市| 冀州市| 驻马店市| 赣州市| 连平县| 汽车| 乌拉特后旗| 满洲里市| 胶南市| 孟州市| 长寿区| 平安县| 榆社县| 赤城县| 无锡市| 宝山区| 青冈县| 原平市| 和硕县| 天水市| 山丹县| 巨野县| 禹城市| 德州市| 广灵县| 兴文县|