Internet not working in Virtual Box VM
Internet not working in Virtual Box VM
Hello All,
I am new to VirtualBox and work as full time DBA .
I am facing issue where I cannot enable internet on my Virtual Box .
Env - Laptop LAB environment
Hypervisor - Virtual box 6.1
Base OS - Windows 10
Guest OS - OEL 6 { Red Hat Enterprise Linux Server release 6.5 (Santiago) }
VM has two network adaptors
eth0 - Adapter 1 - Internal Network ( I use this for my database test bed )
Auto eth1 - Adapter 2 - Bridged Adapter ( I want to enable internet using this adapter)
Issue is - First ping to internet works good and then it just fails and I am not able to connect to internet. I get Destination Host Unrechable
[root@tvmpundb1 ~]# ^C
- Firewall is already off on OS.
- I am able to ping my default gateway (tplink router) "192.168.0.1"
[root@tvmpundb1 network-scripts]# cat ifcfg-Auto_eth1
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="Auto eth1"
UUID=21f75a2f-15cb-41ba-9c24-6db3208fb8c7
ONBOOT=yes
IPADDR=192.168.0.107
PREFIX=24
GATEWAY=192.168.0.1
DNS1=192.168.0.1
HWADDR=08:00:27:14:FB:1F+
LAST_CONNECT=1635951753
[root@tvmpundb1 network-scripts]#
I have searched a lot and now I dont know how to resolve the issue . Can some one please help?
I am new to VirtualBox and work as full time DBA .
I am facing issue where I cannot enable internet on my Virtual Box .
Env - Laptop LAB environment
Hypervisor - Virtual box 6.1
Base OS - Windows 10
Guest OS - OEL 6 { Red Hat Enterprise Linux Server release 6.5 (Santiago) }
VM has two network adaptors
eth0 - Adapter 1 - Internal Network ( I use this for my database test bed )
Auto eth1 - Adapter 2 - Bridged Adapter ( I want to enable internet using this adapter)
Issue is - First ping to internet works good and then it just fails and I am not able to connect to internet. I get Destination Host Unrechable
[root@tvmpundb1 ~]# ^C
- Firewall is already off on OS.
- I am able to ping my default gateway (tplink router) "192.168.0.1"
[root@tvmpundb1 network-scripts]# cat ifcfg-Auto_eth1
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="Auto eth1"
UUID=21f75a2f-15cb-41ba-9c24-6db3208fb8c7
ONBOOT=yes
IPADDR=192.168.0.107
PREFIX=24
GATEWAY=192.168.0.1
DNS1=192.168.0.1
HWADDR=08:00:27:14:FB:1F+
LAST_CONNECT=1635951753
[root@tvmpundb1 network-scripts]#
I have searched a lot and now I dont know how to resolve the issue . Can some one please help?
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Internet not working in Virtual Box VM
Moved to Windows hosts.vinodp wrote:Base OS - Windows 10
Are you Bridging to a Wi-Fi adapter? Bridged does not always work through Wi-Fi, see Virtualbox Networks: In Pictures: Bridged Adapter. If your were on Wi-Fi, try wired Ethernet.vinodp wrote:Env - Laptop LAB environment
Auto eth1 - Adapter 2 - Bridged Adapter ( I want to enable internet using this adapter)
I see the "cat ifcfg-Auto_eth1" output which shows a "192.168.0.107" IP address. I can't see if it is served by the LAN's DHCP or is static.
I see you can ping the LAN router. What IP address for the internet are you trying to ping? Can you ping the host OS? (Note that Windows firewall has ping response disabled by default, you need to turn on ICMP Echo Request in the Windows firewall.)
Re: Internet not working in Virtual Box VM
I am on Wifi connection and using second bridge adapter on VM.
I am using DHCP for IP address setup on my VM which has linux OS.
Default Gateway - 192.168.0.1 ( tplink router)
IP address for my Host/Base Windows machine - 192.168.0.144
IP address for my guest VM machine - 192.168.0.107
Ping to my base windows ip and default gatewayis successful.
I tied to ping reddit.com , ping is able to resolve the website , but I get Destination Host Unreachable.
[root@tvmpundb1 Desktop]# ping www.reddit.com
PING reddit.map.fastly.net (151.101.153.140) 56(84) bytes of data.
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=1 Destination Host Unreachable
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=2 Destination Host Unreachable
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=3 Destination Host Unreachable
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=4 Destination Host Unreachable
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=5 Destination Host Unreachable
^C
--- reddit.map.fastly.net ping statistics ---
7 packets transmitted, 0 received, +5 errors, 100% packet loss, time 6006ms
pipe 4
[root@tvmpundb1 Desktop]# ^C
I am using DHCP for IP address setup on my VM which has linux OS.
Default Gateway - 192.168.0.1 ( tplink router)
IP address for my Host/Base Windows machine - 192.168.0.144
IP address for my guest VM machine - 192.168.0.107
Ping to my base windows ip and default gatewayis successful.
I tied to ping reddit.com , ping is able to resolve the website , but I get Destination Host Unreachable.
[root@tvmpundb1 Desktop]# ping www.reddit.com
PING reddit.map.fastly.net (151.101.153.140) 56(84) bytes of data.
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=1 Destination Host Unreachable
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=2 Destination Host Unreachable
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=3 Destination Host Unreachable
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=4 Destination Host Unreachable
From tvmpundb1.procloudlabs.com (192.168.1.202) icmp_seq=5 Destination Host Unreachable
^C
--- reddit.map.fastly.net ping statistics ---
7 packets transmitted, 0 received, +5 errors, 100% packet loss, time 6006ms
pipe 4
[root@tvmpundb1 Desktop]# ^C
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Internet not working in Virtual Box VM
Thanks. Please try pinging 8.8.8.8
Re: Internet not working in Virtual Box VM
[root@tvmpundb1 Desktop]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.202 icmp_seq=1 Destination Host Unreachable
From 192.168.1.202 icmp_seq=2 Destination Host Unreachable
From 192.168.1.202 icmp_seq=3 Destination Host Unreachable
From 192.168.1.202 icmp_seq=4 Destination Host Unreachable
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 0 received, +4 errors, 100% packet loss, time 5285ms
pipe 4
[root@tvmpundb1 Desktop]# ^C
[root@tvmpundb1 network-scripts]# cat ifcfg-Auto_eth1
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=no
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="Auto eth1"
UUID=21f75a2f-15cb-41ba-9c24-6db3208fb8c7
ONBOOT=yes
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=yes
DNS1=8.8.8.8
DNS2=192.168.0.1
HWADDR=08:00:27:14:FB:1F
PEERDNS=no
PEERROUTES=yes
LAST_CONNECT=1636203887
[root@tvmpundb1 network-scripts]#
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.202 icmp_seq=1 Destination Host Unreachable
From 192.168.1.202 icmp_seq=2 Destination Host Unreachable
From 192.168.1.202 icmp_seq=3 Destination Host Unreachable
From 192.168.1.202 icmp_seq=4 Destination Host Unreachable
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 0 received, +4 errors, 100% packet loss, time 5285ms
pipe 4
[root@tvmpundb1 Desktop]# ^C
[root@tvmpundb1 network-scripts]# cat ifcfg-Auto_eth1
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=no
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="Auto eth1"
UUID=21f75a2f-15cb-41ba-9c24-6db3208fb8c7
ONBOOT=yes
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=yes
DNS1=8.8.8.8
DNS2=192.168.0.1
HWADDR=08:00:27:14:FB:1F
PEERDNS=no
PEERROUTES=yes
LAST_CONNECT=1636203887
[root@tvmpundb1 network-scripts]#
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Internet not working in Virtual Box VM
Let's take a look at the VM's configuration and the IP addresses.
1. Please right-click the VM in the main Virtualbox window's VM list, choose "Show in Explorer/Finder/File Manager". In the window that opens, zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Please make sure all file extensions are shown, so you will be able to see the .vbox extension easier.)
2. Inside the host OS's command window, run these commands and post the text output here on the forum:
cd "C:\Program Files\Oracle\Virtualbox"
vboxmanage list bridgedifs
3. Inside the host OS's command window, run ipconfig /all and post the text output here on the forum.
4. Inside the Linux VM OS (which I assume is Linux so it can be distributable) open the terminal window and run ip address or ifconfig. Post the text output here on the forum.
1. Please right-click the VM in the main Virtualbox window's VM list, choose "Show in Explorer/Finder/File Manager". In the window that opens, zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Please make sure all file extensions are shown, so you will be able to see the .vbox extension easier.)
2. Inside the host OS's command window, run these commands and post the text output here on the forum:
cd "C:\Program Files\Oracle\Virtualbox"
vboxmanage list bridgedifs
3. Inside the host OS's command window, run ipconfig /all and post the text output here on the forum.
4. Inside the Linux VM OS (which I assume is Linux so it can be distributable) open the terminal window and run ip address or ifconfig. Post the text output here on the forum.
-
fth0
- Volunteer
- Posts: 5690
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Internet not working in Virtual Box VM
In addition to the suggestions of scottgus1:
FWIW, the LAST_CONNECT times are a bit outdated, compared to your posting dates:
The pings seem to be reaching 192.168.1.202. Is this part of your internal network?
FWIW, the LAST_CONNECT times are a bit outdated, compared to your posting dates:
Code: Select all
LAST_CONNECT=1635951753 -> 2021-11-03 15:02:33Z
LAST_CONNECT=1636203887 -> 2021-11-06 13:04:47Z
Re: Internet not working in Virtual Box VM
1> ZIp - PFA
2>
3>
4> From Linux OS
----------
@fth0
Yes , Ip "192.168.1.202" is that of internal network. ( using adapter 1 - Internal Network - intnet )
[root@tvmpundb1 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=1873a265-fe3e-49ed-a0ff-b20f5cf4be8a
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=192.168.1.202
PREFIX=24
GATEWAY=192.168.1.1
DNS1=192.168.1.100
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth0
HWADDR=08:00:27:4B:64:C1
LAST_CONNECT=1636203544
[root@tvmpundb1 network-scripts]#
2>
Code: Select all
D:\Program Files\Oracle\VirtualBox>vboxmanage list bridgedifs
Name: Intel(R) Dual Band Wireless-AC 8265 #2
GUID: dedb3224-51cf-4340-aedb-dc0c12089c64
DHCP: Enabled
IPAddress: 192.168.0.144
NetworkMask: 255.255.255.0
IPV6Address: fe80::85f:d87e:e6e0:2682
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: d4:25:8b:ea:35:f3
MediumType: Ethernet
Wireless: Yes
Status: Up
VBoxNetworkName: HostInterfaceNetworking-Intel(R) Dual Band Wireless-AC 8265 #2
Name: Realtek USB GbE Family Controller #2
GUID: 7255ddb9-d9e6-484f-b59a-2dbf0aee1945
DHCP: Disabled
IPAddress: 0.0.0.0
NetworkMask: 0.0.0.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 00:00:00:00:00:00
MediumType: Ethernet
Wireless: No
Status: Down
VBoxNetworkName: HostInterfaceNetworking-Realtek USB GbE Family Controller #2
Name: Intel(R) Dual Band Wireless-AC 8265
GUID: 09e33784-7a8c-4cff-badc-de48e9223b35
DHCP: Disabled
IPAddress: 0.0.0.0
NetworkMask: 0.0.0.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 00:00:00:00:00:00
MediumType: Ethernet
Wireless: No
Status: Down
VBoxNetworkName: HostInterfaceNetworking-Intel(R) Dual Band Wireless-AC 8265
Name: Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64
GUID: 9c2778f3-f2b9-4df3-8ebc-2fa7292c58d5
DHCP: Disabled
IPAddress: 10.141.36.128
NetworkMask: 255.255.224.0
IPV6Address: fe80::90c9:c24b:58e8:62e1
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 00:05:9a:3c:7a:00
MediumType: Ethernet
Wireless: No
Status: Up
VBoxNetworkName: HostInterfaceNetworking-Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64
Name: Intel(R) Ethernet Connection (4) I219-LM
GUID: 709fe36b-1df1-41ae-9db4-1a13067aa9af
DHCP: Enabled
IPAddress: 169.254.63.32
NetworkMask: 255.255.0.0
IPV6Address: fe80::cc14:c3b7:8cdd:3f20
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: a4:4c:c8:75:3c:18
MediumType: Ethernet
Wireless: No
Status: Down
VBoxNetworkName: HostInterfaceNetworking-Intel(R) Ethernet Connection (4) I219-LM
Name: Realtek USB GbE Family Controller
GUID: df9bc3ce-20a9-4151-8c6c-332c54a9baef
DHCP: Disabled
IPAddress: 0.0.0.0
NetworkMask: 0.0.0.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 00:00:00:00:00:00
MediumType: Ethernet
Wireless: No
Status: Down
VBoxNetworkName: HostInterfaceNetworking-Realtek USB GbE Family Controller
Code: Select all
D:\Program Files\Oracle\VirtualBox>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : INWS00809-01
Primary Dns Suffix . . . . . . . : wkfs-frc.local
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : wkglobal.com
wkfs-frc.local
Ethernet adapter Ethernet 4:
Connection-specific DNS Suffix . : wkglobal.com
Description . . . . . . . . . . . : Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64
Physical Address. . . . . . . . . : 00-05-9A-3C-7A-00
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::90c9:c24b:58e8:62e1%20(Preferred)
Link-local IPv6 Address . . . . . : fe80::c7f2:6212:d614:58e1%20(Preferred)
IPv4 Address. . . . . . . . . . . : 10.141.36.128(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.224.0
Default Gateway . . . . . . . . . : ::
10.141.32.1
DHCPv6 IAID . . . . . . . . . . . : 285214106
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-21-F4-B6-DD-A4-4C-C8-75-3C-18
DNS Servers . . . . . . . . . . . : 10.245.22.14
10.243.160.105
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Ethernet Connection (4) I219-LM
Physical Address. . . . . . . . . : A4-4C-C8-75-3C-18
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
Physical Address. . . . . . . . . : 0A-00-27-00-00-11
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::4127:e9bd:413c:59c7%17(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 671744039
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-21-F4-B6-DD-A4-4C-C8-75-3C-18
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Wireless LAN adapter Local Area Connection* 1:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #3
Physical Address. . . . . . . . . : D4-25-8B-EA-35-F4
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Local Area Connection* 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #4
Physical Address. . . . . . . . . : D6-25-8B-EA-35-F3
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Wi-Fi 2:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 8265 #2
Physical Address. . . . . . . . . : D4-25-8B-EA-35-F3
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::85f:d87e:e6e0:2682%26(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.144(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Sunday, November 14, 2021 2:02:32 PM
Lease Expires . . . . . . . . . . : Sunday, November 14, 2021 5:02:31 PM
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DHCPv6 IAID . . . . . . . . . . . : 433333643
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-21-F4-B6-DD-A4-4C-C8-75-3C-18
DNS Servers . . . . . . . . . . . : 192.168.0.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : D4-25-8B-EA-35-F7
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
D:\Program Files\Oracle\VirtualBox>
Code: Select all
[root@tvmpundb1 Desktop]# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:4b:64:c1 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.202/24 brd 192.168.1.255 scope global eth0
inet6 fe80::a00:27ff:fe4b:64c1/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:14:fb:1f brd ff:ff:ff:ff:ff:ff
inet 192.168.0.107/24 brd 192.168.0.255 scope global eth1
inet6 fe80::a00:27ff:fe14:fb1f/64 scope link
valid_lft forever preferred_lft forever
[root@tvmpundb1 Desktop]#
@fth0
Yes , Ip "192.168.1.202" is that of internal network. ( using adapter 1 - Internal Network - intnet )
[root@tvmpundb1 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=1873a265-fe3e-49ed-a0ff-b20f5cf4be8a
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=192.168.1.202
PREFIX=24
GATEWAY=192.168.1.1
DNS1=192.168.1.100
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth0
HWADDR=08:00:27:4B:64:C1
LAST_CONNECT=1636203544
[root@tvmpundb1 network-scripts]#
- Attachments
-
- tvmpundb1.zip
- (2.16 KiB) Downloaded 11 times
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Internet not working in Virtual Box VM
Thanks for the info. Your VM shows Bridged to the host WiFi adapter on a 192.168.0.# range and Internal to somewhere on the 192.168.1.# range. Since you can ping the 192.168.0.1 router, it would appear that Bridged is able to work over your Wi-Fi.
Curious that the failed pings reported were trying to get to the internet out through 192.168.0.#, yet they are coming from 192.168.1.# Maybe it's nothing, but I wonder if that is an indicator of a misconfiguration somewhere. Fth0, what do you think?
The host has a Cisco Anyconnect VPN(?) active, which might be interfering. Try disabling it.
Curious that the failed pings reported were trying to get to the internet out through 192.168.0.#, yet they are coming from 192.168.1.# Maybe it's nothing, but I wonder if that is an indicator of a misconfiguration somewhere. Fth0, what do you think?
The host has a Cisco Anyconnect VPN(?) active, which might be interfering. Try disabling it.
-
fth0
- Volunteer
- Posts: 5690
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Internet not working in Virtual Box VM
What makes you think so?scottgus1 wrote:Curious that the failed pings reported were trying to get to the internet out through 192.168.0.#
Speaking of which, the DEFROUTE settings already indicate that the internal network may be the default route. In the Linux guest, what's the output of "ip r"?
If that doesn't reveal the problem already, use traceroute instead of ping to discover how far the ping gets, and use Wireshark in the guest OS to capture on both network interfaces simultaneously.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Internet not working in Virtual Box VM
I'm not used to seeing the "From IP.add.re.ss" in the ping. Too Windows-centric apparentlyfth0 wrote:What makes you think so?
Sounds like this could be why the ping is "From 192.168.1.#" instead of ".0.#"?fth0 wrote:DEFROUTE settings already indicate that the internal network may be the default route.
-
fth0
- Volunteer
- Posts: 5690
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Internet not working in Virtual Box VM
Let me explain that: The ping program of the guest OS "sends" the ICMP Echo Request message, and doesn't get back the expected ICMP Echo Reply message, but an ICMP Destination Unreachable message. This reply message comes from 192.168.1.202, which is the guest's own IP address on the internal network, and that means that the ICMP Echo Request message never left the guest.scottgus1 wrote:I'm not used to seeing the "From IP.add.re.ss" in the ping.