Hello,
Trying to replicate (I think) this setup but have hit a wall and hoping for help please:
OpenWRT
192.168.1.1 x86 Router with Wlan0 AP(WDS) attached to br-lan (along with eth0-3). Eth4=WAN connected to internet.
OpenWRTBridge
192.168.1.200 (Totolink X5000R)ramips-mt7621. Wlan0 Client(WDS) connected to OpenWRT, attached to br-lan (along with lan1-4). Eth0=WAN deleted.
Would like OpenWRT attached to internet. To connect OpenWRTBridge via 5ghz WiFi to OpenWRT and have various 4 wired devices able to reach the internet via OpenWRT.
To set static IP's on OpenWRT for the 4 wired devices on OpenWRTBridge
To use wlan0 on OpenWRTBridge as a 2ghz AP (which I've done, but its not getting IP from OpenWRT).
I followed this guide: https://openwrt.org/docs/guide-user/network/wifi/atheroswds
And Wlan0 from OpenWRTBridge is connected to OpenWRT (can see MAC address in openWRT Overview) but when SSH into OpenWRTBridge I cannot then ping OpenWRT
and devices connecting to OpenWRTBridge asking for IP's via DHCP get no connection (wired or wireless via 2ghz ap).
Lots of info from the Bridge/Repeater side:
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is TOTOLINK X5000R
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2,2} total 4
[ 0.777675] 0x000000690000-0x000000fb0000 : "rootfs_data"
[ 0.825793] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 0.835686] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[ 0.845325] i2c /dev entries driver
[ 0.851464] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[ 0.858219] mt7621-pci 1e140000.pcie: No bus range found for /pcie@1e140000, using [bus 00-ff]
[ 0.867021] mt7621-pci 1e140000.pcie: MEM 0x0060000000..0x006fffffff -> 0x0000000000
[ 0.875195] mt7621-pci 1e140000.pcie: IO 0x001e160000..0x001e16ffff -> 0x0000000000
[ 0.883442] mt7621-pci 1e140000.pcie: Parsing DT failed
[ 0.890990] NET: Registered protocol family 10
[ 0.918839] 8021q: 802.1Q VLAN Support v1.8
[ 0.926488] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 0.957681] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=26)
[ 0.970139] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=27)
[ 0.982367] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=28)
[ 0.994744] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=29)
[ 1.007133] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=30)
[ 1.019579] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[ 1.030029] DSA: tree 0 setup
[ 1.033456] rt2880-pinmux pinctrl: pcie is already enabled
[ 1.039086] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[ 1.045798] mt7621-pci 1e140000.pcie: No bus range found for /pcie@1e140000, using [bus 00-ff]
[ 1.054607] mt7621-pci 1e140000.pcie: MEM 0x0060000000..0x006fffffff -> 0x0000000000
[ 1.062758] mt7621-pci 1e140000.pcie: IO 0x001e160000..0x001e16ffff -> 0x0000000000
[ 1.071009] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[ 1.078751] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[ 1.086387] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
root@OpenWrtBridge:~# modinfo mt7915e
module: /lib/modules/5.10.146/mt7915e.ko
license: Dual BSD/GPL
depends: mac80211,mt76-connac-lib,mt76,cfg80211,hwmon
name: mt7915e
vermagic: 5.10.146 SMP mod_unload MIPS32_R2 32BIT
root@OpenWrtBridge:~#
oot@OpenWrtBridge:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
^C
--- 192.168.1.1 ping statistics ---
43 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrtBridge:~#
root@OpenWrtBridge:~#
root@OpenWrtBridge:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 br-lan
192.168.1.0 * 255.255.255.0 U 0 0 0 br-lan
OpenWRTBridge
vi /etc/config/firewall
config defaults
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
option input 'DROP'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
OpenWRTBridge
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc fq_codel state UP qlen 1000
link/ether 5c:92:5e:c4:69:08 brd ff:ff:ff:ff:ff:ff
3: lan1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 5c:92:5e:c4:69:08 brd ff:ff:ff:ff:ff:ff
4: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
link/ether 5c:92:5e:c4:69:08 brd ff:ff:ff:ff:ff:ff
5: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
link/ether 5c:92:5e:c4:69:08 brd ff:ff:ff:ff:ff:ff
6: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
link/ether 5c:92:5e:c4:69:08 brd ff:ff:ff:ff:ff:ff
7: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether 5c:92:5e:c4:69:09 brd ff:ff:ff:ff:ff:ff
21: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 5c:92:5e:c4:69:08 brd ff:ff:ff:ff:ff:ff
22: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 00:0c:43:4a:21:4e brd ff:ff:ff:ff:ff:ff
23: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 5c:92:5e:c4:69:08 brd ff:ff:ff:ff:ff:ff
OpenWRTBridge
ifconfig
br-lan Link encap:Ethernet HWaddr 5C:92:5E:C4:69:08
inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::5e92:5eff:fec4:6908/64 Scope:Link
inet6 addr: fd53:5df8:36ce::1/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4033 errors:0 dropped:0 overruns:0 frame:0
TX packets:3715 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:542068 (529.3 KiB) TX bytes:1423133 (1.3 MiB)
eth0 Link encap:Ethernet HWaddr 5C:92:5E:C4:69:08
inet6 addr: fe80::5e92:5eff:fec4:6908/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1504 Metric:1
RX packets:28880 errors:0 dropped:0 overruns:0 frame:0
TX packets:31746 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4083933 (3.8 MiB) TX bytes:10882314 (10.3 MiB)
Interrupt:21
lan1 Link encap:Ethernet HWaddr 5C:92:5E:C4:69:08
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28880 errors:0 dropped:0 overruns:0 frame:0
TX packets:29935 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3564093 (3.3 MiB) TX bytes:10412422 (9.9 MiB)
lan2 Link encap:Ethernet HWaddr 5C:92:5E:C4:69:08
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lan3 Link encap:Ethernet HWaddr 5C:92:5E:C4:69:08
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lan4 Link encap:Ethernet HWaddr 5C:92:5E:C4:69:08
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:4814 errors:0 dropped:0 overruns:0 frame:0
TX packets:4814 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:400841 (391.4 KiB) TX bytes:400841 (391.4 KiB)
wlan0 Link encap:Ethernet HWaddr 5C:92:5E:C4:69:08
inet6 addr: fe80::5e92:5eff:fec4:6908/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:405 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:38968 (38.0 KiB)
wlan1 Link encap:Ethernet HWaddr 00:0C:43:4A:21:4E
inet6 addr: fe80::20c:43ff:fe4a:214e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:296 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1202 (1.1 KiB) TX bytes:21509 (21.0 KiB
root@OpenWrtBridge:~# iw dev
phy#1
Interface wlan1
ifindex 22
wdev 0x100000006
addr 00:0c:43:4a:21:4e
ssid MySID5
type managed
channel 44 (5220 MHz), width: 80 MHz, center1: 5210 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
4addr: on
phy#0
Interface wlan0
ifindex 23
wdev 0x4
addr 5c:92:5e:c4:69:08
ssid OpenWrt
type AP
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
OpenWRTBridge
vi /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
option channel '1'
option band '2g'
option htmode 'HT20'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
config wifi-device 'radio1'
option type 'mac80211'
option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0+1'
option band '5g'
option htmode 'VHT80'
option disabled '0'
option cell_density '0'
option channel 'auto'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'sta'
option wds '1'
option ssid 'MySID5'
option encryption 'psk2'
option key 'redacted'
OpenWRTBridge
vi /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 packet_steering '1'
option ula_prefix 'fd53:5df8:36ce::/48'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.1.200'
option gateway '192.168.1.1'
config device
option name 'eth0'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
option stp '1'
Have tried manually adding wlan1 to "list ports" also.
OpenWRTBridge
vi /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
list server '192.168.1.1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option ignore '1'
option dynamicdhcp '0'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'