Please specify your distribution. RHN service is only limited to licensed RHEL machines.
If you are using either Fedora or CentOS and the system is connected to internet, then you do not have to configure yum explicitly. You may directly start executing yum commands.
If your system is not connected to the internet and have Fedora OS iso image then you may create local yum repository with this