CentOS web configuration on virtual machines

Source: Internet
Author: User

CentOS web configuration on virtual machines

1. Set the VM Nic to bridge

2. Set the IP address to a fixed IP Address

3. Set Subnet Mask

4. Set the gateway to the IP address of the LAN router.

5. Set DNS my centos system, need to have DNS1 DNS2 in the ifcfg-eth0 method settings, in resolv. conf settings are invalid, this should be noted

Finally, paste the configuration information in the ifcfg-eth0, after you can access the Internet

DEVICE = "eth0"
BOOTPROTO = "static"
HWADDR = "00: 0C: 29: 2b: 16: 36"
IPV6INIT = "yes"
NM_CONTROLLED = "yes"
ONBOOT = "yes"
TYPE = "Ethernet"
UUID = "8d4b47d5-b1ae-4dd9-a9db-e5f458fb6dcd"
IPADDR = 192.168.0.5
NETMASK = 255.255.255.0
GATEWAY = 192.168.0.1
DNS1 = 192.168.0.1
DNS2 = 8.8.4.4

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.