Archlinux dropped support for ifconfig “net-tools” sometime back. [announcement]
To get the ip address use “ip” tool instead.
ip addr show dev [device name]
ip addr show dev enp2s0
If you really want ifconfig back then grab the “net-tools from the AUR.