centos6.0的基本网络配置文件

配置文件1:/etc/sysconfig/network-scripts/ifcfg-eth0

示例:

DEVICE="eth0"
BOOTPROTO="static"
#HWADDR="00:26:22:10:58:A6"
MACADDR="50:E5:49:65:7C:3A"
#IPADDR="192.168.1.100"
IPADDR="192.168.110.101"
NETMASK="255.255.255.0"

NM_CONTROLLED="yes"
ONBOOT="yes"

DNS1="8.8.8.8"

DNS2="8.8.4.4"

配置文件2: /etc/sysconfig/network

示例:

NETWORKING=yes
HOSTNAME=guobo
#GATEWAY=192.168.1.1

GATEWAY=192.168.110.1






你可能感兴趣的:(centos6.0的基本网络配置文件)