RT-N56U - Connectivity problems

Hey!

New to OpenWrt, so I basically have no idea what I'm doing.
I just reset my configuration to default, for like the 100th time today, so some help would be greatly appreciated. I'm trying to use said router as my main gateway.

The problem I'm having is that I cannot connect to the internet for the most part. For some reason google and *.openwrt.org works tho. When I ping from the router to 8.8.8.8 and google.com, I get network unreachable. When I try to visit ex. reddit.com via browser, i get ERR_CONNECTION_TIMED_OUT.

Yes, I'v changed my lan IP to 192.168.2.1. It didnt work, this is a fresh reset.

Heres my /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix '[redacted]'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0.1'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config device 'lan_eth0_1_dev'
        option name 'eth0.1'
        option macaddr '[redacted]'

config interface 'wan'
        option ifname 'eth0.2'
        option proto 'dhcp'

config device 'wan_eth0_2_dev'
        option name 'eth0.2'
        option macaddr '[redacted]'

config interface 'wan6'
        option ifname 'eth0.2'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0 1 2 3 8t'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '4 8t'

Many thanks in advance!

Hi,

i think you have to tell us something about your internet connection.
dsl/cable, provider and used modem (your router doesn't look like as it has a integrated modem)...

1 Like

Also an ip -4 addr; ip -4 ro; ifstatus wan would help.

Hmm, when I got home today everything worked. So I suppose something went wrong with the first DHCP lease?

I'm not sure. I have fiber, and over my door the actuall fiber cable comes out through a hole and in to this box. I don't know if this box replaces the modem, but I used the same hardware before I installed OpenWrt and it worked. My provider is called Bahnhof.