VMware Communities
abdulbaridba
Contributor
Contributor
Jump to solution

Internet is not working in Guest(oracle Linux)

Hi

I have a Windows 8 Host and on VMWare I have installed oracle Linux as guest, I am not able to access the internet under this Linux guest machine.

Note, i have internet access in Host and i am able to access it without any issues. And i have another guest machine under the same VM but it is windows xp and i am able to access the internet.

Internet not able to access in Linux guest !!!, i have verified the firewall for Linux it is disabled.

Appreciate your help in this.

thanks

AB

1 Solution

Accepted Solutions
WoodyZ
Immortal
Immortal
Jump to solution

You didn't answer louyo's first question "NAT or Bridged?" however its context may not have been clear although after seeing...

[root@test-host ~]# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:29:55:EF:96

          inet addr:192.168.241.0  Bcast:192.168.241.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

It really doesn't matter because regardless it's blatantly obvious what the primary issue is!

The IP Address of the Guest OS is not set properly!

louyo asked "NAT or Bridged?", meaning is the VM's Network Adapter configured as "NAT or Bridged?" and if it was Bridged then the Guest OS would have an IP Address on the 192.168.0.0 IP Subnet and as NAT would have an IP Address on the 192.168.62.0 IP Subnet.

Configure the Guest OS to use DHCP or manually assign a proper IP Address while setting the VM's Network Adapter to either Bridged or NAT.  Since the Host is using Wi-Fi I'd suggest using NAT and if manually assigning an IP Address it should be between 192.168.62.3 and 192.168.62.127 as that is outside the Scope of the VMnet8 DHCP Server IP Address Pool.  If you choose to use Bridged then use DHCP in the Guest OS or use an IP Address that is outside the Scope of the Routers DHCP Server IP Address Pool and for that you'll have to check the Router's Configuration.

You didn't say what VMware product or version you're using however I'd strongly suggest you read the documentation and specifically chapter 5 "Configuring Network Connections" in Using VMware Workstation (PDF).

View solution in original post

6 Replies
louyo
Virtuoso
Virtuoso
Jump to solution

You need to provide more information to get even a guess:

NAT or Bridged?

Wired or wireless?

Result of the following commands:

ifconfig

route

ipconfig/all on the host?

can you ping the host?

If you use a router, can you ping it?

can you ping the DNS servers?

Lou

Reply
0 Kudos
abdulbaridba
Contributor
Contributor
Jump to solution

Lou, Thanks for the response, please find the below requested information.

[root@test-host ~]# hostname

test-host.local.com

[root@test-host ~]# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:29:55:EF:96

          inet addr:192.168.241.0  Bcast:192.168.241.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:213 errors:0 dropped:0 overruns:0 frame:0

          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:19612 (19.1 KiB)  TX bytes:10451 (10.2 KiB)

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:1416 errors:0 dropped:0 overruns:0 frame:0

          TX packets:1416 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:3296164 (3.1 MiB)  TX bytes:3296164 (3.1 MiB)

[root@test-host ~]# ping 192.168.241.0

PING 192.168.241.0 (192.168.241.0) 56(84) bytes of data.

64 bytes from 192.168.241.0: icmp_seq=1 ttl=64 time=0.164 ms

64 bytes from 192.168.241.0: icmp_seq=2 ttl=64 time=0.074 ms

64 bytes from 192.168.241.0: icmp_seq=3 ttl=64 time=0.066 ms

^C

--- 192.168.241.0 ping statistics ---

3 packets transmitted, 3 received, 0% packet loss, time 2000ms

rtt min/avg/max/mdev = 0.066/0.101/0.164/0.045 ms

[root@test-host ~]#

-----------------------------------------------

[root@test-host ~]# route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.241.0   *               255.255.255.0   U     0      0        0 eth0

169.254.0.0     *               255.255.0.0     U     0      0        0 eth0

[root@test-host ~]#

-----------------------------------------------

C:\Users\Personal>ipconfig/all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : AbdulBari

   Primary Dns Suffix  . . . . . . . :

   Node Type . . . . . . . . . . . . : Hybrid

   IP Routing Enabled. . . . . . . . : No

   WINS Proxy Enabled. . . . . . . . : No

   DNS Suffix Search List. . . . . . : Home

Wireless LAN adapter Local Area Connection* 12:

   Media State . . . . . . . . . . . : Media disconnected

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter

   Physical Address. . . . . . . . . : 68-17-29-2B-29-FC

   DHCP Enabled. . . . . . . . . . . : Yes

   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)

   Physical Address. . . . . . . . . : 68-17-29-2B-29-FF

   DHCP Enabled. . . . . . . . . . . : Yes

   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : Home

   Description . . . . . . . . . . . : Intel(R) Centrino(R) Wireless-N 2230

   Physical Address. . . . . . . . . : 68-17-29-2B-29-FB

   DHCP Enabled. . . . . . . . . . . : Yes

   Autoconfiguration Enabled . . . . : Yes

   Link-local IPv6 Address . . . . . : fe80::bcb3:63c2:30ba:659a%4(Preferred)

   IPv4 Address. . . . . . . . . . . : 192.168.0.115(Preferred)

   Subnet Mask . . . . . . . . . . . : 255.255.255.0

   Lease Obtained. . . . . . . . . . : Saturday, April 26, 2014 5:45:22 PM

   Lease Expires . . . . . . . . . . : Sunday, April 27, 2014 9:40:59 PM

   Default Gateway . . . . . . . . . : 192.168.0.1

   DHCP Server . . . . . . . . . . . : 192.168.0.1

   DHCPv6 IAID . . . . . . . . . . . : 257977446

   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-9C-24-79-7C-05-07-62-6C-A3

   DNS Servers . . . . . . . . . . . : 192.168.0.1

   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Ethernet:

   Media State . . . . . . . . . . . : Media disconnected

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : Qualcomm Atheros AR8171/8175 PCI-E Gigabit Ethernet Controller (NDIS 6.30)

   Physical Address. . . . . . . . . : 7C-05-07-62-6C-A3

   DHCP Enabled. . . . . . . . . . . : Yes

   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter VMware Network Adapter VMnet1:

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1

   Physical Address. . . . . . . . . : 00-50-56-C0-00-01

   DHCP Enabled. . . . . . . . . . . : No

   Autoconfiguration Enabled . . . . : Yes

   Link-local IPv6 Address . . . . . : fe80::e093:2b34:8ca3:cc5a%10(Preferred)

   IPv4 Address. . . . . . . . . . . : 192.168.195.1(Preferred)

   Subnet Mask . . . . . . . . . . . : 255.255.255.0

   Default Gateway . . . . . . . . . :

   DHCPv6 IAID . . . . . . . . . . . : 167792726

   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-9C-24-79-7C-05-07-62-6C-A3

   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1

                                       fec0:0:0:ffff::2%1

                                       fec0:0:0:ffff::3%1

   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8

   Physical Address. . . . . . . . . : 00-50-56-C0-00-08

   DHCP Enabled. . . . . . . . . . . : No

   Autoconfiguration Enabled . . . . : Yes

   Link-local IPv6 Address . . . . . : fe80::a47a:d912:83a3:f577%11(Preferred)

   IPv4 Address. . . . . . . . . . . : 192.168.62.1(Preferred)

   Subnet Mask . . . . . . . . . . . : 255.255.255.0

   Default Gateway . . . . . . . . . :

   DHCPv6 IAID . . . . . . . . . . . : 184569942

   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-9C-24-79-7C-05-07-62-6C-A3

   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1

                                       fec0:0:0:ffff::2%1

                                       fec0:0:0:ffff::3%1

   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.Home:

   Media State . . . . . . . . . . . : Media disconnected

   Connection-specific DNS Suffix  . : Home

   Description . . . . . . . . . . . : Microsoft ISATAP Adapter

   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

   DHCP Enabled. . . . . . . . . . . : No

   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 15:

   Media State . . . . . . . . . . . : Media disconnected

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface

   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

   DHCP Enabled. . . . . . . . . . . : No

   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{EC6729B5-3F83-49EF-95FB-571D4BD95B83}:

   Media State . . . . . . . . . . . : Media disconnected

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4

   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

   DHCP Enabled. . . . . . . . . . . : No

   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{FA69740E-1217-4CFA-8D7D-26EC27B839FF}:

   Media State . . . . . . . . . . . : Media disconnected

   Connection-specific DNS Suffix  . :

   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #5

   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

   DHCP Enabled. . . . . . . . . . . : No

   Autoconfiguration Enabled . . . . : Yes

C:\Users\Personal>

-----------------------------------------------

I am not able to ping the guest from host OR host from guest.

C:\Users\Personal>ping 192.168.241.0

Pinging 192.168.241.0 with 32 bytes of data:

Request timed out.

Request timed out.

-----------------------------------------------

I can ping router from Host, but not from guest.

-----------------------------------------------

I can ping the DNS Server from Host, but not from guest.

Reply
0 Kudos
WoodyZ
Immortal
Immortal
Jump to solution

You didn't answer louyo's first question "NAT or Bridged?" however its context may not have been clear although after seeing...

[root@test-host ~]# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:29:55:EF:96

          inet addr:192.168.241.0  Bcast:192.168.241.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

It really doesn't matter because regardless it's blatantly obvious what the primary issue is!

The IP Address of the Guest OS is not set properly!

louyo asked "NAT or Bridged?", meaning is the VM's Network Adapter configured as "NAT or Bridged?" and if it was Bridged then the Guest OS would have an IP Address on the 192.168.0.0 IP Subnet and as NAT would have an IP Address on the 192.168.62.0 IP Subnet.

Configure the Guest OS to use DHCP or manually assign a proper IP Address while setting the VM's Network Adapter to either Bridged or NAT.  Since the Host is using Wi-Fi I'd suggest using NAT and if manually assigning an IP Address it should be between 192.168.62.3 and 192.168.62.127 as that is outside the Scope of the VMnet8 DHCP Server IP Address Pool.  If you choose to use Bridged then use DHCP in the Guest OS or use an IP Address that is outside the Scope of the Routers DHCP Server IP Address Pool and for that you'll have to check the Router's Configuration.

You didn't say what VMware product or version you're using however I'd strongly suggest you read the documentation and specifically chapter 5 "Configuring Network Connections" in Using VMware Workstation (PDF).

louyo
Virtuoso
Virtuoso
Jump to solution

As Woody pointed out, the easiest way to allow Internet access is to use NAT. You might also want to look at ethernet settings in /etc/network/interfaces.

Lou

Reply
0 Kudos
abdulbaridba
Contributor
Contributor
Jump to solution

Thanks Woody, Issue is resolved as you guided.

Solution: Login to Guest Linux machine,

open system-config-network from root user and choose dhcp(automatically obtain ip address settings with dhcp) and then restart the linux box or restart the network servieces(service network restart) and VM Network Adoptor is set to "NAT"

Regards.

Reply
0 Kudos
tmt_transvip
Contributor
Contributor
Jump to solution

In my case the Ethernet config in guest VM show NIC turned off. After I turn on Ethernet and define IP settings, the network work fine!

Reply
0 Kudos