centos7.4 Minimal安装完后无法联网

安装 minimal 完成后无法联网更新

查看当前ip信息

ip addr show 

编辑网卡配置信息

vi /etc/sysconfig/network-scripts/ifcfg-enxxxxxxxx

# 没有的补全相应信息
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=no
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
NAME=eth0
DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS=9.9.9.9

重启网络服务

service network restart

测试

ping baidu.com

安装基础工具

yum -y update

yum install -y net-tools vim tree screen
Author: thinkwei

1 thought on “centos7.4 Minimal安装完后无法联网

  1. I am really impressed together with your writing abilities as neatly as with the structure for your blog.
    Is this a paid theme or did you customize it your self?
    Either way keep up the nice high quality writing, it is rare to see a great weblog like this one today..

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注