Originally Posted by praveenks
he problem is ip is not be stable in my system.
since when i check for ifconfig it showing 10.112.73.235
when i check for hostname -i it is showing the local host ip(127.0.0.1)
What you have described is the correct setup
of your system with a persistent, stable IP. There is nothing wrong with it
ifconfig is showing you the IP of your network device.
hostname -i is showing you the IP of the loopback interface.
these are different things, they are supposed
to have different IPs.
But for me I want the hostname -i should be 10.112.73.235.
Why would you want that? This will break your system.
so what to do for these changes.
What are you hoping that this will achieve?