(ii) Configuring the network for CentOS and using Xshell to remotely connect to CentOS

Source: Internet
Author: User

Well, my lack of knowledge of network protocols and IP configuration has left me here for almost a day to fix it. It can be said that basically the network encountered problems I have met. Here, make a note of the correct steps to configure the network for CentOS. Hope that the future less detours.

The first thing I would like to say is that I am installing the Centos6.3 version on VMware, and I am installing it in a way that does not have a graphical interface, that is, only the command-line operation of the system mode. Because you want to learn Linux from scratch, you have installed only the command-line mode of the desktop. I'm using a bridging approach to configure the network for CentOS , so let's talk about the steps for configuring it.

Configuring the Network for CentOS

(1) The first step

Click on the settings for the virtual machine, as appropriate:

Network connection to choose the bridge mode, the other tick just follow, tick to complete click OK.

(2) Step two

Click on VMware's editing options to find the Virtual network editor and open it. such as changes.

VMhet0 Shang connection mode. Be sure to note that the bridge to the back of the drop-down box may have more than one network card, be sure to choose your host in the Internet. We recommend that you select the physical network card that is connected locally. If you don't know, you can turn on your PC's network adapter to view it. For example, the name of my computer's local connection is as follows:

So I chose to bridge to "Realtek PCIe GBE Family Controller". And you have to right-click the local Area Connection selection property to make the following changes:

Click Properties to select from the following:

Click OK.

Then click "Apply" in the Virtual network editor and click "OK".

(3) Step three

This step is not necessary, but it's better to take a look at it. Make sure that your VMware-related services are started. Open your computer's "services" settings and find the services that start with VMware and make the following changes:

be sure to bring VMware Authori. and DHCP both services are started.

(4) Step Fourth

View the IP address and subnet mask of the computer, and the default gateway information. Open the CMD window in your computer and enter the command "Ipconfig/all". Then find the information such as:

That is, "Realtek PCIe GBE Family Controller" corresponds to the physical network card that we chose to bridge to just now. The red mark in the figure is what we want to remember, the address of "IPV4", the subnet mask, and the default gateway and DNS server. These are the things we want to "configure to CentOS." Be sure to remember it well.

(5) Step Fifth

Well, the above work is finally done, the following will begin to configure the network for CentOS. Power on and enter the virtual machine in VMware, and then enter the command "Setup", such as:

Press the up and down keys to move to "Network Configuraton" and select "Run Tool". Such as:

Select Device Configuration and Press ENTER on the keyboard directly. Such as:

Then press the ENTER key directly, such as:

This is to configure the network for the eth0 file. Now do the following configuration instructions:

Use DHCP   to move to this, press the SPACEBAR on the keyboard, is the "*" sign in brackets disappear, this shows that we want to enter the following values manually.
That is, static IP, whichever is the address of the IPv4 we obtained above, as long as it is set in the same network segment. For example, the address I acquired above is "218.192.116.194", so the first three fields must be the same, and the fourth field will be set arbitrarily. So I set it to "218.192.116.0",
It's the same network segment.
The Netmask subnet mask must be the same as the IPv4, and the above gets what is filled here.
The default gateway IP Defaults must also be the same as above, and what you get here is what you fill out here.
Primary DNS Server DNS servers must also be the same as above.
Secondary DNS server secondary DNS servers, which are the fields below the DNS server above, can not be filled out here.

Well, this is the way to complete the network configuration of CentOS. Next, select "OK", then click Confirm or OK to save. The final interface is still the "Run tool" and "quit" that interface, select "Quit" to exit.

(6) Step sixth

The network configuration above is already configured. We are going to bring it into force . At the command line, enter the command "service network restart". Such as:

You see the four "OK" as shown, which indicates that the configuration was successful. Let's take a look at the network parameters we've configured. Enter "Ifconfig" at the command line, such as:

You can see the parameters of Etho, and its "linet addr" is the IP we just configured. Well, configuring the network for CentOS is done, and you can connect CentOS remotely with Xshell.

Remotely connect to CentOS using Xshell

Xshell download and install the same as the normal software, no longer say more. Start Xshell below. As follows:

Click File, new, we create a new dialog. Such as:

Name can be any one, the protocol must choose "SSH", the host will fill in our configuration to the CentOS full IP, that is just configured "218.192.116.0". Then click on user authentication, as follows:

Username Enter the username set by your virtual machine, and my name is "root". As for the password, can input can not input, in order to secure, here is not entered. then click OK. Such as:

Click on the link. Such as:

Enter the password for your virtual machine, and then click OK. Such as:

The link was successful. To verify this, let's enter the command "Ifconfig" here to see if CentOS can be managed remotely, as follows:

Well, the result is the same as the result of the command we entered on CentOS. Description Xshell link succeeded.

(ii) Configuring the network for CentOS and using Xshell to remotely connect to CentOS

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.