Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure IP address and DNS for RHEL8

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to configure IP address and DNS in RHEL8. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

1. Redhat8 series officially uses nmclit for IP address modification and configuration:

Stop and disable network:

Systemctl stop networksystemctl mask network

And enable NetworkManager:

Systemctl start NetworkManagersystemctl enable NetworkManagermcli connection modify ens33 (network card name) ipv4.addresses 172.16.30.100 nmclit connection up ens33 24 ipv4.gateway 172.16.30.1 ipv4.dns 172.16.30.243 connection.autoconnect yes (automatic connection) ipv4.method manual (manual configuration) mcli connection modify ens33 (network card name) connection.autoconnect no (not automatic connection) ipv4.method auto (automatic acquisition) nmclit connection down ens33 (network card name) nmclit connection up ens33 (network card name) systemctl restart NetworkManager # restart service 2, View the network card hardware device nmclit device show # View the hardware device nmcli connection delete ens33 # delete the network card configuration nmcli connection add type ethernet con-name enss33 ifname ens33 connection.autoconnect yes to create the network card type as Ethernet The name is enss33, matches the hardware network card ens33, and automatically connects and configures DNS:vi / etc/resolv.conf if nameserver 202.96.104.17 modifies the hostname: hostnamectl set-hostname JT-XX-040 on "how to configure IP addresses and DNS in RHEL8", this article ends here. I hope the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good. Please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report