CDH installation system environment preparation - virtual machine network configuration

The virtual machine network configuration tutorial is as follows:

1. Modify the network configuration file
[root@master ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
to configure the IP address, gateway, mask, DNS, etc., as shown below:
Take master as an example, other slaves Node configuration is the same step, only need to change the corresponding IP.
DEVICE=eth0
HWADDR=00:0C:29:33:85:27
TYPE=Ethernet
UUID=0099dc9f-a67a-4af5-a2c2-0b96e95ffe5d
ONBOOT=yes
NM_CONTROLLED= yes BOOTPROTO
=static
IPAWADDR=202.118.86.11
NETMASK=255.255.255.224
GATEY =202.118.86.1
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6INIT=no


In slave1, the content of the network configuration file is as follows:
DEVICE=eth0
HWADDR=00:0C:29:2E:73:5E
TYPE=Ethernet
UUID=6488cec5-24fe-487e-b2f6-83e1de889292
ONBOOT=yes
NM_CONTROLLED= yes BOOTPROTO
=static
IPADDR =202.118.86.12
NETMASK=255.255.255.224
GATEWAY=202.118.86.1
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6INIT=no


In the same way, the content of the configuration files on other slave nodes is also the same, only need to change the corresponding IP.
2. Ping the network for testing (each server), and make sure the network is available
[root@master ~]#ping master
[root@master ~]#ping -c 3 slave1
[root@master ~]#ping -c 3 slave2
[root @master ~]#ping -c 3 slave3
[root@master ~]#ping -c 3 slave4


At this point, the cluster virtual machine network configuration is complete~~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325233645&siteId=291194637