Support Questions

Find answers, ask questions, and share your expertise

Assign ip address to the sandbox on a remote machine

avatar
Explorer

I have deployed the sandbox on a remote machine and I need to assign static ip address to the sandbox for remote access. How can I do that?

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Sahil M

Do you want something like the one mentioned in the following HCC thread?

https://community.hortonworks.com/questions/79618/25-sandbox-static-ip.html

View solution in original post

6 REPLIES 6

avatar
Master Mentor

@Sahil M

Do you want something like the one mentioned in the following HCC thread?

https://community.hortonworks.com/questions/79618/25-sandbox-static-ip.html

avatar
Explorer

Hi,

I followed those steps however I am unable to ssh into into it from a remote machine. ping doesn't work too. FYI, I have a ifcfg-ens33 file instead of the ifcfg-enp0s3

avatar
Master Mentor
@Sahil M

Have you restarted the VM ? (specially the network services) after making the changes?

How are you trying to do the SSH can you please share the exact command and the output whihc you get while doing SSH ?

avatar
Explorer

I have restarted the VM. PFA the output:

ssh maria_dev@10.99.162.xx

ssh: connect to host 10.99.162.xx port 22: No route to host

cat /etc/sysconfig/network-scripts/ifcfg-ens33

# Generated by dracut initrd NAME="ens33" 
DEVICE="ens33" 
ONBOOT=yes 
NETBOOT=yes 
UUID="XXXXXXXXXX" 
IPV6INIT=yes 
BOOTPROTO=static 
TYPE=Ethernet 
IPADDR=10.99.162.XX
NETMASK=255.255.254.0

avatar
Master Mentor

@Sahil M

From where did you get the "10.99.162.XX" IP Address which you wanted to make as static?

Can you use the same 172.x.x.x address as "static" instead of defining a completely new range of address?

Example:

https://ashfaqshinwary.wordpress.com/2018/04/02/horton-works-assign-static-ip-to-hdp-sandbox-v2-x/

.

avatar
Explorer

@Jay Kumar SenSharma I am working on deploying the sandbox in a lab, and I have a few range of ip addresses. What should I do in this case ?