[Solved] Internal Network Routing

This is for discussing general topics about how to use VirtualBox.
Post Reply
alan01252
Posts: 3
Joined: 20. Jun 2018, 12:22

[Solved] Internal Network Routing

Post by alan01252 »

Hi all,

I've got two virtual machines both statically configured IP addresses one which is

10.10.0.33

and one is

10.20.0.33

Both are configured on the same internal network "myinternalnetwork", however the machines can't ping each other.

If I bring up another machine say 10.10.0.34 this can ping 10.10.0.33
If I bring up another machine say 10.20.0.34 this can ping 10.20.0.33

I'm presuming there's some routing I need to get this to work, but for the life of me I can't figure out how I can get communication between 10.10 -> 10.20 despite them being on the same internal network.

Running standard ubutnu servers.

Any help greatly appreciated

Thanks

Alan
Last edited by socratis on 21. Jun 2018, 01:20, edited 1 time in total.
Reason: Marked as [Solved].
Martin
Volunteer
Posts: 2560
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Internal Network Routing

Post by Martin »

Set a /8 netmask (255.0.0.0) and you don't need routing.
The two virtual machines are not "on the same network" If you use a smaller netmask with these two addresses.
alan01252
Posts: 3
Joined: 20. Jun 2018, 12:22

Re: Internal Network Routing

Post by alan01252 »

Thanks Martin. How do you set the netmask on an internal network, or do I just set this in network interfaces file on the boxes?
Martin
Volunteer
Posts: 2560
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Internal Network Routing

Post by Martin »

It is just the network configuration inside your VMs.
The VirtualBox "Internal Network" is just like a direct cable connection or a simple switch, there is no network addressing intelligence in it. ;)
alan01252
Posts: 3
Joined: 20. Jun 2018, 12:22

Re: Internal Network Routing

Post by alan01252 »

Man I feel dumb ;) Thanks Martin, that obviously works perfectly.... :oops:
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Internal Network Routing

Post by socratis »

Glad you got it going. Marking as [Solved].
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