二、固定IP
如果Cubieboard 是作为服务器使用,那么最好不使用DHCP服务获取动态IP地址。
设置为静态IP地址:
vi /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.59
netmask 255.255.255.0
gateway 192.168.1.1
设置DNS服务器:
设置DNS服务器:
vi /etc/resolv.conf
nameserver 192.168.1.1
nameserver 8.8.8.8
默认情况网关和DNS服务器解析地址是相同的。再加上谷歌DNS解析地址。
重启网络服务,使其生效。