Installing OpenWrt on Pi-4?

Hi All,

I am wanting to setup a small network within the house that can be used just for the little ones around the place.

I have a new-ish Pi-4 with the ‘eth0’ and ‘wlan0’ on board.
I have become confused on how I set up OpenWRT with all it’s settings available it has.

Looking at the above diagram, you will see that ‘eth0’ needs to be Static=192.168.0.2 with a gateway of 192.168.0.1.

the onboard wlan0 would need to be ‘dhcp’ to provide the NAT’s IP’s on 192.168.100.1,… as shown.

But I can figure out how to setup the various Interfaces and bridges.

I have one LAN interface (eth0) which connects to my existing network on 192.168.0.2
I have also have a wifi active (with no ip) I connect to, so I am trying to work out how to join them but have dhcp on the wifi.

Any help would be greatly appreciated.

Pete DU7/VK4CCV

1 Like

move eht0 to the wan firewall zone, and the wlan0 to br-lan.

keep in mind the built-in wifi on the Pi is sh-t, at best.

A more precise description of the process is as follows (assuming a default configuration):

  1. start with the Pi physically disconnected from the upstream modem/router. 2) connect your computer to the Pi via Ethernet (if this isn't an option, you can always connect a monitor and keyboard directly to the Pi and manually edit from there)
  2. enable WiFi (set the country code, SSID, encryption type, passphrase, and then enable the radio).
  3. Now connect your computer via WiFi.
  4. Remove eth0 from br-lan; it is recommended to add option bridge_empty '1' to the bridge at that point.
  5. Create a new interface called wan (all lowercase) and configure it either with static IP, or more commonly DHCP. Use the device eth0 for the wan.
  6. Plug the Ethernet port into the upstream modem/router
  7. Optionally change your lan subnet.

But...

^^^ this is a really important point. You'll probably be quite disappointed by the performance of this system since the WiFi is so severely limited.

1 Like

G'Day Peter,

Mate, took me a few tries at first but I eventually got it.
With OpenWrt having soo many parameters one can set, it pretty confusing.
Thank you very much the help with this - I think I would be still blowing bubbles out of my bubble pipe with out it :rofl:

Take Cate and Happy New Year.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.