(TD-W8968) ping: bad address 'gnu.org'

root@OpenWrt:~# ping gnu.org

ping: bad address 'gnu.org'

This problem appears to be pretty common from what I. I've tried things like adding 8.8.8.8 and 8.8.4.4 to DNS forwardings, adding 192.168.1.3 or 192.168.1.15 to IPv4 gateway (IPv4 address is 192.168.1.1), disabling dnsmasq from startup, etc.

Outputs of some commands, before you ask me :wink: (Not sure if anything needs redacting, so went on the safe side. Let me know if I redacted something pertinent):

root@OpenWrt:~# cat /etc/resolv.conf

search lan
nameserver xxx.x.x.x
root@OpenWrt:~# cat /etc/config/network 

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr 'xxx.x.x.x'
	option netmask 'xxx.x.x.x'

config globals 'globals'
	option ula_prefix 'xxxx:xxxx:xxxx::/xx'

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0.1'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask 'xxx.xxx.xxx.x'
	option ip6assign 'xx'

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

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports 'x x x x xx'
root@OpenWrt:~# ip a; ip r

1: lo: <LOOPBACK,UP,LOWER_UP> mtu xxxxx qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet xxx.x.x.x/x 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 xxxx qdisc fq_codel state UP qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet6 xxxx::xxxx:xxxx:xxxx:xxxx/xx scope link 
       valid_lft forever preferred_lft forever
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu xxxx qdisc noqueue state UP qlen 1000
    link/ether xx:xx:xx:xx:xx:xx 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 xxxx:xxxx:xxxx::x/xx scope global 
       valid_lft forever preferred_lft forever
    inet6 xxxx::xxxx:xxxx:xxxx:xxxx/xxxx scope link 
       valid_lft forever preferred_lft forever
6: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu xxxx qdisc noqueue master br-lan state UP qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
7: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu xxxx qdisc mq master br-lan state UP qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet6 xxxx::xxxx:xxxx:xxxx:xxxx/xx scope link 
       valid_lft forever preferred_lft forever
192.168.1.0/24 dev br-lan scope link  src 192.168.1.1
root@OpenWrt:~# cat /etc/config/dhcp

config dnsmasq
	option domainneeded '1'
	option boguspriv '1'
	option filterwin2k '0'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option nonegcache '0'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.auto'
	option nonwildcard '1'
	option localservice '1'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option dhcpv6 'server'
	option ra 'server'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4
  • There is no WAN configuration
  • If you intended to use LAN for Internet connectivity, you'll need to add
    • DNS server
    • Gateway

Is this device a dumb AP ?

Thanks for pointing in the right direction.

Used 1.1.1.1 as DNS server and main router IP address as gateway.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.