Hi@akhtar,
To set a static ip in Red Hat linux, follow the below steps.
   $ systemctl start NetworkManager
   $ nmcli connection add con-name name ifname enp0s3 type ethernet ip4 ip/24 gw4 “getway ip” ipv4.dns    “dns ip” connection.autoconnect yes
   $ nmcli connection show
   $ nmcli connection up name 
Hope it will help you.
Thank You