CentOS 8及以上版本配置IP的方法,你 get 了吗

资讯 2024-06-23 阅读:25 评论:0
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址


接上篇文章讲了?Ubuntu 18及以上版本的配置方法,本文再来讲讲 CentOS 8 及以上版本配置 IP 的方法。

Answers the previous article on how to configure Ubuntu 18 and above, and in this case on how to configure CentOS 8 and the above version IP.

说明:CentOS 8 是新发布的系统(发布时间:2019.9),IP 配置方式和以前版本不一样。使用 NetworkManager工具配置。

Note: CentOS 8 is a newly issued system (issue time: 2019.9), the IP configuration is different from the previous version. Use the NetworkManager tool configuration.

而以前的版本时通过修改配置文件来配置,并由network.service 提供服务。

The previous version was configured by modifying the profile and served by network.service.

CentOS 8 已废弃 network.service,默认只能通过NetworkManager.service 提供的 nmcli 命令修改网络配置

CentOS 8 has been abandoned network. service, defaulting to modify network configurations only by nmcli command provided by NetworkManager.service

当然如果希望 8 版本以后支持修改配置文件的方式,需要安装 network.service

Of course, if you want version 8 to support the way the profile is modified, you need to install network.service

配置静态 IP:

Configure static IP:

配置动态 IP:

Configure dynamic IP:

修改IP(非交互式):

Modify IP (non-interactive):

修改 IP(交互式):

Modify IP (interactive):

查看 ip(类似于、):

View ip (similar to:

这里也说下之前版本的配置方法,让大家有个对比。

And here's the previous version of the configuration, so let's make a comparison.

修改对应网卡的 IP 地址的配置文件

Modify the configuration file for IP addresses of the Internet cards

修改以下内容:

Amend the following:

其中,包括 IP、网关、DNS 等

Among them are IPs, gateways, DNSs, etc.

网关地址可以通过上面的方式配置,也可以修改下面网关的配置文件:

The gateway address can be configured in the same way as above, or the following gateway profile can be modified:

修改以下内容:

Amend the following:

同样,DNS 可以用上面的方式配置,也可以修改 DNS 配置文件:

Similarly, the DNS can be configured in the way above, or the DNS profile can be modified:

修改以下内容:

Amend the following:

最后,记得重新启动网络配置生效:

Finally, it is important to recall that the reboot of the network configuration is in effect:

注意:文章说的都是永久生效方式,临时生效就是用或命令配置即可。

N.B. The articles are all about the permanent mode of entry into force, and provisional entry into force is simply the use or configuration of the order.

OK,今天的文章不用五分钟,相信大家已经 get 了两个新技能。如果觉得有帮助,不妨动动手指给个点赞吧,谢谢!

OK, today's article won't take five minutes, and I'm sure you've got two new skills. If it helps, move your fingers. Thank you.


美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 0.00003374个比特币等于多少人民币/美金

    0.00003374个比特币等于多少人民币/美金
    0.00003374比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00003374比特币等于2.2826 1222美元/16.5261124728人民币。比特币(BTC)美元(USDT)人民币(CNY)0.00003374克洛克-0/22216.5261124728比特币对人民币的最新汇率为:489807.72 CNY(1比特币=489807.72人民币)(1美元=7.24人民币)(0.00003374USDT=0.0002442776 CNY)。汇率更新于2024...
  • 134 USD toBTC Calculator -

    134                            USD                        toBTC                        Calculator -
    For the week (7 days) Date Day 134 USD to BTC Changes Changes % June...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
  • 12年怎么购买比特币?比特币投资,轻松掌控

    12年怎么购买比特币?比特币投资,轻松掌控
    12年怎么购买比特币?买卖比特币可以通过以下交易所进行购买,分别是:欧易官网平台、ZG交易所、艾戴克斯交易所、C2CX交易软件、BaseFEX交易APP、波网交易平台、安银交易所、BitMart交易软件、紫牛币交所交易APP和澳网(AOMEX)交易平台等等十大平台下载,高效安全的数字货币交易平台。How do you buy bitcoins in 12 years? Bitcoins can be purchased through ten major platforms...
  • 0.00015693个比特币等于多少人民币/美金

    0.00015693个比特币等于多少人民币/美金
    0.000 15693比特币等于多少人民币?根据比特币对人民币的最新汇率,0.000 15693比特币等于10.6 1678529美元/76.86554996人民币。比特币(BTC)【比特币价格翻倍】美元(USDT)人民币(CNY)0.000/克洛克-0/5693【数字货币矿机】10.6 167852976.8655254996比特币对人民币的最新汇率为:489,807.72 CNY(1比特币= 489,807.72人民币)(1美元=7.24人民币)(0.00015693 U...
标签列表