First of all, You should know about FTP or HTTP server. You should have createrepo rpm installed on your server.
1. Login with root
2. Create a folder. copy all the modules and dependencies in this folder. (Eg. Created folder in /var/ftp/pub/repo. copied all rpm from the DVD in this folder.)
3. Configure your FTP or HTTP Server to access this folder. After configuration restart service. (As I created folder in default FTP root, I need to just restart vsftpd to start ftp service)
4. Go to the folder and run following command,
# createrepo .
The command with create .xml file in folder. that is all you have to on server side. Now configure client to access the path in /etc/yum.repo.d/server.repo.
check the configuration using yum command.