Redhat6.5 version Linux virtual network card configuration

Source: Internet
Author: User

Redhat6.5 Virtual machine configuration nic
1. Turn on the virtual machine

Right-click and select "Open in Terminal"

The following interface appears

There are no C-drives, D-drives, e-disks in the Linux system. He was made up of documents,

To connect an IP address that requires a virtual machine, you need to configure the virtual machine's IP address. First find out where you can configure IP. In a Linux system, the/etc directory is used to store the configuration files in the system, so you need to go to this interface with commands.

Our goal is to add IP address, is to change a parameter so in the etc file to find the system parameters to modify.

After entering LS, you can look at all the file names contained in the file, locate the Network-scripts (network card script), indicate that the file you are looking for is correct, and then enter the script.

Go to Script

The ifcfg-eth0 needs to be compiled and changed. Enter

The following interface appears, in order for the virtual machine to link with the host, you need to change "onboot=no" to "Onboot=yes", and "Bootproto=dhcp" to "bootproyo=static" because the external network is not connected, Just connect the virtual machine to the host and use a static IP.

To modify it, you press the "I" Key and an "insert" appears below

Next, the IP address is added, which makes the virtual machine and the host's IP in the same network segment.
Host IP:

When adding a virtual machine also requires the same network segment, while adding a subnet mask, Gateway:

End Edit Press ESC, insert two characters disappear.

Then press ":" the cursor will automatically move to the last line.

Then "Wq" ends the edit.

Ends the edit. Finally, you can restart the NIC.


You can ping the host console.

The test was successful.

Redhat6.5 version Linux virtual network card configuration

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.