centos7配置开启无线网卡,重启防火墙

centos7配置无线网卡:

在虚拟机为nat的网络连接下(就是默认的那个),centos7默认网卡未激活

可以设置 

文件 /etc/sysconfig/network-scripts/ifcfg-enp0s3(这里的enp0s3不是固定的,看你具体情况,但是基本是en开头的)

 将 ONBOOT=no 改为 ONBOOT=yes

保存后重启网卡: service network restart

 

centos7重启防火墙:

防火墙配置后执行service iptables save/restart 出现”Failed to restart iptables.service: Unit iptables.service failed to load: No such file or directory.”错误,在CentOS 7或RHEL 7或Fedora中防火墙由firewalld来管理,当然你可以还原传统的管理方式。

1.systemctl stop firewalld
2.systemctl mask firewalld
3.yum install iptables-services(注:安装iptables-services)
4.systemctl enable iptables(注:设置开机启动)
5. systemctl [stop|start|restart] iptables
  #or
  service iptables [stop|start|restart]
6. service iptables save
#or
/usr/libexec/iptables/iptables.init save

转载于:https://www.cnblogs.com/jiubiubiu/p/6165057.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值