In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to configure Centos7 system virtual machine bridging mode". In daily operation, I believe many people have doubts about how to configure Centos7 system virtual machine bridging mode. Xiaobian consulted various materials and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to configure Centos7 system virtual machine bridging mode"! Next, please follow the small series to learn together!
The host ping does not connect to the IP of the virtual machine centos7 system for most of the following reasons:
1. The host corresponds to the IP segment of Centos7 (the key is that the gateway and DNS server should correspond one by one, see the following for specific operations)
2, after the corresponding is still blocked, you can turn off the host and cenos7 firewall, cenos 7 default firewall, which is different from cenos 6
Related commands:
systemctl stop firewall.service #stop firewall systemctl disable firewall.service #disable firewall startup
3. If the above settings are still not working, you can enter arp -a in cmd of the host to see if the mac ip bound to the gateway is the same as the ip you set in the virtual machine. Modify the ip address in the virtual machine to ping
Configuration of connecting to external network in virtual machine centos7
First, set the virtual machine connection mode to bridge.
Open the virtual machine, click "Edit"--"Virtual Network Editor" and click "Change Settings" to see the bridge mode. There are several bridge mode options, where you can choose Ethernet based or wireless local area network. The ip address of the virtual machine should correspond to the ip segment of the ethernet or wireless network you choose (i.e., the first three parts of the ip address should match).
Click "Virtual Machine"--"Settings" and select "Bridge Mode" in "Network Adapter".
Second, enter the centos7 system of the virtual machine and modify the ip of centos7.
1、cd /etc/sysconfig/network-scripts/
2, ls here appears ifcfg-ens33, different machines may be different.
3、vi ifcfg-ens33
Host: ip: 192.168.111.46 Gateway: 192.168.111.1
4.:wq save exit
systemctl restart network.service restart network
6. At this time, you can test whether the host can ping the virtual machine.
3. If the above cannot be networked, then configure dns.
1. nmcl connection show Displays the currently connected network
If it is not displayed, it means that there is no network connection currently established, and ens33 needs to be activated up.
2. Modify the dns server corresponding to the current network connection. The network connection here can be identified by name or uuid.
nmcl con mod ens33 ipv4.dns "114.114.114.114 8.8.8.8" Here 114.114.114 and 8.8.8.8 are commonly used in China, but if it is an enterprise local area network dns may be different, you can open the "network sharing center" in the host computer,
Click on the connected Ethernet or wireless network, open the "details" inside there will be "ipv4 dns server" to replace its copy of the above command
114.114.114.114 and 8.8.8.8
3. Put the DNS configuration into effect nmcl con up ens33
systemctl restart network.service restart network
Then you can connect to the network.
At this point, the study of "how to configure the bridge mode of Centos7 system virtual machine" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.