CentOS6 配置IP上网

vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express
DEVICE=eth0
#BOOTPROTO=dhcp
BOOTPROTO=static
IPADDR=192.168.2.168
NETMASK=255.255.255.0
TYPE=Ethernet
HWADDR="00:0C:29:3F:45:62"
ONBOOT=yes

你可能感兴趣的:(centos6)