Make your own router with WRTNode - adding four LAN ports and one WAN port

In the previous post about WRTNode We learned as adding a port to our small router series, to control it from other devices without the need to access via wifi or cable.


Today we will learn how to add him a total of four ports LAN and a port WAN; using various connectors Ethernet for PCB.

The ethernet cables that we employ in the single day using two pairs of copper of the four available inside wiring, Since is only necessary a pair for sending and one for receiving; many agents deliver cable customers with only two pairs, crimpando in the corresponding to the pair of green pins, the pair of blue.

This is why you will only need to weld four pins in each connector Ethernet, that will reduce the time required, and the budget for this internship.


In order to connect jumper cables, soldered you pins as of WRTNode o Raspberry PI that incorporates this connector factory Ethernet; and to finish it I fixed everything with a little glue melt to protect welds possible contacts; or breaks with the passage of time and continued use.

ThermoplasticFor the following example, We will use a four-port module magic jack Ethernet for the four ports LAN, a single connector to the port module and WAN, so first we have to see the two tables of connections and the following schemes; the table complete with the numbering of the GPIO of WRTNode You can find it in this previous article.

WRTNode LAN port
TX + (GPIO 1,16,18,20)
TX + (White Orange)
TX – (GPIO 14,3,5,7)
TX – (Orange)
RX + (GPIO 15,17,19,21)
RX + (White Green)
RX – (GPIO 2,4,6,8) RX – (Green)

For the port WAN We will use the following table, but the ethernet connector pinout is the same; the reserved port for WAN in WRTNode is the closest to the connector microUSB.

WRTNode WAN port
TX + (GPIO 22)
TX + (White Orange)
TX – (GPIO 9)
TX – (Orange)
RX + (GPIO 23)
RX + (White Green)
RX – (GPIO 10) RX – (Green)

Then as in previous tables, We can see that each wire twisted pair is assigned a PIN of connector Ethernet; below we will see which pin of WRTNode We must connect every PIN through the assignment of colors.

WAN port.


LAN ports.


In the case of WRTNode and starting at the top, the first four groups of pins and more remote connector microUSB they are the assigned to LAN; of them the first group of four has a different pinout, the fifth and last group is the reserved for WAN.

WRTNode pinout.

Now we can already connect a cable Ethernet between our access point to Internet and the port WAN of WRTNode, and another between our end devices and ports LAN; You can see the result in the next picture.

OLYMPUS DIGITAL CAMERAWe will then check the port settings Ethernet and the local area connection, Finally doing a ping to WRTNode.

usuario@maquina:~$ ifconfig
wlan0 Link encap:Ethernet direcciónHW **:**:**:**:**:**
 Direc. inet: Difus.: Másc:
 Dirección inet6: fdae:616f:68d:0:6e71:d9ff:fe63:e717/64 Alcance:Global
 Dirección inet6: fe80::6e71:d9ff:fe63:e717/64 Alcance:Enlace
 Dirección inet6: fdae:616f:68d::f43/128 Alcance:Global
 Dirección inet6: fdae:616f:68d:0:5dfa:2327:97a8:fb21/64 Alcance:Global
 Paquetes RX:345470 errores:0 perdidos:0 overruns:0 frame:0
 Paquetes TX:330256 errores:0 perdidos:0 overruns:0 carrier:0
 colisiones:0 long.colaTX:1000 
 Bytes RX:240867667 (240.8 MB) TX bytes:82808909 (82.8 MB)

usuario@maquina:~$ ping
PING ( 56(84) bytes of data.
64 bytes from OpenWrt.lan ( icmp_seq=1 ttl=64 time=0.643 ms
64 bytes from OpenWrt.lan ( icmp_seq=2 ttl=64 time=0.687 ms
64 bytes from OpenWrt.lan ( icmp_seq=3 ttl=64 time=0.673 ms
64 bytes from OpenWrt.lan ( icmp_seq=4 ttl=64 time=1.00 ms

--- ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.643/0.751/1.001/0.145 ms

Once checked the connection on the local network, We will make a Ping to out to verify if the DNS configured in the router Home meet the request as in the following example.

usuario@maquina:~$ ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=47 time=40.4 ms
64 bytes from ( icmp_seq=2 ttl=47 time=40.1 ms
64 bytes from ( icmp_seq=3 ttl=47 time=42.5 ms
64 bytes from ( icmp_seq=4 ttl=47 time=40.2 ms

--- ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 40.132/40.847/42.549/1.020 ms

We can save these two latest tests, accessing the interface from your web browser by our team LuCI configuration of WRTNode, and opening the tab Network.


WAN IPv4 Status (

There you will find all current information about active connections; both of WAN as of LAN.


List of current DHCP loans (

If you like you can follow me on Twitter, Facebook, Google +, LinkedIn, or share it with the buttons under this publication, If you have any questions or suggestions please do not hesitate to comment.

Help us to reach more readers Share on LinkedInShare on FacebookTweet about this on TwitterShare on Google+Email this to someone

5 thoughts on"Make your own router with WRTNode - adding four LAN ports and one WAN port

  1. Hello, This could replace the home router do not?? I would love to remove the router company and mount me a router as your have mounted, but I have thought of riding 3 ethernet ports and the last ride it like the wan, so I save having it divided, but clear out my doubts, how the wifi coverage will?? having no antenna, What scope?? and finally finally, where have you bought the 4 lan ports?? where can I get this material??

  2. Hello Jose, Thank you very much for your comment.

    WRTNode is a router 100% functional according to my criteria, and you could replace your House by one whenever your router is neutral; i.e., whenever your router receives internet using four pairs with head RJ45 cable.

    With regard to the saddle a single connector of 4 ports is perfectly feasible, You must only connect one port to the WAN pins.

    Wifi coverage is pretty good, as I said in some of the talks which you can find on my Youtube Channel and blog, live on a mezzanine level and from the portal of the building I still have coverage up to a few meters away.

    Although I don't use it as a main router, If I have used it in different projects pending publication; and if it is true that it has yielded perfectly, I do not recommend its use as main router to people who do not have confidence in the field of networks and GNU/Linux systems.

    You can purchase all the components used in any shop of electronics in your city, or via the Internet at stores such as AliExpress, Amazon or Banggood; precisely what to my more it cost me to get were MagicJack RJ45 connectors in general, and the four ports in particular.

    I hope the answer will be useful, If you have any problems or questions please do not hesitate to comment 🙂

    • Now I understand vale, I don't get internet for rj45, I receive it by lifetime rj11. I thought that in the port wan could connect directly from the rosette of Telefónica, I had thought to do a hose, the other rj45 and rj11 extreme and connect it to the wan port. Then in this wan port configure the data of the internet provider and has run!!! but I see, So tell me, It is not possible because I have to leave my router how neutral and would be another pileup more on…….. and I am not interested, Thank you for your explanation and your help.

      • If someday you go to fiber optic you can retake the initiative, Since in this case fibre hose is connected to the Ont., and this in turn is connected to a neutral router by RJ45 which is which provides both RJ45 and WIFI Internet.

        See you soon and thank you for your comment.

Leave a Reply