Hello @iman mahdavi
Thank you for your post.
Did you try it from CMD terminal by any chance?
Configure Static IP with the Netsh Command-Line Utility
https://techgenix.com/configurestaticipwiththenetshcommand-lineutility/
Looking forward to your feedback,
BR,
Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.