I want to send out ping requests through the ethernet port of my laptop to my device attached to it with a LAN cable. But I want to do it from a virtual box Ubuntu running on my windows 10. Is that possible?
-
1virtual machines normally have access to the internet, so, yes it is possible– jsotolaCommented Jun 17, 2022 at 15:18
-
Yes but how to connect my VM to the physical ethernet port of the laptop?– AZ123Commented Jun 17, 2022 at 20:35
-
there are many tutorials for that ... this site is a last resort if you are stuck ... please do research first and attempt a connection ... do not come here first to ask a question– jsotolaCommented Jun 17, 2022 at 21:53
-
@jsotola I did a search and all I could find was making a connection of the VM with your laptop's wireless network adapter. I could not find directions on how to connect to my laptop's ethernet port. Maybe there is an example out there but I don't understand the terminology yet.– AZ123Commented Jun 18, 2022 at 17:08
-
duckduckgo.com/?q=win10+virtual+box+network– jsotolaCommented Jun 18, 2022 at 17:12
Add a comment
|
1 Answer
Try to follow this steps:
- On Virtual Box, select the ubuntu virtal machine
- Go to the VM's settings > Network
- Select the network adapter that you want to modify (usualy Adapter 1)
- Ensure that the "Enable Network Adapter" option is selected
- In the option "Attached to" select "Bridged Adapter"
- The menu "Name" will appear and you have to select your ethernet card. The device's names are usually self-explanatory, in my case i have the adapter "Intel(R) 1211 Gigabit Network" which corresponds to my ethernet adapter.
- Click on the ok button to save the changes.
You will have to configure static ip addresses on both your virtual machine and the other device if you connected your laptop to the other device directly with a cable. This may not be necessary if your laptop and the other device are connected to your home modem.