Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1025  / 1 Year ago, sat, may 20, 2023, 12:18:27

I have installed a VirtualBox with an Ubuntu Server (16.04)on my Ubuntu 16.04 laptop.



I want to create a virtual network. By reading some post on the web, it seems pretty simple but ...



So, I have configured like that:




  • In VirtualBox settings > network: NAT is empty, and in Host Only, I have vboxnet0 with 192.168.56.1 as IP, 255.255.255.0 as mask and DHCP empty

  • I setup the virtual server, with card 1 = NAT and Private Host with name vboxnet0 and Authorize all.
    Checkbox cable plugged is tick on.


  • File /etc/network/interface contain this informations:



    auto lo
    iface lo inet loopback



    auto enp0s3
    iface enp0s3 inet static
    address 192.168.26.70
    netmask 255.255.255.0
    network 192.168.56.1
    gateway 192.168.56.1
    dns-nameservers 8.8.8.8 8.8.4.4




I try to ping host and guest but nothing is working. I miss something but what ?



Thanks for your help



UPDATE 1
Screenshots about configuration
ifconfig on VM
Settings
/etc/network/interfaces



I know I miss something but what?


More From » networking

 Answers
3

You need to set your network adapter to bridged and for Name: choose your host NIC - your wireless or LAN connection adapter from laptop.



Mine is Intel Centrino Wireless-N 1000



Instead of that choose yours.



and press the MAC Adress refresh button (on the right the blue one with arrows) a few times![enter image description here


[#13728] Sunday, May 21, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
quivedge

Total Points: 223
Total Questions: 116
Total Answers: 124

Location: Slovenia
Member since Wed, Apr 6, 2022
2 Years ago
;