(3) Connecting Linux systems on VMware using the Xshell tool

Source: Internet
Author: User

Configuring a network on a Linux system on a VMware virtual machine  The first step is to clarify my purpose: to connect with the virtual machine using the Xshell tool via the local computer. Therefore, I need to do the following steps:1: View the local IP address, subnet mask, default gateway, DNS server address, and so on. Enter DOS interface input:ipconfig/all
2: Configure the network connection by manually on the virtual machine:To make Xshell and virtual machines connected, the virtual machine should first have an IP address, and here in the virtual machine is the way of bridging, we can take a manual to configure the virtual machine IP address.
You can enter the Setup command in a virtual machine,go directly to the configuration IP address interface and select the third item:

Select the first item: Device Configuration
Select Nic Eth0
Configure static IP and gateways (refer to local IP configuration)
then save and exit, back to the shell interface, we can enter the command:ifconfig See if we have the IP information we just configured. (I did not show the ETH0 network card information when I configured it). The default is the off state.
The virtual machine's Nic Eth0 is turned off by default, and here we open it by modifying the configuration file. 2. Set the configuration file for the NIC:The IP of the previous virtual machine has been configured, but the network card has not been started, we need to enter the configuration file set to run state.
Enter the command:
# Vi/etc/sysconfig/network-scripts/ifcfg-eth0 [Edit Network card profile] Enter the above command and return to open the configuration file
Use the arrow keys to move the cursor to the last line, press the letter key "O" and enter edit mode:

Change "Onboot" to Yes (start state) (if "Bootproto" is DHCP, change to Bootproto=none)
When you are done, press the ESC key in the upper-left corner of the keyboard.
Input:
: Wq (Note the preceding: symbol)

At the bottom left of the screen, you can see the input enter to save the configuration file.
the configuration file of the network adapter has been set up, restart the network service:
after the network restarts, the IP of the NIC eth0 is in effect and is viewed using the command # ifconfig eth0 .

You can also view it by command # ifconfig
configuration Here, we have successfully configured the ETH0 network card on the virtual machine. 3: Ping the IP test locally and create a new session in Xshell to test:Ping IP in DOS command Window
establish a session in the Xshell tool and configure the connection:The name is random, the protocol uses SSH, the host is just configured IP address, port number
Configure user authentication: The user name of the Linux system on the virtual machine is root
Accept and Save:
Enter the password for the password on the Linux system on the virtual machine
This interface appears, indicating that the virtual machine has been successfully connected via the Xshell tool
View the partitions on the virtual machine, which were previously added when the Centos_linux system was mounted on the virtual machine



(3) Connecting Linux systems on VMware using the Xshell tool

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.