Device to Device Linking (DtDLink)

This tutorial covers how to DtDLink two Ubiquiti nodes together, or one Ubiquiti to one Linksys, without a switch.

Two Ubiquiti Nodes

This is insanely simple. Ubiquiti nodes support DtD out of the box, so just plug their LAN ports into each other and Bob's your uncle.

An Ubiquiti to a Linksys

This is a bit harder. You need to have a basic idea of how to use the Linux shell and Vi.


Connect your computer to your Linksys node, and SSH into it: ssh root@localnode -p2222.

Run vi /etc/vlan. This file will come up:

#### VLAN configuration 
config switch eth0
    option vlan0    "1 2 3 4 5*"
    option vlan1    "0 5"

Change it to look like this:

#### VLAN configuration 
config switch eth0
    option vlan0    "1 2 3 5*"
    option vlan1    "0 5"
    option vlan2    "4t 5t"

Note: Make sure to leave the * after the 5 on vlan0 and include the ts on vlan2.

Save and exit vi. Next, run vi /etc/config.mesh/network. You'll get a much longer file, but we only care about the excerpt that looks like this:

#### device to device configuration
config interface dtdlink
    option ifname   "eth0.2"
    option proto    static
    option ipaddr   <dtdlink_ip>
    option netmask  255.0.0.0
    option auto     no

Add a # to the beginning of the option auto line to comment it out:

#### device to device configuration
config interface dtdlink
    option ifname   "eth0.2"
    option proto    static
    option ipaddr   <dtdlink_ip>
    option netmask  255.0.0.0
    #option auto     no

Save and exit.

DO NOT REBOOT YET!

Open http://localnode:8080/cgi-bin/setup in your web browser. Click save changes, even if you didn't change anything, and then click reboot.

Now one of the end ports on your node will be dedicated to DtDLink. Depending on the model, it could either be the first or the last (excluding the WAN jack). To find out which, plug your computer into the first and open localnode:8080. If that doesn't work, its probably that one. If it does work, then it's the other one. Either way try the other just to be sure. If one works and the other doesn't, then the nonworking one is your DtDLink port. If neither works, you messed something up really badly. I feel sorry for you. Look into how to unbrick your node on the BBHN forums. If both work, you almost definitely didn't take out the 4 from the vlan0 line in /etc/vlan. That's a much easier fix.

Assuming one worked and the other didn't, take a cable and plug one end into your Ubiquiti PoE injector's LAN port. Plug the other end into whichever turned out to be your DtDLink port earlier. They should now be DtDLinked! If not, try again but follow more closely this time. If so, congratulations!