Issue: After changing the static IP addresses on 2 units, I can no longer ping.
Configuration: OS: CentOS 7
- 2 1-GbE adapters, one used, connects to the Internet, DHCP, works
- 2 10-GbE fiber channel adapters, one used, direct connect
I originally had the 10 GbE connections use "10.10.10.10" on one board and "10.10.10.11" on the other board. The default gateway did not matter, but I simply used "10.10.10.10". I set the MTU to 9000, prefix at 24, and disabled IPv6. Everything worked perfectly. I did not need to edit the hosts file.
After I changed the IP addresses on both units, a requirement made down upon me. One unit received an IP address of "18.104.22.168" and a default gateway of "22.214.171.124", while the other unit received an IP address of "126.96.36.199" and a default gateway of "188.8.131.52".
I keep getting a destination host unreachable, and nothing that I have tried gets me to connect the two units, still directly connected to each other.
I tried adding adding a permanent route by creating a permanent route, and sadly the script did not yield a success.
I tried adding the two NICs to the hosts file, although that has nothing to do with route determination. I do not have a domain, so just IP1/"computer1" and IP2/"computer2". Adding the hosts file entries enables me to do "ping -c 3 computer2" from computer1 nicely, but still same message.
The interface definition is fine, works, comes up, all is good, but here is the interface file from computer2:
TYPE=Ethernet BOOTPROTO=none DEFROUTE=no IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=ens2f0 ONBOOT=yes HWADDR=00:0F:53:2A:18:B0 UUID=07f81988-6828-4b46-938a-72f70121e5a5 MTU=1500 IPADDR=184.108.40.206 PREFIX=24 GATEWAY=220.127.116.11
Here is the hosts file from computer2.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 18.104.22.168 computer1 22.214.171.124 computer2
From previous experience, I did both reboot the computer and subsequently turned off the computers and then back on, but same thing.