Temat: Ping po nazwie z routera

Witam,
mam dziwną przypadłość na którą nie mogę znaleźć rozwiązania, więc nie działa mi ping po nazwie ale tylko i wyłącznie z routera.
Wszystkie inne urządzenia podłączone pod niego już poprawnie pingują.
Gdzie szukać problemu?

plik 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 'fd0a:df98:c8ad::/48'

config device
    option name 'br-lan'
    option type 'bridge'
    list ports 'lan2'
    list ports 'lan3'
    list ports 'lan4'

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'
    list dns '1.1.1.1'
    list dns '1.0.0.1'

config device
    option name 'wan'
    option macaddr 'xx:bf:xx:fe:8d:xx'

config interface 'wan'
    option device 'wan'
    option proto 'dhcp'
    option peerdns '0'
    list dns '1.1.1.1'
    list dns '1.0.0.1'

config interface 'wan6'
    option device 'wan'
    option proto 'dhcpv6'
    option reqaddress 'try'
    option reqprefix 'auto'
    option peerdns '0'
    list dns '2606:4700:4700::1111'
    list dns '2606:4700:4700::1001'

config interface 'home'
    option proto 'none'
    option device 'ZeroTier'

config interface 'tailscale'
    option proto 'none'
    option device 'tailscale0'

Proszę o podpowiedź.
Pozdrawiam
Artur

GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

2

Odp: Ping po nazwie z routera

Wywal te dnsy od ipv6.

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

3

Odp: Ping po nazwie z routera

Nie pomogło

ping: bad address 'openwrt.org'
GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

4

Odp: Ping po nazwie z routera

A ping 8.8.8.8 działa?
Pokaż

cat /etc/resolb.conf
cat /tmp/resolv.conf.d/resolv.conf.auto

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

5 (edytowany przez artur_n 2024-09-15 21:17:26)

Odp: Ping po nazwie z routera

Działa

PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=119 time=9.054 ms
64 bytes from 8.8.8.8: seq=1 ttl=119 time=11.987 ms
64 bytes from 8.8.8.8: seq=2 ttl=119 time=10.360 ms
64 bytes from 8.8.8.8: seq=3 ttl=119 time=18.226 ms
64 bytes from 8.8.8.8: seq=4 ttl=119 time=8.349 ms

--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 8.349/11.595/18.226 ms
root@OpenWrt_Home:~# cat /etc/resolb.conf
cat: can't open '/etc/resolb.conf': No such file or directory
root@OpenWrt_Home:~# cat /tmp/resolv.conf.d/resolv.conf.auto
# Interface lan
nameserver 1.1.1.1
nameserver 1.0.0.1
# Interface wan
nameserver 1.1.1.1
nameserver 1.0.0.1
# Interface wan6
nameserver fe80::1%wan
GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

6

Odp: Ping po nazwie z routera

nameserver fe80::1%wan to ci się skąd tam zaplątało? Zostało ci coś.


cat /etc/resolv.conf

oczywiście.

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

7

Odp: Ping po nazwie z routera

root@OpenWrt_Home:~# cat /etc/resolv.conf
# resolv.conf(5) file generated by tailscale
# For more info, see https://tailscale.com/s/resolvconf-overwrite
# DO NOT EDIT THIS FILE BY HAND -- CHANGES WILL BE OVERWRITTEN

nameserver 100.100.100.100
search tailcd435.ts.net
GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

8

Odp: Ping po nazwie z routera

Cezary napisał/a:

nameserver fe80::1%wan to ci się skąd tam zaplątało? Zostało ci coś.


cat /etc/resolv.conf

oczywiście.

W konfiguracji pusto:

config interface 'wan6'
    option device 'wan'
    option proto 'dhcpv6'
    option reqaddress 'try'
    option reqprefix 'auto'
GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

9

Odp: Ping po nazwie z routera

To wykomentuj na chwolę to wan6. Całą sekcję.

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

10

Odp: Ping po nazwie z routera

Po zakomentowaniu i restarcie routera bez zmian:

ping: bad address 'openwrt.org'
GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

11

Odp: Ping po nazwie z routera

nameserver 100.100.100.100

to jest źle. Tu masz 127.0.0.1 albo konkretny (np. 1.1.1.1)

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

12

Odp: Ping po nazwie z routera

Bez zmian.
do wglądu plik po zmianach

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 'fd0a:df98:c8ad::/48'

config device
    option name 'br-lan'
    option type 'bridge'
    list ports 'lan2'
    list ports 'lan3'
    list ports 'lan4'

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'
#    list dns '1.1.1.1'
#    list dns '1.0.0.1'

config device
    option name 'wan'
    option macaddr 'c8:bf:4c:fe:8d:ea'

config interface 'wan'
    option device 'wan'
    option proto 'dhcp'
#    option peerdns '0'
#    list dns '1.1.1.1'
#    list dns '1.0.0.1'

#config interface 'wan6'
#    option device 'wan'
#    option proto 'dhcpv6'
#    option reqaddress 'try'
#    option reqprefix 'auto'

config interface 'home'
    option proto 'none'
    option device 'ztwdjd74mq'

config interface 'tailscale'
    option proto 'none'
    option device 'tailscale0'
GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

13

Odp: Ping po nazwie z routera

TO z /etc/resolv.conf zmień.

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

14 (edytowany przez artur_n 2024-09-15 21:54:51)

Odp: Ping po nazwie z routera

Cezary napisał/a:

nameserver 100.100.100.100

to jest źle. Tu masz 127.0.0.1 albo konkretny (np. 1.1.1.1)

BINGO! Dziękuje za namierzenie problemu.

GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T