Big Data Environment Preparation series--second newly installed VMware Virtual Machine Network configuration (NAT mode)

Source: Internet
Author: User

To install a new virtual machine, you need to configure a network environment before you can use SSH clients (such as Xshell) to Telnet and virtual machines to access the Internet.

First, WMware software configuration

WMware version number: 11.0.0 build-2305329

1 entering the virtual network configuration Interface

menu bar , click Edit , then click Virtual Network Configurator (N) to enter the virtual network configuration Interface

2 Configuring the NAT NIC

(1) Select a virtual network card of type NAT mode from the upper list

(2) Vmnet Information section click NAT Settings to set the gateway IP

(3) Configure the Virtual Network editing window other content, subnet IP and subnet mask , etc., the final configuration is as follows:

Second, host system network configuration

Host, model for notebook, system for WIN10, using Wi-Fi network card Internet access, Nic list is as follows:

1 WLAN Network card configuration ( shared Internet connection to VMnet8 Nic )

Right click on the WLAN network card , click Properties , click on the Sharing tab , tick "Allow other network users to connect via this computer's Internet connection (N)", select from the network connection below or enter the NAT NIC full name

2 NAT NIC Configuration

Right-click on the VMware network Adapter VMnet8 NIC and double-click on the Networking tab in this connection use Internet Protocol version 4 (TCP/IPV4) in the following items to go to the General configuration page

(1) Configuring the IP address and subnet mask

(2) Configuring the DNS server

Three, the virtual machine CentOS network configuration

1 Domain Configuration

vim/etc/hosts, add the following configuration

192.168.160.171 node1.spads

2 Host Name

vim/etc/sysconfig/network , edit as follows

Hostname=node1.spads

3 Network Configuration

Vim/etc/sysconfig/network-scripts/ifcfg-eth0, edit as follows

Device=eth0
Type=ethernet
Onboot=yes
Bootproto=static
ipaddr=192.168.160.171
Userctl=yes
Ipv6init=no
gateway=192.168.160.1
netmask=255.255.255.0

Note: The network card name may not be ifcfg-eth0, you need to use Ifconfig to view the System network card, determine the network card name, the contents are as follows

4 Deleting a MAC configuration file

Delete Mac profile, for cloned virtual machine, can avoid Mac conflict, after the system restarts, it will be automatically generated.

Rm–f/etc/udev/rules.d/70-persistent-net.rules

5 Shutting down the firewall

chkconfig iptables off

6 Turn off SELinux

vim/etc/selinux/config , configure SELinux as Disabled

7 rebooting the virtual machine system

reboot

Note: Restart the Network Service Command service network restart

With the above configuration, the host can access the virtual machine through the SSH client (Specify the virtual machine IP, port, user name, password). The virtual machine system also has direct access to the Internet.

Big Data Environment Preparation series--second newly installed VMware Virtual Machine Network configuration (NAT mode)

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.