Created vlan 4 with following startup commands
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 6"
swconfig dev switch0 vlan 4 set ports "3 4 6t"
swconfig dev switch0 set apply
vconfig add eth1 4
ifconfig eth1.4 192.168.4.1 netmask 255.255.255.0
On Setup/Networking tab
1 – I created bridge – br1
2 – I assigned to br1 – eth1.4, ath0.1, ath1.1 (network configuration of all as “default”)
After “Apply Settings” br1 shows ath0.1 ath1.1 eth1.4 (in that order).
Setup DHCP service for br1 with subnet IP 192.168.4.1/255.255.255.0. (Same subnet used to configure vlan 4). Primary network on br0 is on a different subnet.
Everything works great except that when router is rebooted br1 only shows ath0.1 ath1.1 and loses eth1.4.
I have to go to the Setup/Networking tab and “Apply Settings” for eth1.4 to reappear on br1.
How can I keep eth1.4 (vlan 4) from dropping off br1 on reboot? Is there some code I can add to the startup commands that will add eth1.4 back to br1 after I reboot? Have I made a mistake in my configuration which is now causing this problem?
Thanks for your help. _________________ R7800 r53339 std (08/01/23)
Private network on bridge br0 = eth1 (vlan 1) + wlan0 + wlan1.
Guest network on bridge br1 = eth1.4 (vlan 4) + VAPs (wlan0.1 + wlan1.1) for IOT devices
(Roku's, Amazon Echos, smart switches, etc.) and guest.
Noob still finding my way.
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 6"
swconfig dev switch0 vlan 4 set ports "3 4 6t"
swconfig dev switch0 set apply
vconfig add eth1 4
brctl addif br1 eth1.4
ifconfig eth1.4 up
Last edited by sweatbee on Tue Jul 31, 2018 17:03; edited 1 time in total
I don't have the r7800 but just thinking if you assign a VLAN to br1 you should not put its IPconfig in startup commands......much like you would a VAP....leave as bridged then in 'Networking' assign to br1 where you have br1 network set.
I have much the same on EA8500 ---
VLAN4, ath 0.1, ath 1.1 all on isolated network via br1
I know this would not be same for r7800 but my startup commands are
Code:
swconfig dev eth0 vlan 1 set ports "0t 1 2 3"
swconfig dev eth0 vlan 4 set ports "0t 4"
swconfig dev eth0 set enable_vlan 4
swconfig dev eth0 set apply
vconfig add eth0 4
ifconfig vlan4 up
brctl addif br1 vlan4
Joined: 17 Jan 2018 Posts: 64 Location: Georgia, USA
Posted: Tue Jul 31, 2018 13:30 Post subject:
mrjcd wrote:
I don't have the r7800 but just thinking if you assign a VLAN to br1 you should not put its IPconfig in startup commands......much like you would a VAP....leave as bridged then in 'Networking' assign to br1 where you have br1 network set.
I have much the same on EA8500 ---
VLAN4, ath 0.1, ath 1.1 all on isolated network via br1
I know this would not be same for r7800 but my startup commands are
Code:
swconfig dev eth0 vlan 1 set ports "0t 1 2 3"
swconfig dev eth0 vlan 4 set ports "0t 4"
swconfig dev eth0 set enable_vlan 4
swconfig dev eth0 set apply
vconfig add eth0 4
ifconfig vlan4 up
brctl addif br1 vlan4
Might give you an ideal
good luck
Thanks for the good suggestions.
Took out IPconfig for vlan from Start Up commands. Did not make a difference, but I think this is a better procedure so I have left it out.
vlan config now reads as follows:
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 6"
swconfig dev switch0 vlan 4 set ports "3 4 6t"
swconfig dev switch0 set apply
vconfig add eth1 4
Then tried adding "brctl addif br1 eth1 4" as last line of the vlan configuration but it did not make a difference. I also tried "brctl addif br1 vlan4" and again no difference.
Again, thanks for the ideas. _________________ R7800 r53339 std (08/01/23)
Private network on bridge br0 = eth1 (vlan 1) + wlan0 + wlan1.
Guest network on bridge br1 = eth1.4 (vlan 4) + VAPs (wlan0.1 + wlan1.1) for IOT devices
(Roku's, Amazon Echos, smart switches, etc.) and guest.
Noob still finding my way.
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 6"
swconfig dev switch0 vlan 4 set ports "3 4 6t"
swconfig dev switch0 set apply
vconfig add eth1 4
brctl addif br1 eth1.4
ifconfig eth1.4 up
Joined: 17 Jan 2018 Posts: 64 Location: Georgia, USA
Posted: Tue Jul 31, 2018 17:01 Post subject:
Problem Solved - thanks to mrjcd for pointing me in the right direction with last line of vlan configuration.
added "brctl addif br1 eth1.4" and "ifconfig eth1.4 up" to vlan configuration in Start Up script.
vlan configuration now reads as follows:
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 6"
swconfig dev switch0 vlan 4 set ports "3 4 6t"
swconfig dev switch0 set apply
vconfig add eth1 4
brctl addif br1 eth1.4
ifconfig eth1.4 up
It was just a matter of getting the coding right!
Details, Details, Details.
Thanks mrjcd!!! _________________ R7800 r53339 std (08/01/23)
Private network on bridge br0 = eth1 (vlan 1) + wlan0 + wlan1.
Guest network on bridge br1 = eth1.4 (vlan 4) + VAPs (wlan0.1 + wlan1.1) for IOT devices
(Roku's, Amazon Echos, smart switches, etc.) and guest.
Noob still finding my way.
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 6"
swconfig dev switch0 vlan 4 set ports "3 4 6t"
swconfig dev switch0 set apply
vconfig add eth1 4
brctl addif br1 eth1.4
ifconfig eth1.4 up
Joined: 17 Jan 2018 Posts: 64 Location: Georgia, USA
Posted: Tue Dec 31, 2019 16:20 Post subject:
jtbr wrote:
Thank you sweatbee for your detailed troubleshooting. Thanks to that I got 4 vlans with bridges to corresponding VAPs working in my R7800!
Thanks jtbr for the kind words. We all stand on the shoulders of those who went before us. I certainly did!
Happy New Year to all. Hope 2020 brings more amazing progress for dd-wrt. _________________ R7800 r53339 std (08/01/23)
Private network on bridge br0 = eth1 (vlan 1) + wlan0 + wlan1.
Guest network on bridge br1 = eth1.4 (vlan 4) + VAPs (wlan0.1 + wlan1.1) for IOT devices
(Roku's, Amazon Echos, smart switches, etc.) and guest.
Noob still finding my way.
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 6"
swconfig dev switch0 vlan 4 set ports "3 4 6t"
swconfig dev switch0 set apply
vconfig add eth1 4
brctl addif br1 eth1.4
ifconfig eth1.4 up
Joined: 16 Nov 2015 Posts: 6388 Location: UK, London, just across the river..
Posted: Fri Mar 13, 2020 11:14 Post subject:
yep on that old Kong build there ware some brctrl issues...
the last Kong build was way better...i had 3 diff vlans all set up via GUI couse with start up script i was not able to see the br# on GUI
R7800 for Vlans on the last BS build, all works well with start up script, but GUI is not doing as it should...
sadly last Kong build still shows bett performance in some areas... _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55179 WAP
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,AP Isolation,Ad-Block,Firewall
TP-Link WR1043NDv2 -DD-WRT 55303 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear R7800 --DD-WRT 55363 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55363 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55363 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913