OpenWRT Beginner Need help

Hello!

I've been trying to look at the wiki and reddit for help but can't seem to find anything, either because i don't know the correct words to use or what is actually needing to be done. I'm running a Netgear r6220 with openwrt LuCI installed on it. latest stable release according to the wiki. I've managed to enable WiFi and set that up, but the issue im having is with my LAN ports.

I have my fiber coming in through the wall via a CPE/Wall mounted fiber modem, from that i have a cable going to my WAN port on my router and then I have my 2 PCs connected to LAN 1 and LAN 3.

How do I setup OpenWRT to work like my router did normally before? As in i can have both my PCs connected to separate LAN ports and they obtain and get an IP and work normally. When I look in Network > Interfaces all the ports seem "bridged" with "br-lan". When i add a new interface and name it lan3 for example with static adress exactly the same as the "br-lan" it's just grey and nothing changes.

Appreciate any answers or guidance in the right direction.

could you be a little more specific ...

for example:

pc1 connected to lan1 port what address should it get (example 192.168. 1.2 on subnet mask 255.255. 255.0)

pc2 connected to lan3 port what address should it get (example 192.168. 1.3 on subnet mask 255.255. 255.0)

and so on or in a different way?

https://www.google.com/search?q=ip+address+subnet+mask


this is what i have currently.

Preferably that the PCs run on different IPs like you mentioned and that default subnetmask like the 255.255.255.0.

I'm fairly new to all this so apologizes if my wording is bad. To simply put it I'd like it to operate like when i ran factory firmware for example, plug 1 PC in to LAN 1 and one into LAN 3 and they work without issues. Where as now it either defaults to bridging all my lan ports as "br-lan" or when i try switching the interface to the image shown it barely wants to work.

This is how OpenWrt works out of the box. You don't need to change anything, e.g. create another interface like lan3. So either undo any changes you've made, or do a setting reset.

3 Likes

this of course if you intend for pc1 and pc2 to be on two different networks...

see this document if the intention is similar to what you want to do:

https://openwrt.org/docs/guide-user/network/dsa/dsa-mini-tutorial#multiple_bridged_networks

  1. remove lan3 from br-lan

  1. assign lan3 to the new interface (and assign the firewall to this interface if there are no specific lan firewall needs, unless you want to create a bridge like br-home or something else )

https://openwrt.org/docs/guide-user/network/dsa/dsa-mini-tutorial#multiple_bridged_networks