Set up VMware CentOS7 virtual machine Internet (configure static address)

Source: Internet
Author: User

According to the online relevant information and practical experience summarized as follows set up the Internet steps. True and effective, into the subject.

To set up a virtual machine to go online

1. Network adapter, virtual machine settings

2. Editor, Virtual Machine Network editor->vmnet8 refer to the following settings and configure the network segment scope of the virtual machine

3. Open the VMnet8 of the Control Panel to enter the IP address configured on the above network segment as follows

4.CentOS Open Terminal Terminal

Cd/etc/sysconfig/network-scripts

VI Ifcfg-ens33

Modify the configuration file as follows

Type=ethernet
Proxy_method=none
Browser_only=no
Bootproto=static
Defroute=yes
Ipv4_failure_fatal=no
Ipv6init=yes
Ipv6_autoconf=yes
Ipv6_defroute=yes
Ipv6_failure_fatal=no
Ipv6_addr_gen_mode=stable-privacy
Name=ens33
uuid=a5e84781-28af-4767-88e8-cee0c51b4b5c
Device=ens33
Onboot=yes
ipaddr=192.168.20.100
gateway=192.168.20.2
netmask=255.255.255.0

/* Configure DNS, default */

Vi/etc/resolv.conf

4. Restart the network

Systemctl Stop NetworkManager

Systemctl Restart Network

Systemctl Start NetworkManager

5. Turn off the firewall

Temporarily closed
Systemctl Stop Firewalld
Disable boot start
Systemctl Disable FIREWALLD

6. Test if you can surf the internet

Ping www.baidu.com

Test whether the host is interoperable with the virtual machine (the virtual machine address I configured is 192.168.20.100)

Ping 192.168.20.100

Finally accomplished. hehe ~

Set up VMware CentOS7 virtual machine Internet (configure static address)

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.