I can't access LAN devices but I can access Internet

I have raspberry pi zero w. I transformed it into USB internet gadget by installing and enabling g_eth and dwc2 modules. I also added dtoverlay=dwc2 line at the end of the /boot/config.txt file. Finally, I added ifname "usb0" line to lan interface description. My /etc/config/network file is as follows:

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr ''
	option netmask ''

config globals 'globals'
	option ula_prefix 'fd4c:481d:6483::/48'

config interface 'lan'
	option type 'bridge'
	option proto 'static'
	option netmask ''
	option ip6assign '60'
	option ipaddr ''
	option ifname 'usb0'

config interface 'wwan'
	option proto 'dhcp'

When I connect this gadget to my PC it lets me access internet. It also lets me access LUCI page on It, however, do not let me access another devices in this same LAN. For example, I can't access neither (my main router) nor (my second router). I can't even ping them (ping freezes). From raspberry pi, on the other hand, I can ping but I can't ping (I'm connecting throught the serial console).

When connected to my main router I can access both and, but I can't access Ping also freezes on this address.

How should I configure OpenWrt to be able to access LAN throught my gadget and my gadget's LUCI page from LAN.

Collect the diagnostics and post it to pastebin.com redacting the private parts:

ubus call system board; uci show network; uci show wireless; uci show firewall; \
ip address show; ip route show table all; ip rule show; iptables-save -c

Here it is:

1 Like

Unfortunately it doesn't work like that, so you have the following options:

  • Configure different subnets on each interface in the router mode.
  • Set up the WDS/relay if you need the same subnet.

I configured relay and now I can access another devices in LAN from PC connected via my gadget. Still, however, it doesn't let me access (LUCI page) from external network (when I am connected to the main router).