1.設定靜態IP 終端機:sudo gedit /etc/network/interfaces
auto eth0
iface eth0 inet static
address //設定IP位置 如:140.126.x.x
netmask //設定網路遮罩 如:255.255.255.0
gateway //設定通信閘
2.配置DNS 終端機:sudo getid /etc/resolv.conf
# Generated by NetworkManager
domain private
search private
nameserver 8.8.8.8 //設定DNS
nameserver 8.8.4.4 //設定DNS
3.從新啟動網路服務或註銷登錄
終端機:sudo gedit /etc/init.d/networking
4.DNS 終端機:sudo getid /etc/dhcp3/dhclient.conf
prepend domain-name-servers 8.8.8.8
prepend domain-name-servers 8.8.4.4
沒有留言:
張貼留言