In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how RHEL7 configures static IP. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Do the following:
1. Configure the ip address locally:
2. Verify the status of the network manager. Active: active (running) indicates that it is running. Generally, RHEL7 is installed by default.
[root@localhost ~] # systemctl status NetworkManager.service
3. View network devices and status
[root@localhost ~] # nmcli dev
Ethernet (Ethernet) device, if the device status is not connected, enable it
4 、
[root@localhost ~] # nmcli con up id eno16777736
Indicates that the connection is successful!
5. Check the directory / etc/sysconfig/network-scripts to see if there is a configuration file for the device, ifcfg-enp0s3. If not, create a new one.
[root@localhost /] # ls / etc/sysconfig/network-scripts/
6. Edit the configuration file ifcfg-eno16777736
[root@localhost /] # vi / etc/sysconfig/network-scripts/ifcfg-eno16777736
Focus on configuring these:
TYPE=Ethernet
BOOTPROTO=static # enable static IP address to dynamically acquire ip if it is dhcp
NAME=enp0s3
ONBOOT=yes # enable automatically enable network connection
IPADDR= address
NETMASK= mask
GATEWAY= Gateway
DNS1=, your DNS.
7. Restart network services
[root@localhost ~] # systemctl restart network
8. Set up ok. Try ping.
Thank you for reading! On RHEL7 how to configure static IP to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.