1.修改ifcfg-eth0文件
suse11:/etc #
cd /etc/sysconfig/network/
suse11:/etc/sysconfig/network #
vi ifcfg-eth0
BOOTPROTO='static'
IPADDR='192.168.1.100'
NEWMASK='255.255.255.0'
NETWORK='192.168.1.1'
BROADCAST='192.168.1.255'
STARTMODE='auto'
2.suse11:/ #
vi /etc/resolv.conf
加入
nameserver 192.168.1.100
nameserver 192.168.1.111
3.重启网络
/etc/init.d/network restart
或者
/etc/rc.d/init.d/network restart
4.修改hostname
修改/etc/HOSTNAME
portal:~ #
cat /etc/HOSTNAME
portal.site
5.重启suse Linux
#reboot
阅读(4662) | 评论(0) | 转发(0) |