In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Most people do not understand the knowledge points of this article "centOS7 NET mode how to set static Ip", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "centOS7 NET mode how to set static Ip" article.
View of static ip and subnet mask
Click edit-virtual network editor
Click dhcp settings
Static ip is
One between 192.168.230.128 and 192.168.230.254
So let's modify the ip definition 192.168.230.129
View Gateway
So let's also record the address of the gateway 192.168.191.2.
Step 1: enter the / etc/sysconfig/network-scripts/ directory
Step 2: modify the ifcfg-eth (xxx) file
Vim ifcfg-eth0
The attributes that need to be modified are:
Replace onboot=yes # no with yes
Replace bootproto=static # dhcp with static
Add:
Ipaddr=192.168.191.129 # static ip address
Gateway=192.168.230.1 # default gateway
Netmask=255.255.255.0 # Subnet Mask
Step 3: restart the network
Service network restarttype=ethernetproxy_method=nonebrowser_only=nobootproto=staticdefroute=yesipv4_failure_fatal=noipv6init=yesipv6_autoconf=yesipv6_defroute=yesipv6_failure_fatal=noipv6_addr_gen_mode=stable-privacyname=ens33ipaddr=192.168.191.129gateway=192.168.191.2netmask=255.255.255.0dns1=8.8.8.8uuid=6d7d57bc-db00-454d-b66e-40f65bc163eedevice=ens33onboot=yes
Turn off the firewall
Test the ping public network
Finally, 192.168.191.129 is the ip of the virtual machine.
The above is about the content of this article on "how to set static Ip in centOS7 NET mode". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow 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.