For Linux (CentOs6.6) System Study Notes Series 2 and centos6.6 Series 2
In the previous blog, I used some basic commands and introductions for Linux systems. Then I will introduce how to perform network configurations for some Linux systems. Configure IP address information... Use xshell to remotely manage linux ..
The following are some figures:
1. Enter setup for installation.
2. Select NetWork configuration
3. Select Device configuration
4. Here there is only one network card eth0. We select eth0 to configure the IP address information, and press Enter to confirm.
5. The default asterisk (*) indicates that the IP address is automatically obtained, similar to the automatic retrieval function in Windows.
6. Press Space to remove the asterisk (*). The asterisk indicates that the IP address is automatically obtained, and the IP address, subnet mask, default gateway IP address, and primary DNS are manually configured. After the configuration is complete, press the Tab key to move the cursor to the OK button, and then press Enter to save the settings.
Static IP: 192.168.1.201 subnet mask: 255.255.255.0 default gateway IP: 192.168.1.1 primary DNS server: 202.96.134.small
7. Press the Tab key To Go To The OK (SAVE) button and press Enter to save it.
8. Press the Tab key to go to the Save button and press Enter to Save it.
9. Press the Tab key to go to the Save & Quit (Save and exit) button and press Enter to Save and exit.
10. Press the Tab key To Go To The Quit (exit) button and press Enter to exit.
11. Enter ifconfig to check the current IP address, restart the network service, and restart the NIC service. (In fact, either of the two is enough, but I did not take effect immediately during the operation, then the two operations are completed, but I don't know which one is valid. In actual operation, I can try it several times. After all my operations, it will take effect, so it is safer. (No matter whether it is), then activate the settings to make the settings take effect. Enter ifconfig again to check whether the IP address has taken effect.
Run the service network restart command to restart the network service or restart the network adapter/etc/rc. d/init. d/network restart to activate the device. ifconfig eth0 192.168.1.201ifconfig eht0 upifconfig
12,
Activate the device to make the settings take effect
Ifconfig eth0 192.168.1.201
Ifconfig eht0 up
Ifconfig
13,
14. You need to set the network connection of the network adapter to the bridging mode in the vmwarevm to enable the virtual machine to connect to the Internet. For details about the bridging mode, refer to Baidu. I don't know much about it either. Right-click the Linux (CentOs) Virtual Machine and choose settings. Open the VM settings page
15. Select the network adapter, then select the bridge mode, and click Save.
16,
Ensure that the physical host (Windows7) and the Linux host in VMware can ping each other (note that I have not been pinged during the operation, after the firewall and 360 are switched off, the ping is successful. Previously, the firewall and 360 security guard and 360 anti-virus service were on. You need to turn it off. Otherwise, the ping will fail. In addition, you need to set the network adapter in the virtual machine to the bridging mode. Otherwise, you cannot ping it. You can test it yourself .)
17. Ensure that both parties can ping each other
18. Using xshell to remotely manage Linux, because switching between Windows and Linux in the Virtual Machine always requires Alt + Ctrl to switch, which is very troublesome, therefore, xshell is used for remote management. Search and download Baidu directly. The installation process is the same as the general software installation process.
19. After installation, start the xshell tool, create a new session, and enter some information.
20. Enter the IP address configured for Linux in VMware, a name, and a username. Click OK.
21. You only need to enter the user name and password. Every connection is equivalent to remembering the password. You do not need to enter the password. You can practice it yourself, but this method is not recommended in the company, it is better to manually enter the password for each connection.
22,
23. Enter the password.
24. OK. The connection is successful. Then we can remotely manage Linux in the xshell tool. Try it now. Haha ....
Finally, I want to emphasize that firewall and 360 must be switched off. Otherwise, Xshell cannot be used to connect to Linux,
OK, this is the end. Today is a small summary of my study of Linux this week, because it is just getting started and there are still many things I don't quite understand, I hope you can criticize and correct me .... Happy Learning, happy life!