DLNA via bridged interfaces - OS X Setup is as follows:


Primary network is via en0 (192.168.1.0/24)
Secondary network is via en1 and contains a DLNA server (192.168.2.0/24). This is 'private' network containing only en1 and the DLNA device, with no router etc.


I'd like for devices on the primary network to be able to communicate with/stream from the device on en1. Both networks are connected to a machine running OS X 10.8.

I've tried various combinations of bridge ('ipconfig bridge create' etc), natd, and sysctl in an attempt to arrive at some kind of functional solution and have consistently failed.

Can this be done, and if so, what is my target configuration?

Thanks in advance.
I'm assuming that these are separate networks with their own gateway to the Internet and that the OSX box is just a computer on both LANs (It's not their gateway)?

Bridging the networks has just effectively put a link cable between the two networks. Hosts on 1.x trying to send data to 2.x will just forward the packets to their default gateway which won't know what to do with them.

You could add a 1.x alias to the media server and keep the bridge but that's quite ugly and running two LANs on top of each other is generally discouraged. In addition, if you really wanted to do this it'd make more sense to just link the two networks with a cable rather than bridge them on a host.

The ideal solution is to probably have the default gateway on each network a router capable of routing between the two. However the routers would both need an interface on their respective LAN and an interface to connect the two routers together, plus relevant routes (at the simplest a static route on each) which probably won't be possible with the equipment you have.

By far the easiest solution is to merge the networks and move 2.x stuff onto 1.x or visa-versa, which ever is the least problematic.