###網卡設定
vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.128
broadcast x.x.x.127
gateway x.x.x.126
#NetworkManager
#iface eth0 inet dhcp
###dns設定
vi /etc/resolv.conf
nameserver x.x.x.1
nameserver 168.95.192.1
#重新啟動
/etc/init.d/networking restart
沒有留言:
張貼留言