In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to set up dual network cards in the Linux system. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
1. First of all, let's take a look at the network card parameters of the current system. You can see that in addition to a loop network card "lo" and a virtual network card "virbr0", there is only one network card "ens33".
two。 Now let's add a network card to it, and then look at the parameters of the network card. We can see that there is already an additional network card "ens36".
3. But we go to the configuration file directory "/ etc/sysconfig/network-scripts/" directory, but there is no "ens36" configuration file.
4. We are in a state of networking at this time, and the "ens36" network card has automatically obtained the IP address, but not if we need to configure the IP address manually, because it does not have a configuration file. Then we need to solve this problem. First, we change the network mode of the two network cards of the virtual machine to host-only connection mode to create an experimental environment that requires manual configuration of IP addresses.
5. First of all, we use the vim editor to modify the configuration file "/ etc/sysconfig/network-scripts/ifcfg-ens33" of the "ens33" network card. We will automatically obtain the IP address "dhcp" to manual "static", and then add the IP address, subnet mask, gateway. Restart the network service after modification.
6. Now we need to edit the configuration file for "ens36", but it doesn't use the configuration file, so we use the "cp" command directly, and the "- p" option means to keep the original permission to copy. Make a copy of the "ens33" configuration file, name it "ens36", and configure it.
7. We just need to go to the configuration file of "ens36" and change all "ens33" to "ens36", and then change the IP address, subnet mask and gateway to what you need to set up. Note that the UUID of the two network cards cannot be the same, we can delete it directly. Remember to restart the network service after configuration.
8. Let's take a look at the parameters of the Nic and see that the IP addresses of both NICs have been set successfully.
The above is how to set up a dual network card in the Linux system shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to 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.