---
title: "centos7 不能联网"
author: "chzhxu"
date: "2017-08-09T06:31:27Z"
tags: []
categories: ["操作系统"]
slug: "centos7"
draft: false
lastmod: "2017-08-09T06:31:27Z"
id: 2388960
url: "https://gangling.iteye.com/blog/2388960"
---

进入到目录
cd /etc/sysconfig/network-scripts

查看网卡文件：ifcfg-ens开头的文件
ll

修改网卡文件属性：

ONBOOT=yes

重启网卡
service network restart