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 > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Lab introduction: configure the network cards of two different network segments on the virtual machine linux.
1. Add a new network card
2. After installing the two network cards, connect to the host and use ifconfig to view the information of the two network cards. The dhcp service can automatically configure the IP address for the new network card ens36 under vmnet8, but it cannot automatically obtain the IP address under the host alone.
3. Change the two network cards to host-only mode, and match the two network cards with the addresses of different network segments, which can serve as a proxy server and a firewall.
Configure the Nic information of ens33, and then restart the Nic to take effect.
[root@localhost ~] # vim / etc/sysconfig/network-scripts/ifcfg-ens33 configure the network card information of ens33
[root@localhost ~] # service network restart restart the network card service
3. Because there is no configuration file for another network card ens36 under / etc/sysconfig/network-scripts/, copy a configuration file first, and then modify the configuration information.
[root@localhost network-scripts] # cp-p ifcfg-ens33 ifcfg-ens36 copy configuration file to ens36
[root@localhost ~] # vim / etc/sysconfig/network-scripts/ifcfg-ens33 configure the network card information of ens33
[root@localhost ~] # systemctl restart network restart the network card service
The experiment of double network card configuration with different network segments has been completed.
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.