分类: LINUX
2010-12-28 15:28:51
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] DEVICE=eth0 BOOTPROTO=static IPADDR=10.150.0.159 NETMASK=255.0.0.0 NETWORK=10.0.0.0 BROADCAST=10.255.255.255 HWADDR=00:0C:29:E0:79:1C ONBOOT=yes |
NETWORKING=yes |
配置DNS:
vim /etc/resolv.conf
nameserver 10.50.0.10 |
另外,几个常用命令:
service network restart 重启网络
ifdown eth0 关闭eth0网卡
ifup eth0 打开eth0网卡