sudo vim /etc/network/interfaces
原本
auto eth0
iface eth0 inet dhcp
改成
auto eth0
iface eth0 inet static
address 192.168.1.***
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
改好, 跳出Vim
sudo /etc/init.d/networking restart
===========================
修改 DNS設定
sudo vi /etc/resolv.conf
nameserver 168.95.1.1
沒有留言:
張貼留言