thaicosmic.com

หนัง

วันศุกร์ที่ 31 พฤษภาคม พ.ศ. 2556

No Internet When Using Static IP

sudo gedit /etc/network/interfaces 
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8 192.168.0.1
Get the interface to re-read the file:
Code:
sudo ifdown eth0 && sudo ifup eth0
Check:
Code:
ping -c3 www.google.com
ที่มา : http://ubuntuforums.org/showthread.php?t=2081392 โดย chili555