Temat: brak internetu na zainstalowanym openwrt

Witam,
zakupiłem ax3000t, wgrałem openwrt patcherem xmir na obrazach Cezarego, mam nadzieję, że ok wszystko zrobione. Wcześniej miałem gargoyle i tam nie miałem problemu z konfiguracją. Niestety tutaj nie potrafię przez to przebrnąć i ustawić działającego internetu. Kabel podłączony do pierwszego rj45 od strony zasilania, czyli wan. Prób mnóstwo i nic. Może ktoś mi podpowie, proszę. Mój ipconfig:
Microsoft Windows [Version 10.0.19045.4717]
(c) Microsoft Corporation. Wszelkie prawa zastrzeżone.

C:\Users\_MIREK_>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : MIREK
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : lan

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller
   Physical Address. . . . . . . . . : F0-76-1C-3C-38-B7
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : fd11:f91:a52d::708(Preferred)
   Lease Obtained. . . . . . . . . . : poniedziałek, 29 lipca 2024 15:39:03
   Lease Expires . . . . . . . . . . : wtorek, 30 lipca 2024 03:39:04
   IPv6 Address. . . . . . . . . . . : fd11:f91:a52d:0:91d2:5d4e:ed40:b9bd(Preferred)
   Temporary IPv6 Address. . . . . . : fd11:f91:a52d:0:3d51:66f8:cf49:2698(Preferred)
   Link-local IPv6 Address . . . . . : fe80::79b9:3919:43fd:d3d0%15(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.219(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : poniedziałek, 29 lipca 2024 14:33:32
   Lease Expires . . . . . . . . . . : wtorek, 30 lipca 2024 03:39:03
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 267417116
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-AB-13-2F-F0-76-1C-3C-38-B7
   DNS Servers . . . . . . . . . . . : fd11:f91:a52d::1
                                       192.168.1.1
                                       fd11:f91:a52d::1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Połączenie lokalne* 1:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 1E-B5-7D-68-41-3C
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Połączenie lokalne* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
   Physical Address. . . . . . . . . : 2E-B5-7D-68-41-3C
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : Qualcomm Atheros AR956x Wireless Network Adapter
   Physical Address. . . . . . . . . : AC-B5-7D-68-41-3C
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

2

Odp: brak internetu na zainstalowanym openwrt

Zaloguj się na router i pokaż wyniki poleceń

uci show network
ifstatus wan
route -n
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: brak internetu na zainstalowanym openwrt

root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='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='fd11:0f91:a52d::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.@device[1]=device
network.@device[1].name='wan'
network.@device[1].macaddr='50:88:11:52:33:ed'
network.wan=interface
network.wan.device='wan'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
network.wan6.reqaddress='try'
network.wan6.reqprefix='auto'
root@OpenWrt:~# ifstatus wan
{
        "up": false,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "proto": "dhcp",
        "device": "wan",
        "data": {

        }
}
root@OpenWrt:~# route -nroot@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='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='fd11:0f91:a52d::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
route: unrecognized option: r
BusyBox v1.36.1 (2023-11-15 10:00:19 UTC) multi-call binary.

Usage: route [-ne] [-A inet[6]] [{add|del} [-net|-host] TARGET [netmask MASK]
        [gw GATEWAY] [metric N] [mss BYTES] [window BYTES] [reject] [IFACE]]

Show or edit kernel routing tables

        -n      Don't resolve names
        -e      Display other/more information
        -A inet[6]      Select address family
root@OpenWrt:~# network.loopback=interface
-ash: network.loopback=interface: not found
root@OpenWrt:~# network.loopback.device='lo'
-ash: network.loopback.device=lo: not found
root@OpenWrt:~# network.loopback.proto='static'
-ash: network.loopback.proto=static: not found
root@OpenWrt:~# network.loopback.ipaddr='127.0.0.1'
-ash: network.loopback.ipaddr=127.0.0.1: not found
root@OpenWrt:~# network.loopback.netmask='255.0.0.0'
-ash: network.loopback.netmask=255.0.0.0: not found
root@OpenWrt:~# network.globals=globals
-ash: network.globals=globals: not found
root@OpenWrt:~# network.globals.ula_prefix='fd11:0f91:a52d::/48'
-ash: network.globals.ula_prefix=fd11:0f91:a52d::/48: not found
root@OpenWrt:~# network.@device[0]=device
-ash: network.@device[0]=device: not found
root@OpenWrt:~# network.@device[0].name='br-lan'
-ash: network.@device[0].name=br-lan: not found
root@OpenWrt:~# network.@device[0].type='bridge'
network.lan=interface
-ash: network.@device[0].type=bridge: not found
root@OpenWrt:~# network.@device[0].ports='lan2' 'lan3' 'lan4'
-ash: network.@device[0].ports=lan2: not found
network.lan.device='br-lan'
root@OpenWrt:~# network.lan=interface
-ash: network.lan=interface: not found
root@OpenWrt:~# network.lan.device='br-lan'
-ash: network.lan.device=br-lan: not found
root@OpenWrt:~# network.lan.proto='static'
-ash: network.lan.proto=static: not found
root@OpenWrt:~# network.lan.ipaddr='192.168.1.1'
-ash: network.lan.ipaddr=192.168.1.1: not found
root@OpenWrt:~# network.lan.netmask='255.255.255.0'
network.@device[1]=device
-ash: network.lan.netmask=255.255.255.0: not found
root@OpenWrt:~# network.lan.ip6assign='60'
-ash: network.lan.ip6assign=60: not found
root@OpenWrt:~# network.@device[1]=device
network.@device[1].name='wan'
network.@device[1].macaddr='50:88:11:52:33:ed'
-ash: network.@device[1]=device: not found
root@OpenWrt:~# network.@device[1].name='wan'
network.wan=interface
-ash: network.@device[1].name=wan: not found
root@OpenWrt:~# network.@device[1].macaddr='50:88:11:52:33:ed'
-ash: network.@device[1].macaddr=50:88:11:52:33:ed: not found
root@OpenWrt:~# network.wan=interface
-ash: network.wan=interface: not found
root@OpenWrt:~# network.wan.device='wan'
-ash: network.wan.device=wan: not found
root@OpenWrt:~# network.wan.proto='dhcp'
network.wan6.device='wan'
-ash: network.wan.proto=dhcp: not found
root@OpenWrt:~# network.wan6=interface
network.wan6.proto='dhcpv6'
-ash: network.wan6=interface: not found
root@OpenWrt:~# network.wan6.device='wan'
network.wan6.reqaddress='try'
-ash: network.wan6.device=wan: not found
root@OpenWrt:~# network.wan6.proto='dhcpv6'
-ash: network.wan6.proto=dhcpv6: not found
root@OpenWrt:~# network.wan6.reqaddress='try'
-ash: network.wan6.reqaddress=try: not found
root@OpenWrt:~# ifstatus wan
root@OpenWrt:~# network.wan6.reqprefix='auto'
-ash: network.wan6.reqprefix=auto: not found
root@OpenWrt:~# root@OpenWrt:~# ifstatus wan
        "up": false,
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# {
>         "up": false,
>         "pending": false,
>         "available": true,
>         "autostart": true,
>         "dynamic": false,
>         "proto": "dhcp",
>         "device": "wan",
>         "data": {
>
        }
>         }
-ash: up:: not found
}
-ash: pending:: not found
-ash: available:: not found
root@OpenWrt:~# route -n
-ash: autostart:: not found
-ash: dynamic:: not found
-ash: proto:: not found
-ash: device:: not found
-ash: data:: not found
root@OpenWrt:~# }
-ash: syntax error: unexpected "}"
root@OpenWrt:~# root@OpenWrt:~# route -n
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~#

4

Odp: brak internetu na zainstalowanym openwrt

Nie masz na wanie adresu, nic nie dostałeś od nadrzędnego routera, nie masz połączenia z internetem.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: brak internetu na zainstalowanym openwrt

głupie pytanie, jak to zrobić? Nie radzę sobie z tym.

6

Odp: brak internetu na zainstalowanym openwrt

Ten sam kabel który masz wpięty do gniazdka wan w ruterze podłącz bezpośrednio do komputera. i zobacz czy dostaniesz adres.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: brak internetu na zainstalowanym openwrt

panika się wkrada, wyciągnąłem kabel
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='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='fd11:0f91:a52d::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.@device[1]=device
network.@device[1].name='wan'
network.@device[1].macaddr='50:88:11:52:33:ed'
network.wan=interface
network.wan.device='wan'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
network.wan6.reqaddress='try'
network.wan6.reqprefix='auto'
root@OpenWrt:~# ifstatus wan
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 89,
        "l3_device": "wan",
        "proto": "dhcp",
        "device": "wan",
        "updated": [
                "addresses",
                "routes",
                "data"
        ],
        "metric": 0,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [
                {
                        "address": "192.168.1.168",
                        "mask": 24
                }
        ],
        "ipv6-address": [

        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "0.0.0.0",
                        "mask": 0,
                        "nexthop": "192.168.1.1",
                        "source": "192.168.1.168/32"
                }
        ],
        "dns-server": [
                "192.168.1.1"
        ],
        "dns-search": [

        ],
        "neighbors": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ],
                "neighbors": [

                ]
        },
        "data": {
                "dhcpserver": "192.168.1.1",
                "hostname": "OpenWrt",
                "leasetime": 600
        }
}
root@OpenWrt:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wan
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wan
root@OpenWrt:~#

8

Odp: brak internetu na zainstalowanym openwrt

Teraz to to co zawsze - nie masz mieć na wanie adresu z takiej samej klasy jak na lanie. Zmień adres na lanie na 192.158.2.1 (zamiast 192.168.1.1 jak masz teraz).

uci set network.lan.ipaddr=192.168.2.1
uci commit
reboot

Router będzie wtedy pod adresem 192.168.2.1.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: brak internetu na zainstalowanym openwrt

zmieniałem na 192.168.1.2 bo ta sama sieć i nic to nie dawało. Robię tak jak napisałeś.

10

Odp: brak internetu na zainstalowanym openwrt

Zaloguj się znów do routera, pokaż znów wyniki tamtych poleceń oraz wyniki

ping 8.8.8.8
ping google.com
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: brak internetu na zainstalowanym openwrt

Dzięki Cezary. Nie było dla mnie logiczne zmienić tak. Działa. Namęczyłem się sporo.

12

Odp: brak internetu na zainstalowanym openwrt

root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=114 time=9.037 ms
64 bytes from 8.8.8.8: seq=1 ttl=114 time=9.394 ms
64 bytes from 8.8.8.8: seq=2 ttl=114 time=8.913 ms
64 bytes from 8.8.8.8: seq=3 ttl=114 time=9.582 ms
64 bytes from 8.8.8.8: seq=4 ttl=114 time=8.739 ms
64 bytes from 8.8.8.8: seq=5 ttl=114 time=8.796 ms
64 bytes from 8.8.8.8: seq=6 ttl=114 time=8.763 ms
64 bytes from 8.8.8.8: seq=7 ttl=114 time=9.614 ms

13

Odp: brak internetu na zainstalowanym openwrt

root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='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='fd11:0f91:a52d::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.2.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.@device[1]=device
network.@device[1].name='wan'
network.@device[1].macaddr='50:88:11:52:33:ed'
network.wan=interface
network.wan.device='wan'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
network.wan6.reqaddress='try'
network.wan6.reqprefix='auto'
root@OpenWrt:~# ifstatus wan
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 558,
        "l3_device": "wan",
        "proto": "dhcp",
        "device": "wan",
        "metric": 0,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [
                {
                        "address": "192.168.1.168",
                        "mask": 24
                }
        ],
        "ipv6-address": [

        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "0.0.0.0",
                        "mask": 0,
                        "nexthop": "192.168.1.1",
                        "source": "192.168.1.168/32"
                }
        ],
        "dns-server": [
                "192.168.1.1"
        ],
        "dns-search": [

        ],
        "neighbors": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ],
                "neighbors": [

                ]
        },
        "data": {
                "dhcpserver": "192.168.1.1",
                "hostname": "OpenWrt",
                "leasetime": 600
        }
}
root@OpenWrt:~# route -n

14

Odp: brak internetu na zainstalowanym openwrt

Jak to teraz wygląda? Czy jeszcze coś do poprawy? Pytanie nie w temacie, ale dotyczące openwrt, czy warto włączyć Internet IPv6 i czy jestem w stanie to ogarnąć?

15

Odp: brak internetu na zainstalowanym openwrt

Masz połączenie to nic nie ma do przestawiania. Przynajmniej jeżeli chodzi o połączenie

Ipv6 to zależy od tego czy dostawca obsługuje ipv6 i dostaniesz od niego adres. Jak nie nie to nie ma sensu. Jak tak to zależy czy chcesz się bawić w ipv6.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16

Odp: brak internetu na zainstalowanym openwrt

Czyli nie ma takiej potrzeby. Dzięki.