sudo vi /etc/network/interfaces
將會看到
auto eth0
iface eth0 inet dhcp
修改成
auto eth0iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
重新啟動
sudo /etc/init.d/networking restart
沒有留言:
張貼留言