Self-build of Linux cluster (virtual machine fixed ip and networking)

I recently learned zookeeper and dubbo, how can I do it without a cluster, but I have no choice but to build a small cluster at home. Prepare a laptop to get a few virtual machines. The main Internet access environment at home is the TP-LINK router, and the router is set to Unicom ADSL dial-up Internet access.


1. Install VM10 on the notebook, and create three virtual machines, all of which are CentOS6.5
2. Set the VM's Internet access mode to bridge mode
3. Enter one of the installed CentOS6.5 virtual machines as ROOT
4. Enter in the terminal : vi /etc/sysconfig/network-scripts/ifcfg-eth0
5. Fill in or modify the following content:
ONBOOT=yes
BOOTPROTO=static
DNS1=202.96.64.68 (Unicom DNS address)
DNS2=202.96.69.38 (Unicom DNS address)
IPADDR= 192.168.1.111 (this is the IP of a certain CentOS6.5 virtual machine, set it by yourself)
NETMASK=255.255.255.0 (subnet mask)
GATEWAY=192.168.1.1 (gateway, I took a loss here and copied it from the Internet, In fact, it is not, it should be seen in the IP address set in the LAN port of the router)
and save it after modification.
6. Restart the network service service network restart or /etc/init.d/network restart
7. It is best to restart the machine to be prepared.
over! ~

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326985865&siteId=291194637