dhcpcd enps2s2 get this output
# dhcpcd enp2s2
DUID 00:01:00:01:1f:8a:90:98:00:0b:97:2b:e7:2e
enp2s2: IAID 97:2b:e7:2e
enp2s2: soliciting an IPv6 router
enp2s2: soliciting a DHCP lease
enp2s2: no IPv6 routers available
timed out
dhcpcd exited
From this output, we can know that You don't have DHCP service in your network. So You Don't have IP address in your device
You can assing Manually by using this command
# ip link set eth0enp2s2 up
# ip addr add 192.168.1.2/24 broadcast 192.168.1.255 dev eth0enp2s2
# ip route add default via 192.168.1.1