Debian 6 network 無法啟動...

[問題]
最近更新debian 6發現每次更換環境要update interface的指令(如下列)都無效, 也不知道why...
    >>/etc/init.d/networking restart       *出現warning說無 restart 用法
    >>/etc/init.d/networking stop|start   *stop可以, 但start沒用
    >>ifconfig eth0 down
    >>ifconfig eth0 up

[解決]
 改用指令解決...
     >>ifup eth0


* 從 debian.org 知道 package ifupdown 是 debian 的 high level network configuration standard,
所以以後在 debian 下盡量使用ifupdown囉.

另外要設定 dhcp/static IP 則要去 /etc/network/interfaces 設定
auto eth0
iface eth0 inet dhcp

or

iface eth0 inet static
  address 10.0.2.5
  netmask 255.255.255.0
  gateway 10.0.2.1
  dns-nameserver 10.0.2.1





Comments

Popular posts from this blog

股票評價(Stock Valuation) - 股利折現模型

openwrt feed的使用

How to convert Markdown into HTML