In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today, Xiaobian shared with you the method of RHEL7 setting gateway, IP address and DNS service. I believe most people don't know much about it. In order to let everyone know more, Xiaobian summarized the following contents for everyone. Let's not say much. Let's look down together.
Method 1:
Modify network card configuration file
[root@ys ~]# vim /etc/sysconfig/network-scripts/ifcfg-eno16777728YPE=EthernetBOOTPROTO=static || none //Enable static IP address, BOOTPROTO=dhcp, enable dynamic fetch DEFROUTE=yesIPV4_FAILURE_FATAL=noIPV6INIT=yes|| no //IPV6IPV6_AUTOCONF= yesIPV6_DEROUTE =yesIPV6_FAILURE_FATAL=noNAME=eno 1677728 //Device Name UUID=f248e89a-6788-489f-a236-a401ff596a38 //DEVICE=eno 1677728 //Device name ONBOOT=yes //Start network connection IPADDR=192.168.1.100 //Set IP address PREFIX=24 //Set subnet mask length GATEWAY=192.168.1.1 //Set Gateway DNS1=12.3.1.1 //Set DNSIPV6_PEERDNS=yesIPV6_PEERROUTES=yes
More related articles:
How to configure and use firewall in RHEL 7
RHEL 7 How to configure static IP
Method 2:
Use the nmtui command, as shown below
[root@ys Desktop]# nmtui
Method 3:
Use the nm-connection-editor command, as shown below
[root@ys Desktop]# nm-connection-editor
Finally, the modification takes effect by restarting the network card service.
[root@ys ~]# systemctl restart network
The above are RHEL7 set gateway, IP address and DNS service three ways, the detailed use of the situation also have to be used to know the specific essentials. If you want to read more articles related to content, welcome to pay attention to the industry information channel!
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.