To apply changes in machine using below commands
make sure you have super user privileges.
Command to add temporary IP address on network interface eth0.
# ifconfig eth0 192.168.1.10 netmask 255.255.255.0
Command to add default gateway for network interface eth0.
# route add default gw 192.168.1.1
Command to verify the IP address has been assigned successfully.
Command to verify the default gateway address assigned successfully.
Kindly note this static IP address is assigned for temporary use
Hence after reboot of machine or restart of network service can loose this
static IP address which can be apply again with the above same commands.
Designed by SanjuD(@ngineerbabu)