Configure IP in Virtual Machines
- Login to the Datalake Machine via SSH
Navigate to the Network configuration file using the following command and edit the configuration with the mentioned details.
>>>> nano /etc/sysconfig/network-scripts/ifcfg-eth0

AUTOCONNECT_PRIORITY=999
BOOTPROTO=dhcp
DEVICE=eth0
HWADDR=06:00:00:00:90:xx
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PROXY_METHOD=none
BROWSER_ONLY=no
IPADDR=X.X.X.X
PREFIX=24
GATEWAY=X.X.X.X
DNS1=X.X.X.X
DOMAIN="DNS-name.com"
DEFROUTE=yes
- Now reboot the machine to apply the network configurations.
>>>> sudo reboot
- Validate the IP address using the following command
>>>> ip a