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

          導航

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

          統計

          常用鏈接

          留言簿(7)

          隨筆分類

          隨筆檔案

          相冊

          Photo

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 葵青区| 龙南县| 固安县| 忻州市| 福贡县| 同江市| 嫩江县| 乐清市| 绥芬河市| 南江县| 黑龙江省| 公主岭市| 富平县| 丁青县| 河津市| 石泉县| 沾化县| 苏尼特右旗| 施秉县| 福清市| 宕昌县| 江津市| 和政县| 突泉县| 政和县| 土默特左旗| 石柱| 宜春市| 临沧市| 民乐县| 高平市| 新建县| 炎陵县| 贵州省| 宁蒗| 凤山市| 临漳县| 瓦房店市| 乌兰察布市| 河北区| 离岛区|