cant ping or ssh into centos7

ifcfg-eth0 file was missing a parameter NETMASK. I added the parameter and setting it to 255.255.255.0.

NETMASK=255.255.255.0

    ifconfig output
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 10.1.10.151  netmask 255.255.255.0  broadcast 10.1.10.255
    inet6 fe80::7845:daff:fed6:5170  prefixlen 64  scopeid 0x20<link>
    ether 7a:45:da:d6:51:70  txqueuelen 1000  (Ethernet)
    RX packets 18456  bytes 556226 (543.1 KiB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 360  bytes 56514 (55.1 KiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Now ssh and ping works. Thanks all for the comments and suggestions