VMware Communities
shyamraj
Contributor
Contributor

Unable to access internet from Red Hat linux in VMware

Hello, I just installed Red Hat Enterprise Linux on VMware and it installed successfully. The virtual machine is set to receive IP from DHCP and it successfully gets the IP address.

I am able to ping the internet from the virtual Linux machine, however I do not receive any data in the browser. I disabled the firewall and tried but doesn't help.

What could be the problem?

Thanks in advance.

0 Kudos
2 Replies
louyo
Virtuoso
Virtuoso

Questions:

Are you using Bridged or NAT?

If bridged, are you using DHCP.

Is your host NIC wired or wireless?

When you say you can ping the Internet, do you ping by name or IP address? Like, ping www.yahoo.com.

What do you get from:

nslookup www.yahoo.com?

DNS entries usually get entered into the /etc/resolv.conf file. That would show you what servers it is looking for.

An easy way out is to just use NAT for your VM network card.

Lou

0 Kudos
paulchery21
Contributor
Contributor

This was my problem too.
When you create a NAT in VMware Workstation like this:
192.168.X.0/24
, your HOST ip address will be :
```
vmnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.X.1 netmask 255.255.255.0 broadcast 192.168.X.255
ether <GENERATED MAC ADDRESS> txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1264 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
```

you should change the NAT Gateway. (eg. 192.168.X.254) in both VM & Virtual Network Editor.

0 Kudos