Openwrt нет интернета на роутере

Use these steps if you can connect to your OpenWrt router’s Web GUI, but cannot connect to the broader Internet (say, www.google.com):

  1. Verify that the WAN connection of your router (usually Ethernet) is connected to your cable/DSL modem, or other device that’s connected “to the internet”.

  2. Check to see if your LAN and WAN ports are in the same address range. To do this:

  3. Change the LAN interface address, if necessary. To do this:

  4. After changing the address, you will need to enter the new address in your web browser. You should get the OpenWrt login page again.

  5. If you still cannot access the internet, then ask on the OpenWrt Forum for more help.

  • Last modified: 2020/04/22 10:49
  • by tmomas

Используйте эти шаги, если вы можете подключиться к веб-графическому интерфейсу вашего маршрутизатора LEDE, но не можете подключиться к более широкому Интернету (например, www.google.com):

  1. Убедитесь, что соединение WAN вашего маршрутизатора (обычно Ethernet) подключено к вашему кабелю/DSL-модему или другому устройству, подключенному к Интернету.

  2. Проверьте, находятся ли ваши LAN и WAN-порты в одном и том же диапазоне адресов. Сделать это:

  3. При необходимости измените адрес интерфейса LAN. Сделать это:

  4. После изменения адреса вам нужно будет ввести новый адрес в своем веб-браузере. Вы должны снова получить страницу входа в систему LEDE.

  5. Если вы все еще не можете получить доступ к Интернету, обратитесь за помощью на форум LEDE.

  • Last modified: 2019/07/04 01:28
  • by tmomas


0

1

Установил openwrt v21.02.2 на роутер asus rt-n56u (a1). Прошивка встала сразу, а вот интернет работать не хочет. Провайдер мой работает по PPPoE. Что самое странное, так это то, что роутер к нему подключился, получил ip и успешно выполняет ping 8.8.8.8, а вот в браузере выполнять запросы не получается.

На пк (windows 10), который подключен по lan к роутеру, индикатор сети в трее показывает, что сеть подключена к интернету. IPv4 адрес пк установлен статично 192.168.1.2, маска 255.255.255.0, gateway 192.168.1.1

На роутере горит только лампа напротив питания. WAN, LAN, wi-fi не горят.

Не знал что прикреплять, в настройках сетей я ноль, поэтому говорите что нужно, если я этого не предоставил.

Выполнил ifconfig через putty по ssh:

root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 32:85:A9:6A:B7:01
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2a02:2698:5022:9921::1/64 Scope:Global
          inet6 addr: 2a02:2698:5022:990d::1/64 Scope:Global
          inet6 addr: fe80::3085:a9ff:fe6a:b701/64 Scope:Link
          inet6 addr: fd32:58a0:3cad::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4863 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:927154 (905.4 KiB)  TX bytes:4303693 (4.1 MiB)

eth0      Link encap:Ethernet  HWaddr 30:85:A9:6A:B7:01
          inet6 addr: fe80::3285:a9ff:fe6a:b701/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13174 errors:0 dropped:2 overruns:0 frame:0
          TX packets:7207 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1856882 (1.7 MiB)  TX bytes:4592118 (4.3 MiB)
          Interrupt:5

eth0.1    Link encap:Ethernet  HWaddr 32:85:A9:6A:B7:01
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10207 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4863 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:927200 (905.4 KiB)  TX bytes:4303693 (4.1 MiB)

eth0.2    Link encap:Ethernet  HWaddr 30:85:A9:6A:B7:00
          inet6 addr: fe80::3285:a9ff:fe6a:b700/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2806 errors:0 dropped:69 overruns:0 frame:0
          TX packets:1218 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:672060 (656.3 KiB)  TX bytes:135689 (132.5 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1095 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1095 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:97480 (95.1 KiB)  TX bytes:97480 (95.1 KiB)

pppoe-pppoe Link encap:Point-to-Point Protocol
          inet addr:100.67.39.198  P-t-P:10.85.255.126  Mask:255.255.255.255
          inet6 addr: fe80::f12d:49d2:cfa6:b89a/128 Scope:Link
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:202 errors:0 dropped:0 overruns:0 frame:0
          TX packets:266 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:44766 (43.7 KiB)  TX bytes:24105 (23.5 KiB)

route:

root@OpenWrt:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.85.255.126   0.0.0.0         UG    0      0        0 pppoe-pppoe
10.85.255.126   *               255.255.255.255 UH    0      0        0 pppoe-pppoe
192.168.1.0     *               255.255.255.0   U     0      0        0 br-lan

Содержимое файла /etc/config/network:

root@OpenWrt:~# cat /etc/config/network

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

config globals 'globals'
        option ula_prefix 'fd32:58a0:3cad::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth0.1'

config device
        option name 'eth0.1'
        option macaddr '32:85:a9:6a:b7:01'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config device
        option name 'eth0.2'
        option macaddr '30:85:a9:6a:b7:00'

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

config interface 'wan6'
        option device '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'

config interface 'pppoe'
        option proto 'pppoe'
        option device 'eth0.2'
        option username 'login'
        option password 'pass'
        option ipv6 'auto'

ping:

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=109 time=53.670 ms
64 bytes from 8.8.8.8: seq=1 ttl=109 time=53.699 ms
64 bytes from 8.8.8.8: seq=2 ttl=109 time=53.556 ms
64 bytes from 8.8.8.8: seq=3 ttl=109 time=53.531 ms
64 bytes from 8.8.8.8: seq=4 ttl=109 time=53.754 ms
64 bytes from 8.8.8.8: seq=5 ttl=109 time=53.566 ms
64 bytes from 8.8.8.8: seq=6 ttl=109 time=53.594 ms
64 bytes from 8.8.8.8: seq=7 ttl=109 time=53.573 ms
64 bytes from 8.8.8.8: seq=8 ttl=109 time=53.660 ms
^C
--- 8.8.8.8 ping statistics ---
9 packets transmitted, 9 packets received, 0% packet loss
round-trip min/avg/max = 53.531/53.622/53.754 ms
  • Печать

Страницы: [1]   Вниз

Тема: opkg OpenWrt не видит интернета  (Прочитано 7912 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
glenar

« Последнее редактирование: 23 Октября 2012, 00:53:12 от glenar »


Оффлайн
fisher74

Эмм… что Вам непонятно?
Может поясните проблему словами, смысл которых понимаете?


Оффлайн
glenar

Может поясните проблему словами, смысл которых понимаете?

1.Чтоб раздать интернет на ip 192.168.1.5 мне нужно чтоб встроенной карте был присвоен этот адрес вручную…но в lan порт подключен патч от роутера тп-линк 3420 и сеть динамическая(присваивает карте 192.168.1.101)…да и подключение по ssh к роутеру тогда не выполнить…может требуется второй адрес присвоить карте?запутался совсем…


Оффлайн
fisher74

Естественно запутались, с такой кашей-то… в голове. Да с такой закрученной статьёй.
Так и пришлось вникнуть в статью под ссылкой… Правда по диагонали.

И что что сеть динамическая? Установите адрес 192,168,1,5 сетевой карточке вручную. С tp-link-ом-то всё равно только один комп в завязках, потому никакой коллизии не будет. Ну или используйте в командах вместо 5-ого адреса 101-ый. Кто мешает-то?


Оффлайн
glenar

Ага за минуту до ответа так и сделал…ребутнул роутер для пущей надежности…вообщем соединение с роутером и прописывание дефолтного шлюза прошло успешно…НО роутер в SSH отказывается пинговать яндекс и не обновляет opkg…может dns yota указать в свойствах карты?


Оффлайн
fisher74

а 8.8.8.8 пингует? если да, то его и пропишите в DNS-ы
Если нет, то и и интернета нет и нао с этим разбираться


Оффлайн
glenar

прописал 10.0.0.1
минуты три пинга не было,но чудо!!!

но yandex чудесно пингованый минуту назад опять не шлет ответ…ip яндекса пингуется…
да и команда route на второй строке подвисает и спустя минуту выдает маршрут. :-\

« Последнее редактирование: 24 Октября 2012, 01:02:12 от glenar »


Оффлайн
fisher74

Куда прописали? что прописали? Что есть 10.0.0.1? Если по IP пингуется, а по имени нет — проблема с DNS.


Оффлайн
glenar

Куда прописали? что прописали? Что есть 10.0.0.1? Если по IP пингуется, а по имени нет — проблема с DNS.

вчера хоть по ip пинговалось,а сегодня даже гугл днс не видет…ДНС 10.0.0.1(Yota) указал через NM в свойствах lan на котором указывал ip 192.168.1.5 и шлюз 192.168.1.1(роутер)…
ping ya.ru в ssh сессии выдает bad addres…


Оффлайн
fisher74

в свойствах lan на котором указывал …. и шлюз 192.168.1.1(роутер)…

Наху… ЗАЧЕМ???


Пользователь решил продолжить мысль 25 Октября 2012, 08:14:28:


А если уж поставили (возможно NM не позволяет сохранить настройки без этого параметра — не помню), то поставьте галочку «Использовать только для ресурсов этой сети» (что-то наподобие, как звучит точно не помню)

« Последнее редактирование: 25 Октября 2012, 08:14:28 от fisher74 »


Оффлайн
glenar

в свойствах lan на котором указывал …. и шлюз 192.168.1.1(роутер)…

Наху… ЗАЧЕМ???


Пользователь решил продолжить мысль 25 Октября 2012, 08:14:28:


А если уж поставили (возможно NM не позволяет сохранить настройки без этого параметра — не помню), то поставьте галочку «Использовать только для ресурсов этой сети» (что-то наподобие, как звучит точно не помню)

галочка стоит,иначе интернет и не работает в ubuntu…тут похоже нужно копаться в конфигах OpenWRT…пока перешел на бэкфайр версию…тут гуи уже есть…попробую йоту подвязать…


Пользователь решил продолжить мысль 25 Октября 2012, 13:32:40:


Через Luci настроил!В инструкции с форума ТП-ЛИНК нужно было создать мост между wan и yota…теперь интернет работает через wifi  и OPenwrt качает…
Спасибо!

« Последнее редактирование: 25 Октября 2012, 13:32:40 от glenar »


  • Печать

Страницы: [1]   Вверх

  • #1

I bought a WD750 router the other day because it was really cheap and I wanted to upgrade my current Netgear N300 with DD-WRT. Well, first thing I did when I took it out of the box was slap OpenWRT on it. http://wiki.openwrt.org/toh/wd/n750

I go to hook it up, and I am getting no internet. I tried playing around in the settings, nothing. Wan is set to DHCP by default and eth0.2 VLAN, LAN is bridged to the ethernet ports and wireless connections on eth0.1 VLAN…Even resetting it completely with the ‘stock’ settings on OpenWRT I can’t get any IP address from the wan connection, and it just refuses to connect.

On my current N300, the WAN connection is DHCP — that’s about all I changed (besides obvious security) when I initially installed DD-WRT before..I’m used to that, not OpenWRT.

Anybody know what the deal could be? Is there an extra setting I need to check somewhere? I am with Time Warner running a Motorola Docsis 3.0 modem for what it’s worth, not that it should really matter.

  • #2

I have the same issue with my WRT1900AC, so i stopped using it and returned to stock firmware.

Kursah


  • #3

I had an issue with my Asus router even when running stock AsusWRT and my Arris (iirc) cable modem from Charter until they resolved a service-issue on their side.

For the longest time, my router(s); I tried different routers, firmwares, etc, and they would always fail to resolve a connection. My strategy might work for you in this instance…might not…
Grab an IP from your modem directly to a device like a workstation or laptop. Then connect the router. That worked for me until the resolved issues on their end.

I have my router WAN set to dynamic as well, and set to aggressive mode, which tries several times at 20-second intervals to grab an IP address. Haven’t had any issues in months. This likely isn’t your issue, but it’s worth a shot to see if it helps resolve anything.

Have you tried any other firmwares like Tomato? Not sure if there are any for that router, but if there is, ya might take a look.

  • #4

try gargoyle its openwrt based but with a usable-gui
flash
gargoyle-1.6.2.2-ar71xx-mynet-n750-squashfs-factory.bin
then
gargoyle-1.6.2.2-ar71xx-mynet-n750-squashfs-sysupgrade.bin
it will boot in polish just click the lanuage icon and switch to english

download from here http://dl.eko.one.pl/gargoyle-pl/attitude_adjustment/ar71xx/

the router being a AR71XX is not supported by ddwrt or tomato
its openwrt or stock

Last edited:

  • #5

Not sure if it was Gargoyle that did the trick, but the router kept getting a blank gateway when I was trying to get an address from it, but giving me my real IP in the Wan IP section (DNS servers were also showing 0.0.0.0, so I switched to Google):

After rebooting the modem, I can get to the internet (posting now) — just seems weird that it gives me a 192 address — the modem has an internal DHCP server that it hands out to devices then?

The interface is definitely easier to follow along with than the Luci (I guess that’s the name) that came along with OpenWrt. So thanks! All seems good and I already notice a little bit of a speed difference from the Netgear N300, and I’m on a wired connection (albeit a Netgear powerline adapter).

EDIT: Okay, now that I go back to the page, the WAN Ips are cleared up and it now gave me my real IPs, not the 192 addresses.

  • #6

good to know
as for the weirdness those builds are fairly old
try asking in this thread if somebody can build you a image set for the N750 I currently don’t see it
https://www.gargoyle-router.com/phpbb/viewtopic.php?f=14&t=6775
N750 is quiet old in the router world nobody has bothered to make builds for 1.7.0 yet

Last edited:

  • #7

Will poke around and see if someone could.

Do you have any idea why the router wouldn’t be giving wireless addresses the correct (or any) DHCP servers? I had to manually set them on my MBP and my PS3 is having the same error. I checked ‘force clients to use router DNS servers’ but that doesn’t seem to have mattered.
The default it was getting was 10.0.1.0 (the router’s IP) with the ‘lan’ hostname.

  • #8

Will poke around and see if someone could.

Do you have any idea why the router wouldn’t be giving wireless addresses the correct (or any) DHCP servers? I had to manually set them on my MBP and my PS3 is having the same error. I checked ‘force clients to use router DNS servers’ but that doesn’t seem to have mattered.
The default it was getting was 10.0.1.0 (the router’s IP) with the ‘lan’ hostname.

no idea never used openwrt very much I would assume its a issue with the dnsmasq config might need to play with the subnet config and put it on the same subnet as the lan
http://wiki.openwrt.org/doc/howto/dhcp.dnsmasq
openwrt does no config out of the box you need todo basically everything by hand

Last edited:

  • #9

no idea never used openwrt very much I would assume its a issue with the dnsmasq config might need to play with the subnet config and put it on the same subnet as the lan
http://wiki.openwrt.org/doc/howto/dhcp.dnsmasq
openwrt does no config out of the box you need todo basically everything by hand

Well, once again, I think the change that solved it was editing the LAN subnet to 255.255.240.0 to match the WAN one, but I ssh’d in and made changes to the files too.

Thanks again! DD-WRT was so much easier to configure. Doing DevOps work has gotten me away from my hardware/networking too much it seems. :(

  • Openvpn сервер на роутере keenetic
  • Ntp сервер для роутера что это
  • Openwrt роутер что это такое
  • Ont роутер мгтс что это
  • Openvpn сервер на роутере asus