标签:
1. 首先取消使用Vmware动态主机设置服务
[root@localhost ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.78.2
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
# BOOTPROTO="dhcp"
BOOTPROTO="static"
IPADDR=192.168.78.145
NETMASK=255.255.255.0
HWADDR="00:0C:29:DE:93:80"
IPV6INIT="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="ba62d2e6-d078-4bb7-b8c4-d571a63ae836"
DNS1=192.168.78.2
[root@localhost ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.78.2
[root@localhost ~]#
标签:
原文地址:http://www.cnblogs.com/rond/p/4264336.html