I'm setting up a new RHEL 7.0 installation (we're running the trial), but I can't get it to connect to the internet from command line. I'm trying to add these repos, as I currently have 0 installed, but I get curl: (6) Could not resolve host: URL; Unknown error. I just tried to wget a file and it just sits indefinitely. I cannot ping the server from my local network.ifconfig eth0 results are shown below.eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500    inet 192.168.201.92  netmask 255.255.255.0  broadcast 192.168.201.255    inet6 fe80::215::5dff:feca:963e  prefixlen 64  scopeid 0x20<link>    ether 00:15:5d:ca:96:3e  txqueuelen 1000  (Ethernet)    RX packets 704958  bytes 80931741 (77.1 MiB)    RX errors 0  dropped 36906  overruns 0  frame 0    TX packets 84  bytes 10038 (9.8 KiB)    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0Per request, here is ip ro. /etc/resolv.conf exists but is blank.default via 192.168.201.199 dev eth0  proto static  metric 1024192.168.201.0/24 dev eth0  proto kernel  scope link  src 192.168.201.92I found a typo in my config file, and I can now wget files. The rpm commands given in the above linked article are still failing with the given error.
RHEL 7.0 can't connect to internet
rhel;internet
The file /etc/resolf.conf contains the DNS, without DNS no name resolutionadd nameserver 8.8.8.8which is the DNS of Google.before that you can try to ping 8.8.8.8to check if it will work.you should try to find out which DNS are used by your provider though, because using the one of google all the time is not really recommanded