How to change the primary IP addres?
Java Application that we are currently using, read the IP information via using sigar library(sigar.getNetInterfaceConfig()
when we use the sigar.getNetInterfaceConfig(), it brings Primary Network Interface from the
server, and this is the problem for us.
we are using Centos server now and connected with 2 of network which are eth0, eth1.
we need to gather the IP from etho0, however in sigar, it brings the ip from eth1.
It seems that primary IP of current server set as eth1.
Therefore, we were looking for answer to modify primary IP at Centos, but could not find yet.
We really want to know how to modify or set up primary IP at Centos.
Thanks for reading such a long story from us.
Regards,
Kihong, Ko
ps. i used CentOS6
|