getting-the-usb-powerline-bridge-to-work-on-linux.md - www.codemadness.org - www.codemadness.org saait content files
 (HTM) git clone git://git.codemadness.org/www.codemadness.org
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       getting-the-usb-powerline-bridge-to-work-on-linux.md (4119B)
       ---
            1 **NOTE: this guide is obsolete, a working driver is now included in the Linux
            2 kernel tree ([since Linux 2.6.31](https://lkml.org/lkml/2009/4/18/121))**
            3 
            4 
            5 ## Introduction
            6 
            7 A USB to powerline bridge is a network device that instead of using an ordinary
            8 Ethernet cable (CAT5 for example) or wireless LAN it uses the powerlines as a
            9 network to communicate with similar devices.  A more comprehensive explanation
           10 of what it is and how it works you can find here:
           11 <https://en.wikipedia.org/wiki/IEEE_1901>.
           12 
           13 Known products that use the Intellon 51x1 chipset:
           14 
           15 * MicroLink dLAN USB
           16 * "Digitus network"
           17 * Intellon USB Ethernet powerline adapter
           18 * Lots of other USB-powerline adapters...
           19 
           20 To check if your device is supported:
           21 
           22         $ lsusb | grep -i 09e1
           23         Bus 001 Device 003: ID 09e1:5121 Intellon Corp.
           24 
           25 If the vendor (09e1) and product (5121) ID match then it's probably supported.
           26 
           27 
           28 ## Installation
           29 
           30 Get drivers from the official site:
           31 <http://www.devolo.co.uk/consumer/downloads-44-microlink-dlan-usb.html?l=en> or
           32 [mirrored here](downloads/int51x1/dLAN-linux-package-v4.tar.gz).
           33 The drivers from the official site were/are more up-to-date.
           34 
           35 Extract them:
           36 
           37         $ tar -xzvf dLAN-linux-package-v4.tar.gz
           38 
           39 Go to the extracted directory and compile them:
           40 
           41         $ ./configure
           42         $ make
           43 
           44 Depending on the errors you got you might need to [download](downloads/int51x1/int51x1.patch) and apply
           45 my patch:
           46 
           47         $ cd dLAN-linux-package-v4/     (or other path to the source code)
           48         $ patch < int51x1.patch
           49 
           50 Try again:
           51 
           52         $ ./configure
           53         $ make
           54 
           55 If that failed try:
           56 
           57         $ ./configure
           58         $ KBUILD_NOPEDANTIC=1 make
           59 
           60 If that went OK install the drivers (as root):
           61 
           62         # make install
           63 
           64 Check if the "devolo_usb" module is loaded:
           65 
           66         $ lsmod | grep -i devolo_usb
           67 
           68 If it shows up then it's loaded. Now check if the interface is added:
           69 
           70         $ ifconfig -a | grep -i dlanusb
           71         dlanusb0 Link encap:Ethernet HWaddr 00:12:34:56:78:9A
           72 
           73 
           74 ## Configuration
           75 
           76 It is assumed you use a static IP, otherwise you can just use your DHCP client
           77 to get an unused IP address from your DHCP server. Setting up the interface is
           78 done like this (change the IP address and netmask accordingly if it's
           79 different):
           80 
           81         # ifconfig dlanusb0 192.168.2.12 netmask 255.255.255.0
           82 
           83 
           84 ## Checking if the network works
           85 
           86 Try to ping an IP address on your network to test for a working connection:
           87 
           88         $ ping 192.168.2.1
           89         PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
           90         64 bytes from 192.168.2.1: icmp_seq=1 ttl=30 time=2.49 ms
           91         64 bytes from 192.168.2.1: icmp_seq=2 ttl=30 time=3.37 ms
           92         64 bytes from 192.168.2.1: icmp_seq=3 ttl=30 time=2.80 ms
           93         --- 192.168.2.1 ping statistics ---
           94         3 packets transmitted, 3 received, 0% packet loss, time 2005ms
           95         rtt min/avg/max/mdev = 2.497/2.891/3.374/0.368 ms
           96 
           97 
           98 You can now set up a network connection like you normally do with any Ethernet
           99 device.  The route can be added like this for example:
          100 
          101         # route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.2.1 dlanusb0
          102 
          103 Change the IP address of your local gateway accordingly. Also make sure your
          104 nameserver is set in /etc/resolv.conf, something like:
          105 
          106         nameserver 192.168.2.1
          107 
          108 Test your internet connection by doing for example:
          109 
          110         $ ping codemadness.org
          111         PING codemadness.org (64.13.232.151) 56(84) bytes of data.
          112         64 bytes from acmkoieeei.gs02.gridserver.com (64.13.232.151): icmp_seq=1 ttl=52 time=156 ms
          113         64 bytes from acmkoieeei.gs02.gridserver.com (64.13.232.151): icmp_seq=2 ttl=52 time=156 ms
          114         64 bytes from acmkoieeei.gs02.gridserver.com (64.13.232.151): icmp_seq=3 ttl=52 time=155 ms
          115         --- codemadness.org ping statistics ---
          116         3 packets transmitted, 3 received, 0% packet loss, time 1999ms
          117         rtt min/avg/max/mdev = 155.986/156.312/156.731/0.552 ms
          118 
          119 If this command failed you probably have not setup your DNS/gateway properly.
          120 If it worked then good for you :)
          121 
          122 
          123 ## References
          124 
          125 * [Devolo download page with drivers (USB version).](http://www.devolo.co.uk/consumer/downloads-44-microlink-dlan-usb.html?l=en)
          126 * [dLAN-linux-package-v4.tar.gz](downloads/int51x1/dLAN-linux-package-v4.tar.gz)
          127 * [Patch for recent 2.6.x kernels](downloads/int51x1/int51x1.patch)
          128 * [INT51X1 datasheet](downloads/int51x1/INT51X1_datasheet.pdf)