I've successfully enabled USB tethering on my router and the router is connected to the internet (ping/updates successful) however when I try to broadcast wifi:
My personal phone Note 10+ (different to the tethered phone) states "couldn't get an IP address"
My PC and other phones can connect to the network however there is no internet coming through
Have searched but don't seem to be able to find anyone with similar issues. Am looking to create my first network but very novice when it comes to things like this so I don't really have any idea what I'm doing so any assistance would be much appreciated!
Remove everything about USBtether you don't need it. Make usb0 the device of the wan network instead of wan, which is the wan Ethernet port. That port will go unused for now. Remove the option ifname from network interfaces, that is the deprecated old syntax.
Edit: and what @frollic said, the lan firewall zone should just be lan. The wan firewall zone should be wan (and wan6 if you want to try to use IPv6). In other words default configuration. Resetting the whole router to defaults and starting over is also viable if you have access to a wired network to readily re-install the USB tether drivers.
At this point you should have Internet on your PC wired to the LAN port. If you start up a wifi AP attached to the lan network, it should also work.
Changed both to usb0, rebooted router but still not working.
Why would the wiki recommend creating a new interface if changing device could possibly have been the solution to my issue?
Anyway, will reset and see where that gets me.
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 'fd29:cfba:02e7::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
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'
config device
option name 'wan'
option macaddr 'c2:56:27:b9:68:61'
config interface 'wan'
option proto 'dhcp'
option ifname 'usb0'
option device 'usb0'
config interface 'wan6'
option proto 'dhcpv6'
option ifname 'usb0'
option device 'usb0'
option reqaddress 'try'
option reqprefix 'auto'
config interface 'wwan'
option proto 'dhcp'
config interface 'USBTether'
option proto 'dhcp'
option device 'usb0'
Thanks guys, the reset worked and am using my new wireless network to type this.
Changed the device of wan and wan6 to usb0 after installing the tethering packages.