How to enable Proxy Settings for Yum Command on RHEL / CentOS Servers

In most of the data center direct Internet connection is not allowed on Unix and Windows Servers. If we need to download anything from Internet we have to go through via some proxy servers....