惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
V
V2EX - 技术
S
Secure Thoughts
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
S
Securelist
S
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
H
Hacker News: Front Page
Microsoft Azure Blog
Microsoft Azure Blog
I
Intezer
Google Online Security Blog
Google Online Security Blog
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
The Cloudflare Blog
I
InfoQ
L
LangChain Blog
U
Unit 42
P
Proofpoint News Feed
S
Schneier on Security
S
Security Affairs
Y
Y Combinator Blog
T
Tenable Blog
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
量子位
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
GbyAI
GbyAI
AWS News Blog
AWS News Blog

行迹小栈

英语十大词法汇总 - 行迹小栈 保定市林草生态园 - 行迹小栈 【北京】-八达岭长城 - 行迹小栈 【北京】-颐和园 - 行迹小栈 【上海】 - 行迹小栈 【唐山市】河头老街-唐山宴-唐山地震博物馆 - 行迹小栈 【天津】 - 行迹小栈 【北京】-天安门 - 行迹小栈 【张家口】-蔚县 - 行迹小栈 🐍 Python ORM 技术选型指南: SQLAlchemy 与 SQLModel - 行迹小栈 Mysql查询:每个重复数据,只显示一条 - 行迹小栈 python提取excel中的超链接 - 行迹小栈 CentOS7通过rpm安装docker和docker compose - 行迹小栈 Requests verify=False 报错:InsecureRequestWarning: Unverified HTTPS request is being made to host - 行迹小栈 centos7 初始化脚本 - 行迹小栈 我的瘢痕疙瘩治疗过程记录 - 行迹小栈 关于瘢痕疙瘩-为什么-治疗方案-如何预防 - 行迹小栈 javascript基础教程 - 行迹小栈 python使用subprocess配合node.js执行js代码 - 行迹小栈
Vmware centos7 配置静态网络 - 行迹小栈
行迹小栈 · 2025-08-18 · via 行迹小栈

一、关闭防火墙

systemctl stop firewalld
systemctl disable firewalld

二、关闭NetworkManager

systemctl stop NetworkManager
systemctl disable NetworkManager

三、vmware网络设置

vmware点击编辑,打开虚拟网络编辑器,点击NAT模式

企业微信截图_17554964989587.png

点击NAT设置,里面有子网掩码和网关

企业微信截图_17554965269535.png

四、centos7网络配置

启动虚拟机,编辑网络配置文件:vi /etc/sysconfig/network-scripts/ifcfg-ens33,按i进入insert编辑模式

修改以下内容:

BOOTPROTO=static  启用静态IP地址
ONBOOT=yes      开启自动启用网络连接

添加以下内容

IPADDR=192.168.1.101   设置IP地址
NETMASK=255.255.255.0  子网掩码
GATEWAY=192.168.1.2    设置网关
DNS1=8.8.8.8           设置DNS1
DNS2=114.114.114.114   设置DNS2

IPADDR:即第三步中的 子网ip 的ip地址,192.168.1.x 最后一位只要在0~255范围内随便取一个数字就可以,这里选择101

GATEWAY:即”NAT设置“里面的网关IP 192.168.1.2

企业微信截图_17554973629827.png

最后按下Esc进入命令模式输入 :wq 按下回车,保存并退出。

五、重启测试验证

  1. 重启network
    systemctl restart network
    
  2. 查看ip地址
    ip a
    
  3. 测试网络
    ping www.baidu.com
    

企业微信截图_17554989423937.png