auto eth0
iface eth0 inet dhcp
上面是給動態位址用的,就是給使用 DHCP 來取得網址的網卡用的,如果是固定的 IP 位址的話,就改用下面這組 ( IP 相關設定請自行依需要修改 )。
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
資料補好並存檔之後,請用下面這二行指令來更新設定並重新啟用網卡。
sudo /etc/init.d/networking restart
sudo ifup etho
問題還是沒解決嗎 ?? 這裡有更多的 Ubuntu 相關教學可以參考哩 ...
買本阿舍寫的電子書帶走 - Ubuntu 指令新手馬上會用到的 35 個技法
沒有留言 :
張貼留言