1) After every reboot, one NIC card will take IP Address of another NIC card.
2) One NIC card if goes up and down the default IP address will become 0.0.0.0
So if there is any change of state or PC reboot, we need to again manually assign the IP address of the NIC cards.
We used both the methods to assign ip address:
1) ifconfig Command ( ifconfig eth0 18.104.22.168 netmask 255.255.255.0 up)
2)Right corner->Network Configuration-> Edit connection->
It took some time to figure out what was happening once we decided to solve this problem forever.
For each interface the configuration files are stored in /etc/sysconfig/network-script/ifcfg-<name>. For example for eth1 we should have /etc/sysconfig/network-script/ifcfg-eth1.
We saw we had different names for the same interfaces in command prompt and config files .The name was eth1, but in config file it was stored as Auto-eth1. For the NIC which was taking IP address of other NIC, the HWADDR field was not present. The NIC which was taking none ip address after up/down was actually configured as DHCP in config files. Below is sample file :
To make it work make sure the Edit connection have proper static ip address , no two interfaces should have default gateway. Now edit the /etc/sysconfig/network-script/ifcfg-<name> file and make sure it reflects same name and values as in Edit connections. Make sure below fields are matching properly between "Edit Connections" and config files :
DEVICE, NAME, HWADDR
IF these fields are not present in the config file, edit and give them properly.
After reboot everything worked fine !
Keep Trying , Keep Solving !