Configure IP in Virtual Machines

Configure IP in Virtual Machines

Follow the mentioned steps to configure the IP address for datalake Machines:

  1. Login to the Datalake Machine via SSH
  2. 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


  3. Now reboot the machine to apply the network configurations.
     >>>> sudo reboot
  4. Validate the IP address using the following command
            >>>> ip a