I already have a DNS, DHCP, router and firewall on my network, all I want to do is use my TP-Link TL-WR1043ND v2 router as access point.
I am running OpenWrt 18.06.0 r7. I have got it mostly setup and almost everything works the way I wanted it, clients connecting to the AP are able to access LAN and internet. The only problem I have that the TP-Link router is unable to access internet itself. When I run
opkg update I get
opkg_download: Check your network settings and connectivity error msgs.
I am also unable to ping addresses on the internet. Pinging LAN addresses is fine
# ping google.com
PING google.com (216.58.198.238): 56 data bytes
^C
--- google.com ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
# ping 192.168.1.254
PING 192.168.1.254 (192.168.1.254): 56 data bytes
64 bytes from 192.168.1.254: seq=0 ttl=255 time=0.733 ms
64 bytes from 192.168.1.254: seq=1 ttl=255 time=0.669 ms
^C
--- 192.168.1.254 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.669/0.701/0.733 ms
Routing table:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.254 0.0.0.0 UG 0 0 0 br-lan
192.168.1.0 * 255.255.255.0 U 0 0 0 br-lan
Here is my /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd95:5c0c:af32::/48'
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option gateway '192.168.1.254'
option dns '192.168.1.70'
option ip6assign '64'
option igmp_snooping '1'
option multicast_querier '1'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '0 1 2 3 4 5 6'
Any suggestions ? Thanks in advance