Your name server configuration in /etc/resolv.conf is broken or missing. I'm betting you can't resolve anything. Fix that before your networking will work.
Agree, Also try disabling the Firewall, Thanks
i created a text file in /etc/yum.repo.c with yum configuration so that yum started working properly.
thank you every1