zbb20171223 vm12 vmware Virtual machine set static IP address

Source: Internet
Author: User

VMware virtual machine set static IP address

First, install the virtual after the menu bar select edit → Virtual network editor, open the Virtual Network Editor dialog box, select Vmnet8 net network connection mode, set the subnet IP, click the NAT Settings page, view the subnet mask and gateway , The subsequent modification of the static IP will be used.

Second, check the host VM8 NIC settings, open network and sharing center → change adapter settings →, right-click on the VMware Network Adapter VMnet8, select the Properties button to open the Properties dialog box.

Third, in the bottom right corner of the virtual machine, click the Network adapter button, right-select disconnect, and then reconnect, make sure that the settings are effective. Then turn on the virtual machine and enter Ifcfg to view the currently assigned IP.

Modify the network configuration file, close the host firewall (/etc/init.d/iptables stop), and then check the fire status (chkconfig iptables status), and then ping the host IP (192.168.2.168), Homestay Host VM8

IP (192.168.6.1), host and virtual machine before the gateway IP (192.168.6.2), ping Out Network (baidu.com) can be general description of virtual machine fixed IP settings successfully.

Vi/etc/sysconfig/network-scripts/ifcfg-eth0 is:

(Tip: Press the A key into insert mode, press ESC, press ": Wq" to save exit)

Device=eth0

Bootproto=static

HWADDR=00:0C:29:12:0B:0E (do not copy this physical address)

ipaddr=192.168.6.128

gateway=192.168.6.2

Type=ethernets

Onboot=yes

  

  

  

V. Restart the virtual machine (reboot) to verify that the IP is fixed.

zbb20171223 vm12 vmware Virtual machine set static IP address

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.