Linux (CentOs6.3) network configuration

Source: Internet
Author: User

The newly installed virtual machines are often unable to connect to the network, and this article describes how to configure network information on the CentOs6.3 system.

1, the Windows System shortcut key windows+r, input cmd and OK, open the Black window

2. Enter ipconfig in the Black window and press ENTER

3. Record the IPv4 address and default gateway under VMnet8, as

After the VMware software is installed, the operating system will virtual two virtual network cards, VMnet1 and VMnet8

4. Enter the command in the virtual machine and press ENTER

vim /etc/sysconfig/network-scripts/ifcfg-eth0

5, enter the following information in this file, and save the exit

    1. Bootproto=none----------------means setting a static IP address
    2. HWADDR------------------------The MAC address of the network card, without modification, keep the default
    3. nm_controlled-----------------device eth0 can be managed by the Network Manager graphical management tool, without changing the default
    4. Onboot=yes--------------------Boot, fill Yes
    5. Type=ethernet-----------------Network type, do not change
    6. UUID--------------------------do not change
    7. IPADDR------------------------The virtual machine IP address (based on the Vmnet8 information recorded above, fill in the default gateway with the IP address of the network segment, such as 192.168.25.3, but do not fill in 192.168.25.11 is already occupied. If you have more than one virtual machine installed, remember that the IP addresses of each are not duplicated.
    8. NETMASK-----------------------Subnet mask, fill 255.255.255.0
    9. Gateway address-----------------------Fill in the Vmnet8 to see the information, I fill 192.168.25.2
    10. Ipv6init---------------------whether to prohibit IPv6, by default, no tube
    11. Userctl----------------------whether to allow non-root users to control the device, no means that only the root user can modify
    12. DNS1-------------------------The first DNS server to fill out the gateway address
    13. DNS2-------------------------A second DNS server that can be filled 8.8.8.8

6, previous step configuration information fill in Save and exit, restart the Network service, enter the command

service network restart

7. Enter the command ifconfig to view the network information just configured

8, use ping command, can ping to indicate network configuration complete

Linux (CentOs6.3) network 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.