1,配置dns
vi /etc/resolv.conf
复制代码 代码示例:
nameserver 61.139.2.69
2,网卡配置文件
vi /ets/sysconfig/network-scriptes/ifcfg-eth0
复制代码 代码示例:
DEVICE=eth0
HWADDR=F0:92:1C:F2:C7:AD
TYPE=Ethernet
UUID=2e47513f-b374-48d6-92bf-2188bd49f23f
ONBOOT=yes
BOOTPROT=static
IPADDR=192.168.0.84
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
NM_CONTROLLED=yes
#BOOTPROTO=dhcp