Page 1 of 1

3 Guests in different internal subnets

Posted: 13. May 2010, 16:38
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

Re: 3 Guests in different internal subnets

Posted: 13. May 2010, 17:01
by Sasquatch
Did you actually enable and configure routing options in the Server VM? Without it, you won't get anything nor go anywhere.

Re: 3 Guests in different internal subnets

Posted: 13. May 2010, 17:22
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