I'd like to use my ISP's modem/router in bridge mode and connect with my own router.
A new connection was set up in modem as bridge-mode.
Modem doesn't have an option (I think) to remove the default DSL connection that is set up. I can turn off the wifi from modem but haven't done so to troubleshoot.
So this means, I connect to the internet via my modem or via my router (with PPPoE).
If I connect through the router I can only do so by cable.If I connect wirelessly I can't as I don't get a local IP.
Also I improvised by reading something I didn't understand and gave my modem an .2.1 IP and my router a .1.1
Please find my settings below.
/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 'fdd4:2e81:e182::/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 'xxx'
config interface 'wan'
option device 'wan'
option proto 'pppoe'
option username 'xxx'
option password 'xxx'
option ipv6 'auto'
option type 'bridge'
bridge name bridge id STP enabled interfaces
br-lan xxx no lan4
lan2
phy0-ap0
lan3
lan1
udp 0 0 0.0.0.0:67 0.0.0.0:* 3711/dnsmasq
-ash: logreaed: not found
bridge name bridge id STP enabled interfaces
br-lan 7fff.c4411e31e2d7 no lan4
lan2
phy0-ap0
lan3
lan1
udp 0 0 0.0.0.0:67 0.0.0.0:* 4014/dnsmasq
-ash: logreaed: not found
I don't get how the logread command could change during copy and paste, but never mind.
Let's assume the DHCP pool is available because you claim it works for wired clients.
First verify that the clients are indeed connecting wirelessly by checking the logs.
logread -e STA
Pay attention when entering the commands. If you see -ash: ...: not found, something is wrong.
If the wireless clients do connect but don't get an IP, you'll need to check what's going on using tcpdump.
opkg update; opkg install tcpdump; tcpdump -nnvvti br-lan port 67
maybe I messed up the .txt I was using to lose the format.
verified clients are connecting
interestingly: my linux machine doesn't connect, but my phone does.
user@OpenWrt:~# logread -e STA
Tue Feb 20 10:43:26 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:27 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:28 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:34 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: deauthenticated due to local deauth request
Tue Feb 20 10:43:38 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: authenticated
Tue Feb 20 10:43:38 2024 daemon.notice hostapd: phy0-ap0: STA-OPMODE-MAX-BW-CHANGED xxx 40
Tue Feb 20 10:43:38 2024 daemon.notice hostapd: phy0-ap0: STA-OPMODE-N_SS-CHANGED xxx 3
Tue Feb 20 10:43:38 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: associated (aid 2)
Tue Feb 20 10:43:38 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:39 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:40 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:41 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:47 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: deauthenticated due to local deauth request
Tue Feb 20 10:43:52 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: authenticated
Tue Feb 20 10:43:52 2024 daemon.notice hostapd: phy0-ap0: STA-OPMODE-MAX-BW-CHANGED xxx 40
Tue Feb 20 10:43:52 2024 daemon.notice hostapd: phy0-ap0: STA-OPMODE-N_SS-CHANGED xxx 3
Tue Feb 20 10:43:52 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: associated (aid 2)
Tue Feb 20 10:43:52 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:53 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:54 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:55 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:43:55 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: disassociated
Tue Feb 20 10:43:56 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Tue Feb 20 10:44:02 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: authenticated
Tue Feb 20 10:44:02 2024 daemon.notice hostapd: phy0-ap0: STA-OPMODE-MAX-BW-CHANGED xxx 40
Tue Feb 20 10:44:02 2024 daemon.notice hostapd: phy0-ap0: STA-OPMODE-N_SS-CHANGED xxx 3
Tue Feb 20 10:44:02 2024 daemon.info hostapd: phy0-ap0: STA xxx IEEE 802.11: associated (aid 2)
Tue Feb 20 10:44:02 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:44:03 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:44:04 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
Tue Feb 20 10:44:05 2024 daemon.notice hostapd: phy0-ap0: AP-STA-POSSIBLE-PSK-MISMATCH xxx
user@OpenWrt:~# logread -e dnsmasq-dhcp
Tue Feb 20 10:43:25 2024 daemon.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Tue Feb 20 10:43:25 2024 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
user@OpenWrt:~# opkg update; opkg install tcpdump; tcpdump -nnvvti br-lan port 67
Downloading https://downloads.openwrt.org/releases/23.05.0/targets/mvebu/cortexa9/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/23.05.0/targets/mvebu/cortexa9/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/telephony/Packages.sig
Signature check passed.
Installing tcpdump (4.99.4-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/base/tcpdump_4.99.4-1_arm_cortex-a9_vfpv3-d16.ipk
Installing libpcap1 (1.10.4-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/arm_cortex-a9_vfpv3-d16/base/libpcap1_1.10.4-1_arm_cortex-a9_vfpv3-d16.ipk
Configuring libpcap1.
Configuring tcpdump.
tcpdump: listening on br-lan, link-type EN10MB (Ethernet), snapshot length 262144 bytes
NEW update: my windows PC can connect as well - this is the PC I use to connect to the router via ethernet. what part of the above command made WinPC to connect?
Attaching the lan network to the SSID should be enough.
The possibilities are that you forgot to restart the network service or the router needed a reboot.