How to create a private LAN with your OpenWRT or LEDE router

acecilia
acecilia
Aug 28, 2017 · 3 min read

And how to avoid the error Dropping frame due to full tx queue 2

Sometimes your internet connection comes from an already stablished LAN, where a server you do not know manages the network and distributes the local IP addresses.

In most of the cases this translates as: you have one ethernet plug where you connect a router or switch. And in some cases, what you have is a router running OpenWRT or LEDE. Out of the box, when you connect to it you get an address in that LAN (the router is being used as a switch):

But, what happens if you want to create a private LAN to manage your own IP addresses? I will show you how to configure OpenWRT or LEDE using the LUCI interface to achieve it. As a side effect, with this network setup I could provide internet to my wireless devices without experiencing the rt2x00queue_write_tx_frame: Error — Dropping frame due to full tx queue 2 issue.

1) Go to Network -> Switch and create two VLANs: the first one will be used inside our private LAN. It should have the CPU as tagged, and the ethernet ports that are not connected to the main ethernet plug, as untagged. Finally, remember to set the port connected to the main ethernet plug as off.
The second one will be used as the uplink. It should have the CPU as tagged and the port connected to the main ethernet plug as untagged. The rest of the ports set them as off.

2) Create a new interface for the uplink. Go to Network -> Interfaces and click on the “Add new interface” button. Then, set the following:

  1. Protocol of the new interface: toDHCP Client.
  2. Cover the following interface: Switch VLAN: “eth0.2”

Click on “Submit”. Before closing, under Firewall settings set the Firewall to WAN:

Click on “Save and apply”. Now you should see two interfaces:

Great, you have it! Connect to your router and observe how the IPs are now 192.168.1.x.

And that’s it ;P

)

acecilia

Written by

acecilia

Whatever is in my mind: Swift, code and pizza

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade