Page 1 of 1

cant ping my RH8 VM through bridged adapter

Posted: 8. Mar 2022, 22:30
by niiels93
Hé all,

I'm trying to set up an practice environment with RH8 on a VM in virtualbox.
unfortunately I'm already stuck at the beginning. I'm trying to connect with my VM through putty by a bridged connection. But it can't find it through ssh.

From my windows prompt I can ping the virtual box Host-Only Ethernet Adapter (192.168.0.1).
config settings of the virtualbox ethernet adapter are:
vbnetwork.PNG
vbnetwork.PNG (11 KiB) Viewed 842 times
But when I'm trying to ping my vm (192.168.0.110) then I got the following response: - Reply from 213.51.1.124 Destination net unreachable. (4 times).

These are the settings from my vm:
/etc/sysconfig/network-scripts/ifcfg-enp0s3:
networkscripts.PNG
networkscripts.PNG (23.88 KiB) Viewed 842 times
These are my netwerk settings of my vm in virtual box:
netwerksettingvm.PNG
netwerksettingvm.PNG (5.57 KiB) Viewed 842 times
These are my ethernet settings from my windows pc:
Ipv4-adres: 192.168.178.19
DNS: 192.168.178.1
description: Intel(R) DualBand Wireless-AC

What am I doing wrong to get a connection with my VM through a bridged adapter?

Thank you in advance!

Re: cant ping my RH8 VM through bridged adapter

Posted: 8. Mar 2022, 23:02
by scottgus1
niiels93 wrote: get a connection with my VM through a bridged adapter?
Your screenshots show the VM using the Host-Only adapter's 192.168.0.# IP address range, which is not what you'd get if the VM OS was responding correctly to the Bridged connection. See Virtualbox Networks: In Pictures

If the VM OS were aligned to the Bridged connection correctly, it would get a 192.168.178.# IP address from the network's DHCP, or you'd set a static 192.168.178.# IP address, consistent with what your host shows:
niiels93 wrote:my ethernet settings from my windows pc:
Ipv4-adres: 192.168.178.19
DNS: 192.168.178.1
Networking has a tremendous lots of room for pebcak errors, and I suspect that VM is pebcak'd.

Let's get an overview:

Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)

In the Windows OS, open a Command Prompt and run ipconfig /all. Post the command output.

In the Linux OS, open a Terminal and run ifconfig or ip address. Post the command output.

Ping 8.8.8.8 in the host and in the VM, and post both outputs.

Re: cant ping my RH8 VM through bridged adapter

Posted: 13. Mar 2022, 09:18
by niiels93
Thank you for your response.

Here is a part of the output of the windows prompt:

Ethernet adapter VirtualBox Host-Only Network:

Code: Select all

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physical Address. . . . . . . . . : 0A-00-27-00-00-19
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::308f:4558:472a:99bd%25(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 923402279
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-D7-5B-4B-B8-6B-23-6C-AC-C3
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 7265
   Physical Address. . . . . . . . . : DC-53-60-CB-42-56
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.1.110(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
and here from the linux vm:
ifconfig os.PNG
ifconfig os.PNG (56.91 KiB) Viewed 780 times
pinging from my windows prompt gets me:
Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=1ms TTL=60
Reply from 8.8.8.8: bytes=32 time=2ms TTL=60
Reply from 8.8.8.8: bytes=32 time=2ms TTL=60
Reply from 8.8.8.8: bytes=32 time=1ms TTL=60

Ping statistics for 8.8.8.8:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 2ms, Average = 1ms

pinging from my vm linux gets me:
PING 8.8.8.8 (8.8.8.8 ) 56(84) bytes of data.
From 192.168.0.110 icmp_seq=1 Destination Host Unreachable
From 192.168.0.110 icmp_seq=2 Destination Host Unreachable
From 192.168.0.110 icmp_seq=3 Destination Host Unreachable
From 192.168.0.110 icmp_seq=4 Destination Host Unreachable

Attached my .vbox file

Thanks for your help.

Re: cant ping my RH8 VM through bridged adapter

Posted: 13. Mar 2022, 15:00
by scottgus1
niiels93 wrote:Here is a part of the output of the windows prompt:
:?:
scottgus1 wrote:In the Windows OS, open a Command Prompt and run ipconfig /all. Post the command output.
I gave no instructions for you to post a part of the command output. How do I know that some of the parts you chose to not show might not interfere with the parts that need to work?

If you want our help, follow our instructions.