Blogger Information
Blog 291
fans 0
comment 0
visits 350629
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
centos8.0配置静态IP详解及永久关闭防火墙
Original
982 people have browsed it

镜像下载、域名解析、时间同步请点击 阿里云开源镜像站

1. 查看自己的网关地址

点击虚拟机中编辑按钮,选中虚拟网络编辑器

file

2.选择点击VMnet8,再点击NAT设置

file

3.记住此时页面的网关IP

file

4.进入虚拟机终端操作界面,切换到管理员用户

file

5.找到CentOS8网络配置文件

cd /etc/sysconfig/network-scripts/

找到自己文件夹下的当前文件

file

6.进入并编辑该文件,vim命令后接的是自己当前目录下的文件名

vim ifcfg-ens160

file

7.进行如下修改

file

8.重启网络,ping百度看看网络是否通畅

nmcli c reload

file

9.查看防火墙是否开启的

systemctl status firewalld.service

file

10.关闭防火墙

systemctl stop firewalld.service

11.禁止防火墙自启动

systemctl disable firewalld.service

12.用远程工具测试连接看看

file

本文转自:https://www.cnblogs.com/dockerwyy/p/16280023.html

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post