Joined: 08 May 2018 Posts: 14248 Location: Texas, USA
Posted: Fri Apr 29, 2022 14:32 Post subject:
I think the enable vlan line is for problematic Atheros low-buck devices (but is benign). Those last two lines are probably no longer required as they apply to the previous method of doing vlans on Broadcom, I thought... _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
I think the enable vlan line is for problematic Atheros low-buck devices (but is benign).
I also think this line is useless as when I run "swconfig dev switch0 show" we already find the Global attribute "enable_vlan: 1". But I left it so far, just in case this global attribute change one day
0;root@DD-WRT: ~root@DD-WRT:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 0
enable_mirror_rx: 0
enable_mirror_tx: 0
mirror_monitor_port: 0
mirror_source_port: 0
disable_all_leds: ???
arl_age_time: 300
arl_table: address resolution table
Port 0: MAC e6:20:57:ce:1f:39
Port 0: MAC 14:cc:20:4d:1e:27
Port 0: MAC 50:02:91:0b:fa:06
Port 3: MAC 4c:cc:6a:b0:52:d5
Port 3: MAC c0:51:7e:5c:18:8d
Port 5: MAC f0:63:f9:ad:5f:9f
Port 5: MAC f0:63:f9:ad:5f:97
Port 5: MAC 00:00:5e:00:01:0d
Port 6: MAC 14:cc:20:4d:1e:27
0;root@DD-WRT: ~root@DD-WRT:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 0
enable_mirror_rx: 0
enable_mirror_tx: 0
mirror_monitor_port: 0
mirror_source_port: 0
disable_all_leds: ???
arl_age_time: 300
arl_table: address resolution table
Port 0: MAC 06:f5:98:ca:1b:7b
Port 0: MAC 14:cc:20:4d:1e:27
Port 2: MAC 4c:cc:6a:b0:52:d5
Port 2: MAC c0:51:7e:5c:18:8d
Port 4: MAC f8:8b:37:e2:0a:89
Port 5: MAC f0:63:f9:ad:5f:97
Port 5: MAC 00:00:5e:00:01:0d
Port 6: MAC 14:cc:20:4d:1e:27
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Fri Jun 17, 2022 7:09 Post subject: Re: vlan6 for IPTV a/v box
bliovaid wrote:
Hi,
I have same problem:
Need vlan6 for IPTV on port 1 or 4.
Router TP-Link TL-WR1043ND.
Default configuration ( swconfig dev switch0 show ):
Snip...
Pleasure help. How can i config with swconfig ??
Thanks
Welcome to our community bliovaid =)
We would be pleased to help you (not pleasure you )
From your screenshot your build is very, very old much has changed swconfig side, many bugs fixed and known vulnerabilities patched, many libraries updated as well as drivers etc, please upgrade to 06-16-2022-r49212 then reset your router to defaults and reconfigure manually.
You can save a current config to text file via terminal with prior to reset nvram show > /tmp/mybackup-id-date.txt and grab that file to desktop with scp or something, for your reference to help with new setup. do not restore an old backup
Because your build is really really old you will also need to clear browser cache to let the new UI load properly, you can do this with CTRL+F5 on the new router page on your web browser.
So I thought, ok, I'll then have to run those commands via a script and not the NVRAM startup commands
BUT... I got tricked in fact.
It also worked via the NVRAM startup commands!
1/ in fact the message I got was not blocking the VLAN creation process and 2/ I also got tricked as it looks like the VLAN creation was not immediate. There was a little delay in between the command and the availability on the network, so I thought it was not working while after maybe 20/30s it was staring to work fine.
I now have rebooted the router 3 or 4 times and it's always the same behaviour, the VLAN100 is always created and available maybe 20/30s after the availability of Internet on the LAN. But at the end it works fine.
Now the last question I have is: are the last 2 lines really useless, as Per Yngve Berg always advised to add them...
0;root@DD-WRT: ~root@DD-WRT:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 0
enable_mirror_rx: 0
enable_mirror_tx: 0
mirror_monitor_port: 0
mirror_source_port: 0
disable_all_leds: ???
arl_age_time: 300
arl_table: address resolution table
Port 0: MAC 06:f5:98:ca:1b:7b
Port 0: MAC 14:cc:20:4d:1e:27
Port 2: MAC 4c:cc:6a:b0:52:d5
Port 2: MAC c0:51:7e:5c:18:8d
Port 4: MAC f8:8b:37:e2:0a:89
Port 5: MAC f0:63:f9:ad:5f:97
Port 5: MAC 00:00:5e:00:01:0d
Port 6: MAC 14:cc:20:4d:1e:27
Joined: 16 Nov 2015 Posts: 6447 Location: UK, London, just across the river..
Posted: Tue Jun 21, 2022 9:53 Post subject:
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 3 0"
swconfig dev switch0 vlan 6 set ports "4t 0t"
swconfig dev switch0 set apply
vconfig add eth1 6
ifconfig eth1.6 up
if you just want to have a vlan 6 tagged on port 4 (lan port 4)
if you want to give it an ID too add this line before the apply line
swconfig dev eth0 vlan 6 set vid 6 _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 3 0"
swconfig dev switch0 vlan 6 set ports "4t 0t"
swconfig dev switch0 set apply
vconfig add eth1 6
ifconfig eth1.6 up
Also unticket the Filter Multicast on the Security tab.
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "0 1 2 3"
swconfig dev switch0 vlan 2 set ports "5 6"
swconfig dev switch0 vlan 6 set ports "4 5t"
swconfig dev switch0 set apply
vconfig add eth1 6
ifconfig eth1.6 up
Also unticket the Filter Multicast on the Security tab.