CDH installation system environment preparation-virtual machine network configuration
The network configuration tutorial is as follows.
1. Modify the network configuration file
[root@master ~] # vi / etc/sysconfig/network-scripts/ifcfg-eth0
Configure the IP address, gateway, mask, DNS, and so on, as follows:
Take master as an example, other slave 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
IPADDR=202.118.86.11
NETMASK=255.255.255.224
GATEWAY=202.118.86.1
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6INIT=no
CDH installation system environment preparation-virtual machine network configuration
In slave1, the network profile 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
CDH installation system environment preparation-virtual machine network configuration
Similarly, the same is true of the configuration files on other slave nodes, which only need to be changed to the corresponding IP.
2 、
Test the ping network (each server) to 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
CDH installation system environment preparation-virtual machine network configuration
At this point, the cluster virtual machine network configuration is complete ~