Hello,
i cannot manage to get the internet with my router working.
In the Software of TP-Link i just had to define a static ip address ,gateway,dns for wan and after that i worked.
I did the same in Lede but it obviously didnt work.
I dont have much knowledge about the configuration with lede but i am wondering if it is right, that the lan port where i connected my computer to, is shown as wan in lede. And the wan port is shown as bridge with the wireless interface.
When i ping any adress it tells me bad adress.
Thanks in advance,
Thomas
Take screenshots to see better.
ip a; uci show network
Sorry uploading images fails every time maybe my handy internet isnt good enought.
Well ip a gives me the following:
root@LEDE:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP qlen 1000
link/ether c0:25:e9:05:fb:04 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether c0:25:e9:05:fb:05 brd ff:ff:ff:ff:ff:ff
inet 149.201.240.203/24 brd 149.201.240.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::c225:e9ff:fe05:fb05/64 scope link
valid_lft forever preferred_lft forever
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether c0:25:e9:05:fb:04 brd ff:ff:ff:ff:ff:ff
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether c0:25:e9:05:fb:04 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fd08:9d74:37b2::1/60 scope global deprecated dynamic
valid_lft 6662sec preferred_lft 0sec
inet6 fe80::c225:e9ff:fe05:fb04/64 scope link
valid_lft forever preferred_lft forever
And uci show network:
root@LEDE:~# uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd08:9d74:37b2::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth0'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.wan=interface
network.wan.ifname='eth1'
network.wan._orig_ifname='eth1'
network.wan._orig_bridge='false'
network.wan.proto='static'
network.wan.ipaddr='149.201.240.203'
network.wan.netmask='255.255.255.0'
network.wan.gateway='149.201.140.20'
network.wan.broadcast='149.201.240.255'
network.wan.dns='149.201.10.30 193.175.146.30'
network.wan6=interface
network.wan6.ifname='eth1'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='1 2 3 4 0'
If you can access the router (HTTP/SSH), then the interface you are connected to is LAN from OpenWrt point.
OpenWrt firewall doesn't permit access from WAN interface by default.
Currently your wireless interface is down for some reason.
Test internet connectivity from OpenWrt:
nslookup google.com 8.8.8.8
nslookup google.com
ping -c3 8.8.8.8
ping -c3 google.com
Well i havent put the Wlan up because internet isnt working from normal lan.
This are the results:
root@LEDE:~# nslookup google.com 8.8.8.8
;; connection timed out; no servers could be reached
root@LEDE:~# nslookup google.com
;; connection timed out; no servers could be reached
root@LEDE:~# ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network unreachable
root@LEDE:~# ping -c3 google.com
ping: bad address 'google.com'
root@LEDE:~#
May be you should consider dynamic IP-address configuration (DHCP-client) for WAN-interface?
Tried that too, but it didnt work.
It didnt work with stock firmware too.
Are you receiving address, mask, gateway, DNS with dynamic configuration?
Do your statically configured parameters match those dynamically received?
Is your ISP-contract registered to specific MAC-address?
Yes i receive a ip with dhcp but it is a 192.168.240.228 so a local ip address.
So the parameters i configured arent matching those.
I dont know if i have to use a specific mac adress, but i didnt need to set anything about that in the stock firmware.
Do you have access to the Internet, when using DHCP for the wan Interface?
No, the diagnostics tells the same Bad adresss.
Which diagnostics?
Of lede under the network section.
Like pinging traceroute.,
There is one difference between using dhcp and the ip i got told. When i use the dhcp pinging 8.8.8.8 gives the error 100% packet loss but when i use the other one it says network unreachable
Is it possible to ping the gateway ( 149.201.140.20 ) when you set the ip manually?
No the same error as before network unreachable.
So you think the ip or the gateway are wrong ?
You were right. :DD I am very sorry that i wasted your time i got a 1 instead of a 2 in the gateway ...
Now everything is working as expected
If your problem is solved, please consider marking the topic as [Solved] (Click the pencil behind the topic...).