首页 > 编程知识 正文

centos 查看网卡,centos7重启后网卡不启动

时间:2023-05-03 08:06:19 阅读:126637 作者:3766

1、如何重新启动centos6网卡:服务网络重启

如何重新启动centos7网卡:系统重新启动网络

2、centos重启网口方法:

关闭网卡端口: ifdown eth0或ifconfig eth0 down

启动网卡: ifup eth0或ifconfig eth0 up

3、配置网卡ip

增加IP:ifcfgeth 0a DD 192.168.1.251/24

IP :删除ifcfgeth0del 192.168.1.251/24或ifcfg eth0 stop

4、DNS配置文件: cat /etc/resolv.conf

5、关闭防火墙,设置不通电

查看防火墙状态: systemctlstatusfirewalld.service

关闭: systemctl stop firewalld

打开:系统启动防火墙d

自动断电: systemctl disable firewalld

自动启动: systemctl enable firewalld

检查是否开机启动: chkconfig-- list|grep network (rhle6) ) ) ) ) ) ) ) )。

6、暂时永久关闭Selinux

暂时关闭:

#获取基础设施

增强功能

#setenforce 0

setenforce : selinuxisdisabled

永久关闭:

#vim /etc/selinux/config

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。