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

推荐订阅源

S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
P
Palo Alto Networks Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
雷峰网
雷峰网
T
Tenable Blog
人人都是产品经理
人人都是产品经理
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Scott Helme
Scott Helme
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Recorded Future
Recorded Future
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
Cloudbric
Cloudbric
C
Check Point Blog
Engineering at Meta
Engineering at Meta
TaoSecurity Blog
TaoSecurity Blog
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
N
News and Events Feed by Topic
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
腾讯CDC
量子位
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
Vercel News
Vercel News
F
Full Disclosure
T
Troy Hunt's Blog
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs

芈亓的Blog

Docker迁移数据教程 – 芈亓的Blog CentOS安装记录之无线网卡 – 芈亓的Blog IDEA通用激活码,有效期一年 – 芈亓的Blog Intellij IDEA激活码 – 芈亓的Blog 阿里云服务器学生合集,赶快看过来!!! – 芈亓的Blog ChatGPT-NEXT-Web免费使用 – 芈亓的Blog swagger使用教程 – 芈亓的Blog SpringBoot项目集成QuartzJob任务 – 芈亓的Blog Maven加载本地Jar包的实操记录 – 芈亓的Blog MySQL主从复制学习小记 – 芈亓的Blog Elasticsearch 保姆级入门篇 – 芈亓的Blog 免费搭建自己的私人ChatGPT小助手 – 芈亓的Blog 宝塔面板使用记录分享 – 芈亓的Blog “七七事变”86周年!勿忘国耻,吾辈自强! – 芈亓的Blog NVM安装步骤及使用方法 – 芈亓的Blog 炒菜的一个坏习惯,很多人还在做! – 芈亓的Blog 早上吃粽子,要多久才能消化完? – 芈亓的Blog 长夏如意,逢考必赢 – 芈亓的Blog 公司砍的就剩我俩了,万万没想到... – 芈亓的Blog
CentOS安装记录之固定IP – 芈亓的Blog
芈亓 · 2024-07-16 · via 芈亓的Blog

干货分享

##red##
安装完自己的CentOS系统之后,解决连接网络IP频繁变化的问题,在CentOS中设置固定的WiFi IP地址,通常需要编辑网络接口配置文件。以下是一个基于命令行的快速指南:(有线网络和这个操作也大差不差)

  1. 找到你的WiFi网络接口名称。
nmcli d
  1. 编辑对应的网络配置文件。假设你的WiFi接口名称是wlp3s0,运行:
sudo vi /etc/sysconfig/network-scripts/ifcfg-wlp3s0
  1. 修改或添加以下内容:
BOOTPROTO=static
ONBOOT=yes
IPADDR=你的固定IP地址
NETMASK=你的子网掩码
GATEWAY=你的默认网关
DNS1=首选DNS服务器
DNS2=备用DNS服务器
  1. 重启网络服务:
sudo systemctl restart network

##green##
确保替换你的固定IP地址、你的子网掩码、你的默认网关、首选DNS服务器和备用DNS服务器为实际值。
以下是一个配置文件的示例:

DEVICE=wlp3s0
TYPE=Wireless
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
DNS2=8.8.4.4

保存文件并重启网络服务后,你的CentOS系统应该会使用新设置的静态IP地址连接到WiFi。