close
非官方 Ubuntu 5.10 新手指南有視窗下的設定說明,但沒有終端機模式下的,
所以我記一下筆記
如何 啟動/關閉 網路連線?

修改前先備份一下設定檔,以防萬一
sudo cp /etc/network/interfaces /etc/network/interfaces.old

sudo vi /etc/network/interfaces
把原本的

# The primary network interface
iface eth0 inet dhcp

改成

# The primary network interface
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.110
netmask 255.255.255.0
gateway 192.168.0.1

再來重新啟動網路

sudo ifdown eth0 ; sudo ifup eth0


參考來源:
/etc/network/interfaces ? (WiFi WEP)
arrow
arrow
    全站熱搜

    tern 發表在 痞客邦 留言(0) 人氣()