How to configure the network in linux
Many people are all commands when they come into contact with the Linux system. If they are not equipped with a graphical interface, it is very unfriendly to the newcomers. If you want to connect Linux to your own windows system, and use xshell It is difficult to operate remotely.
Good start topic: Talk about how to configure static network ip in VMware Workstation. If you use dynamic dhcp, the ip address will change every time you boot or after a while, and then xshell will have to change the host name again, which is very troublesome . The static IP address configuration can solve this problem once and for all.
First of all, we must master a few commands
ip add to view network card information ifconfig to view network card information ip a to view network card information These three commands can be used whichever is available.
Step 1:
Click on the virtual machine -> then click on settings,
then click on edit to enter the virtual machine settings
Then select the network adapter and modify the network to NAT mode
Then select VMnet8 and cancel dhcp, and then click dhcp settings to
remember the ip address inside, and then we will configure it in the network card configuration file.
Next, we enter this command in the terminal
Then you can write the information we just checked in the configuration file, and we will set the ip to the same network segment
configuration information explanation
Then set VMnet8 in their own Windows ip address set just we configurations ip address of the same network segment as
well and then we restart the network services
then ip address in Windows ping virtual machine
ip address in a virtual machine ping Windows is
if If you can ping each other, there is no problem, and xhsell can connect normally.