This might be a centos issue. I have few hosts(ubuntu 16 and centos7) in subnet 10.1.10.1 while the client machine is in 10.1.1.1. The networking seems to fine. I can ping and ssh into all ubuntu hosts from client machine but not to centos machines. I have disabled SE and centos machine is listening on port 22. sshd_config has all addressfamily uncommented
ssh -v -v -v user@10.1.10.151
openSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "10.1.10.151" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.1.10.* [10.1.10.151] port 22.
ssh: connect to host 10.1.10.151 port 22: Connection timed out
Ping is also a not working. Firewalld is disabled on centos.
I can ssh into ubuntu host in the same subnet as centos and then ssh from that ubuntu host into centos machine without a problem.
I am not sure what is blocking it.
Output:
ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.10.151 netmask 255.0.0.0 broadcast 10.255.255.255
inet6 fe80::7845:daff:fed6:5170 prefixlen 64 scopeid 0x20<link>
ether 7a:45:da:d6:51:70 txqueuelen 1000 (Ethernet)
RX packets 7661 bytes 221816 (216.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 91 bytes 9471 (9.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 17 bytes 1496 (1.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17 bytes 1496 (1.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0