0

I have Debian VM and can not ping it outside and access internet inside. The important requirement is have ip address to listen for the server which run on Debian.

By default my config looks as this

Inital config

My host machine ipconfig:

Ethernet adapter Local Area Connection 2:
   Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix  . :
Wireless LAN adapter Wireless Network Connection 4:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix  . :
Wireless LAN adapter Wireless Network Connection:
   Connection-specific DNS Suffix  . :
Link-local IPv6 Address . . . . . : fe80::a8b6:1fcc:cc1e:84d8%15
   IPv4 Address. . . . . . . . . . . : 192.168.0.106
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.0.1
Ethernet adapter Local Area Connection:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : ef.com
Ethernet adapter Bluetooth Network Connection:
   Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix  . :
Ethernet adapter VirtualBox Host-Only Network:
   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::1111:f5d3:1a86:f6b%19
   Autoconfiguration IPv4 Address. . : 169.254.15.107
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
Ethernet adapter VirtualBox Host-Only Network #2:
   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::3828:a1eb:e880:5f76%20
   IPv4 Address. . . . . . . . . . . : 192.168.106.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

I added static ip to VM within my local network. After that looks like this:

config with bridge

However, I still don't able connect network form VM and can ping this ip from host machine either. Did I misunderstand something? Simply bridge in VM settings and ip within available list should be enough

1 Answer 1

0

Ethernet adapter VirtualBox Host-Only Network:

The clue is here, you need either bridged or NAT network. This is changed in the VM's network settings.

This page explains the options in detail.

2
  • 1
    Thank you for clue! My VM already configured network as bridge. Shall I configure something else? The page by link doesn't provide this info -- it iterate only what I already did.
    – user645081
    Commented Sep 25, 2016 at 12:00
  • Please quote the essential parts of the answer from the reference link(s), as the answer can become invalid if the linked page(s) change.
    – DavidPostill
    Commented Oct 2, 2016 at 13:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .