[Resolved] No connection between two guest in NAT network

Discussions related to using VirtualBox on Linux hosts.
Post Reply
tnagdn
Posts: 6
Joined: 23. Oct 2019, 16:09

[Resolved] No connection between two guest in NAT network

Post by tnagdn »

Right now I have:
  • Windows Server 2003 as DHCP Server (Static Address)
  • IP: 10.0.2.10/24
  • Netmask: 10.0.2.1
  • Two Windows XP machines with dynamic addresses
The three machines inside a nat network with the following configuration
  • 10.0.2.0/14
  • Supported DHCP
Now, the clients are taking the desired addresses, but the problem is:
  • Server can't ping the clients
  • Clients can't ping between themselves
  • Client can only ping the server
What am I doing wrong? Why can't the clients communicate?
Last edited by socratis on 25. Oct 2019, 10:53, edited 3 times in total.
Reason: Marked as [Resolved].
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: No connection between two guest in NAT network

Post by Martin »

Do have connected your guests to a new "NAT network" you have created for that purpose or are they just connected to "NAT"?
tnagdn
Posts: 6
Joined: 23. Oct 2019, 16:09

Re: No connection between two guest in NAT network

Post by tnagdn »

Hello Martin. All the machines are inside a "NAT Network", not simply "NAT"
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: No connection between two guest in NAT network

Post by socratis »

tnagdn wrote:Windows Server 2003 as DHCP Server (Static Address)
Why do you have two DHCP servers, one the NATservice and one your Win2003? There can will be a conflict there.

Are you trying by any chance to create an Active Directory? If so, that's a whole different setup and you will need (AFAIK) to have the Win2003 DHCP server active.

As far as pinging goes, make sure that the firewalls are down, or that at least the ICMP part is allowed.

Please post the output of the command:
  • 
    VBoxManage list natnets
And the DHCP settings for the Win2003 DHCP server.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
tnagdn
Posts: 6
Joined: 23. Oct 2019, 16:09

Re: No connection between two guest in NAT network

Post by tnagdn »

Hello socratis. Yeah I misunderstood the way VBOX DHCP works, already fixed it. So when I set up a DHCP server, I have to disable the DHCP support on VBOX?

Code: Select all

vboxmanage list natnets
NetworkName:    NatNetwork
IP:             10.0.2.1
Network:        10.0.2.0/24
IPv6 Enabled:   No
IPv6 Prefix:    fd17:625c:f037:2::/64
DHCP Enabled:   No
Enabled:        Yes
loopback mappings (ipv4)
        127.0.0.1=2
No I'm not trying to build an Active Directory, just want to create an internal NAT network with DHCP, FTP and DNS functions

Now it seems to work right after disabling the firewall, no idea why when in the past it worked right without disabling it

Thank you for your help!
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: No connection between two guest in NAT network

Post by socratis »

tnagdn wrote:So when I set up a DHCP server, I have to disable the DHCP support on VBOX?
Yes, otherwise I don't know which DHCP server will be the one to give an IP to the other guests.
tnagdn wrote:Now it seems to work right after disabling the firewall, no idea why when in the past it worked right without disabling it
I'm pretty sure that the default behavior these days is to prevent 'ping' from replying, for security reasons. Security through obfuscation...

Marking as [Resolved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply