close

Linux安裝完後

 

可能需要針對不同的網路環境

 

來設定網路ip來對網路作存取

 

1 

 

鍵入sudo nano /etc/network/interfacess指令

 

2 

 

根據介面卡來設定IP位址,例子中為eth0

 

3 

 

"#"為註解的意思

 

鍵入

 

auto eth0

iface eth0 inet dhcp

 ctrl + O寫入,ctrl + X離開程式

 

4 

 

鍵入sudo /etc/init.d/networking restart重新啟動網路服務

 

5 

 

即可取得dhcp的ip位址

 

6  

 

鍵入sudo /etc/network/interface

auto eth0

iface eth0 inet static

address 192.168.1.50

netmask 255.255.255.0

gateway 192.168.1.1

ctrl + O寫入,ctrl + X離開程式

sudo /etc/init.d/networking restart

 

8 

 

即可設定完成靜態ip位址

 

無線網路設定參考此

 

PPPoE設定利用sudo pppoeconf來設定

 

sudo pppoeconf 設定

sudo poff 關閉pppoe連線

sudo pon dsl-provider開啟pppoe連線


  

arrow
arrow
    創作者介紹
    創作者 綸 的頭像

    等待

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