I'm using VMware Workstation 15, host is windows 10 and as above HDP v2.6.5
Because I couldn't get any of the solutions posted here to work; I've attempted to follow the following;
http://kb.metricinsights.com/m/44498/l/500541-how-to-set-up-a-static-ip-for-a-virtual-machine-centos
I'm connected using putty 192.168.59.129:2222
In summary the steps are;
1). Backup ifcg-enp0s3; used hostnamectl to determine o/s and virtual machine (vm) name (sandbox-hdp.hortonworks.com)
2).Actually had to create new ifcfg-enp0s3 but this article gave a starting point
MAC Address (for HWADDR) was taken from Network Adapter (NAT) defined in VM
UUID was left as per the article
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=172.18.0.1 taken from "route -n"
3). Edit /etc/sysconfig/network file; again had to create a new one as follows
NETWORKING=yes
HOSTNAME=sandbox-hdp.hortonworks.com
GATEWAY=172.18.0.1
4). Edit /etc/resolv.conf, complete file shown below;
search localdomain
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 127.0.0.11
options ndots:0
5). Edit /etc/hosts to append
192.168.1.10 sandbox-hdp.hortonworks.com
6). Apply network changes by rebooting
7). Check
Results connection to 192.168.1.10 fails
Connection to 192.168.59.129 works
ifconfig shows NO changes of any sort, please help?