[DRBD-user] DRBD across subnets

Jeff Buck jeffb at umci.com
Tue Apr 24 00:05:41 CEST 2007

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

Can you ping the other machine?

AFAIK drbd doesn't need anything special, but you do need working IP.
Maybe you just need to add a route on each of the boxes so they know
where to find the other machine.

There are endless resources on how to route ip out there on the
internet, but basically, you probably want a route on each machine for
the subnet of the other machine, and that route should point to the
machine in it's own subnet that knows where to find the machines on the
other subnet. You also of course don't want anything filtering your drbd
data out in between them either.. 

Machine a:
Machine b:
Router  1: && + ->internet

Machine a: "route add -net netmask gw"

Machine b: "route add -net netmask gw"

If you have any NAT or filtering going on things get more complicated.. 

If the machines are physically close to each other, you're probably
better off giving them their own private network (could be just a
crossover cable) just for their communication with each other. My guess
is that's what most people do with drbd.

My apologies if this was a little too fundamental, but the WFConnection
just sounds like the machines have no IP between them. If you can ping
though, and there is nothing to filter your packets, then it should
work. Speed is always an issue though, so through a wan can really hurt
your performance.


On Mon, 2007-04-23 at 13:37 -0700, Jeff Gamsby wrote:
> Can I setup DRBD across two subnets?
> I previously had it working on the same subnet, then moved one computer 
> and now I can only get "WFConnection". Using DRBD 8.0.1. Do I need a VPN?
> Thanks,
> Jeff
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user

More information about the drbd-user mailing list