In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
After we have added the hardware, we can view the specific network in the configuration file / etc/udev/rules.d/70-persistent-net.rules
The card serial number remains the same as the rest of the Nic configuration steps. Please refer to the following:
Network mode: bridge mode, NAT mode
1.1.The bridging mode is that when a router exists in a network environment, it can support dhcp to automatically obtain IP (command dhclient). The steps are similar to NAT.
1.2.The NAT mode is to surf the Internet through the network of the real machine, where there is no need to set up the sharing of the real machine network card, and it can also be supported.
Dhclient command to obtain the IP address and gateway, and write the obtained IP address and gateway to the configuration file / etc/sysconfig/network-
Scripts/ifcfg-eth0 (for eth0 network cards).
NAT mode configuration steps:
1. Set the network mode of the virtual machine to NAT mode
2. Open the configuration file / etc/sysconfig/network-scripts/ifcfg-eth0 to see if BOOTPROTO is dhcp.
If not, change it to dhcp so that you can effectively use the command dhclient
3. Use the command dhclient to obtain the IP address, subnet mask and gateway address, and write to the configuration document
/ etc/sysconfig/network-scripts/ifcfg-eth0, and change BOOTPROTO to static so that what you get can be saved permanently.
Take IP and GATEWAY, and change ONBOOT to yes at the same time, so that it starts with the boot, so that as long as the network environment remains the same, it will not be used at boot time.
Reconfigure IP
4. At the same time, write the DNS address in the configuration file, otherwise you cannot connect to the public network: the network where the DNS1= gateway address DNS2= is located.
DNS address of the network (for example, the DNS of Jiangxi Mobile CMCC is 221.176.4.9)
5. If you cannot access the Internet, it means that the address of the gateway is wrong. At this time, we can use the command route-n to see which network we have obtained.
Turn it off and IP, write to which one is displayed.
6. Restart the network service: service network restart, and you can ping the extranet.
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.