VMware Static Address Internet

Source: Internet
Author: User

The virtual machine obtains IPthrough DHCP, whichcan cause IP changes when the system restarts, and the following is a Nat mode setting virtual machine static IP a way to surf the internet at the same time.

Edit VMware, click "Edit"--"Virtual Network editor"

Note: In order to set up a static IP, you should cancel the √ in the ellipse

Click the NAT setting to the right of the first box

[email protected]/etc/sysconfig/network-scripts]# cat Ifcfg-eth0

Type=ethernet

Bootproto=static

Name=eth0

Onboot=yes

ipaddr=192.168.10.250

netmask=255.255.255.0

gateway=192.168.10.2

dns1=192.168.10.2

[[Email protected] ~] # systemctl Restart Network.service

VMware Static Address Internet

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.