Support Questions

Find answers, ask questions, and share your expertise

With version 2.6.5 of the sandbox and VMWare workstation; how do you set a static IP address?

Explorer
 
2 REPLIES 2

Explorer

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?

Cloudera Employee

Hi @Chris Jenkins,

Are you trying to assign a different IP to your sandbox container? The Sandbox container itself already has a static IP. However, if your goal is to change it then the change would need to be done at the Host VM level and not the HDP Sandbox container level. Please refer to this guide which explains the current architecture.192.168.59.129 connects you to the Host VM and not the Sandbox container. The sandbox container simply forwards traffic to the HDP container via reverse proxy based on the hostname, namely sandbox-hdp.hortonworks.com or sandbox-hdf.hortonworks.com. I hope this helps