In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
One of the most important operations to use the Linux system is to enable the Linux system to access the Internet. Only the Linux system can access the Internet to download a lot of resources you need. If you cannot access the Internet, then using the Linux system will often get stuck in this step. If you install a minimal version of CentOS, then many tools under the Linux system are not installed. If you cannot access the Internet at this time, You will feel a special pain because many tools cannot be downloaded and installed, so today the editor will share with you how to configure the Linux system under VMware to successfully access the local area network and the external network.
Step 1: turn on the VMware virtual machine, click the network adapter, and change the network adapter to bridge mode (B): connect the physical network directly and check the copy physical network connection status (P)
Step 2: start your own virtual machine, that is, running the Linux operating system. If you will not install the Linux system under the virtual machine, you can find the relevant articles in the essay Linux category of small Alan. Click to turn on the virtual machine and wait for a while.
Step 3: enter the user name and password of the LInux system to log in to the Linux operating system and simply verify that you can access files and directories
Step 4: enter the ifconfig command to view the current settings of the current network device, and remember the network card address. Assuming that you cannot access the network at this time, you may need to configure this network card address in the network configuration. The string after ether is
Step 5: test whether the network can access the local area network and the external network (Internet), use the ping command, first test the internal network (accessing the ip address of the computer you are using), and then test the external network (visiting Baidu, etc.), you can see that there is no problem with my network transmission, which further verifies that there should be no problem with the configuration of the small Alan, right? Suppose the network is not connected at this time, how to solve it?
Step 6: go to the / etc/sysconfig/network-scripts directory through the cd command and pay attention to the first file in the directory
Step 7: open the file through the vi command, press the enter key to enter the file, press I to enter the edit mode, configure the network parameters as shown in the figure, remember that the information configured through the bridge mode must be on the same network segment as your computer, and then press the ESC key to enter: wq save and exit
Step 8: restart the network device through the service network restart command. Remember to restart the network device after configuring the network parameters, otherwise the configuration may not take effect.
Step 9: use the ifconfig command to check whether the configuration is effective and whether the ip address has become the ip address configured by yourself.
Finally, use the ping command to test whether the private network environment and the public network environment can be connected, and use Ctrl+z to disconnect the test and continue to perform other operations:
In this way, you can successfully access the local area network and the external network.
Summary
The above is the tutorial of configuring local area network and external network access to Linux under VMware introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
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.