3 Guests in different internal subnets

Discussions about using Linux guests in VirtualBox.
Post Reply
pfust
Posts: 3
Joined: 7. May 2010, 16:56
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu Server

3 Guests in different internal subnets

Post by pfust »

Hi all,

I have two internal nets (192.168.10.0/24 and 192.168.11.0/24). Therefore, I've installed 1 server and 2 clients:

Server
- eth0: 192.168.10.254
- eth1: 192.168.11.254
- Routing Table has two entries:
192.168.10.0 /// 0.0.0.0 /// eth0
192.168.11.0 /// 0.0.0.0 /// eth1

Client 1
- eth0: 192.168.10.1
- Routing Table has two entries:
192.168.10.0 /// 0.0.0.0 /// eth0
0.0.0.0 /// 192.168.10.254 /// eth0

Client 2

- eth0: 192.168.11.1
- Routing Table has two entries:
192.168.11.0 /// 0.0.0.0 /// eth0
0.0.0.0 /// 192.168.11.254 /// eth0

The following pings are working:
- Client 1/2 --> 192.168.10.254
- Client 1/2 --> 192.168.11.254
- Server --> 192.168.10.1
- Server --> 192.168.11.1

The following pings ARE NOT WORKING:
- Client 1 -> 192.168.11.1
- Client 2 -> 192.168.10.1

Why can't the clients ping each other? They should be routed over the server, isn't it? On the server, I can see the pings with tcpdump....

Thanks,
pfust
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: 3 Guests in different internal subnets

Post by Sasquatch »

Did you actually enable and configure routing options in the Server VM? Without it, you won't get anything nor go anywhere.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
pfust
Posts: 3
Joined: 7. May 2010, 16:56
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu Server

Re: 3 Guests in different internal subnets

Post by pfust »

Yeah, that was it!
As I'm Ubuntu Server I had to turn net.ipv4.ip_forward=1 in /etc/sysctl.conf...

Thanks a lot,
pfust
Post Reply