1 vi /etc/network/interfaces

Change 

#iface eth0 inet dhcp

to

iface eth0 inet static
address 192.168.95.132
netmask 255.255.255.0
gateway 192.168.95.1

2 /etc/init.d/networking restart

posted on 2012-12-26 09:38  Zaiping  阅读(189)  评论(0编辑  收藏  举报