Change Linux Host ID

Are you know how to Change Linux Host ID ?

The host address, or the host ID portion of an IP address, is the portion of the address used to identify hosts (any device requiring a Network Interface Card, such as a PC or networked printer) on the network. The network ID, by contrast, is the portion of the address that refers to the network itself (wikipedia). We can check Host ID in our computer with command :

This Host ID is default from my computer. We can change Linux Host ID manually. This is my code to Change Linux Host ID. Copy this code and save as ChangeLinuxHostId.c :

We can compile this C/C++ Code Change Linux Host ID (ChangeLinuxHostId.c) with command :

We can running this C/C++ Code Change Linux Host ID as superuser. This is sample output when we Change Linux Host ID from above code :

This is output when we try to check our new Linux Host ID :

This is a simple method how to Change Linux Host ID with our code program. If you have any other method, please share.

source :
http://www.edaboard.com/thread5989.html