發表文章

目前顯示的是有「樹梅派」標籤的文章

[Pi]Raspberry Pi 設定靜態IP 及 DNS

圖片
編輯網路設定檔 sudo nano /etc/network/interfaces  把原本的設定DHCP給MARK掉(前面加#變成註解,不執行) 下方填上IP資訊 iface eth0 inet static  address 172.20.6.155 netmask 255.255.255.0         gateway 172.20.6.2 然後按Ctrl+X離開並選擇儲存 以上參考: https://sites.google.com/site/raspberrypidiy/pc-to-rpi/win7 DNS設定,才能聯外網 一樣用管理員權限開啟文字編輯器來編輯設定檔,設定檔位置/etc/resolv.conf sudo nano /etc/resolv.conf 將DNS設定後一樣按ctrl+X離開並選擇儲存(ps:這裡的8.8.8.8是Google提供的DNS Server) 以上參考: http://linux.vbird.org/linux_server/0130internet_connect.php