分类: 系统运维
2013-03-05 14:15:29
--centos修改网络信息
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.10.11
NETMASK=255.255.255.0
#DHCPCLASS=HWADDR=00:0C:29:97:72:9B
ONBOOT=yes
--centos上网设置
vi /etc/resolv.conf
search localdomain
nameserver 8.8.8.8
vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.10.1