[SOLVED] Setup a tagged VLAN100 via the GUI or swconfig?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2
Author Message
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Fri Apr 29, 2022 14:32    Post subject: Reply with quote
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
Sponsor
FTP
DD-WRT User


Joined: 01 Jul 2012
Posts: 97

PostPosted: Fri Apr 29, 2022 15:05    Post subject: Reply with quote
kernel-panic69 wrote:
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 Rolling Eyes
FTP
DD-WRT User


Joined: 01 Jul 2012
Posts: 97

PostPosted: Mon May 02, 2022 12:48    Post subject: Reply with quote
Quick question regarding this method to create VLANs via swconfig:

The previous method using 4096 directories was limited to Broadcom routers...
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1102836#1102836
https://svn.dd-wrt.com//ticket/6130
https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports#Broadcom_VLAN_limit

But what about this new one using swconfig?
Does it mean this method is available/works for all routers with a recent version of DD-WRT?

Thanks! Smile
FTP
DD-WRT User


Joined: 01 Jul 2012
Posts: 97

PostPosted: Mon May 23, 2022 15:45    Post subject: Reply with quote
Bump!
Still very interested in the answer to update a tutorial.
Thanks! Smile

FTP wrote:
Quick question regarding this method to create VLANs via swconfig:

The previous method using 4096 directories was limited to Broadcom routers...
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1102836#1102836
https://svn.dd-wrt.com//ticket/6130
https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports#Broadcom_VLAN_limit

But what about this new one using swconfig?
Does it mean this method is available/works for all routers with a recent version of DD-WRT?

Thanks! Smile
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6856
Location: Romerike, Norway

PostPosted: Mon May 23, 2022 17:45    Post subject: Reply with quote
FTP wrote:
But what about this new one using swconfig?
Does it mean this method is available/works for all routers with a recent version of DD-WRT?


Yes swconfig now works on Atheros, Broadcom, Marvell and MediaTec
FTP
DD-WRT User


Joined: 01 Jul 2012
Posts: 97

PostPosted: Mon May 23, 2022 21:36    Post subject: Reply with quote
Per Yngve Berg wrote:
Yes swconfig now works on Atheros, Broadcom, Marvell and MediaTec

Thanks very much for your answer! Smile
bliovaid
DD-WRT Novice


Joined: 17 Jun 2022
Posts: 5

PostPosted: Fri Jun 17, 2022 3:48    Post subject: vlan6 for IPTV a/v box Reply with quote
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 ):

Code:
==========================================================

     ___  ___     _      _____  ______       ____  ___
    / _ \/ _ \___| | /| / / _ \/_  __/ _  __|_  / / _ \
   / // / // /___/ |/ |/ / , _/ / /   | |/ //_ <_/ // /
  /____/____/    |__/|__/_/|_| /_/    |___/____(_)___/

                       DD-WRT v3.0
                   https://www.dd-wrt.com


==========================================================


BusyBox v1.33.1 (2021-08-13 06:46:16 +07) built-in shell (ash)

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

        igmp_snooping: 0
        igmp_v3: 1
Port 0:
        mib: ???
        enable_eee: ???
        igmp_snooping: 0
        vlan_prio: 0
        pvid: 1
        link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
        mib: ???
        enable_eee: 0
        igmp_snooping: 0
        vlan_prio: 0
        pvid: 1
        link: port:1 link:down
Port 2:
        mib: ???
        enable_eee: 0
        igmp_snooping: 0
        vlan_prio: 0
        pvid: 1
        link: port:2 link:down
Port 3:
        mib: ???
        enable_eee: 0
        igmp_snooping: 0
        vlan_prio: 0
        pvid: 1
        link: port:3 link:up speed:100baseT full-duplex txflow rxflow auto
Port 4:
        mib: ???
        enable_eee: 0
        igmp_snooping: 0
        vlan_prio: 0
        pvid: 1
        link: port:4 link:down
Port 5:
        mib: ???
        enable_eee: 0
        igmp_snooping: 0
        vlan_prio: 0
        pvid: 2
        link: port:5 link:up speed:1000baseT full-duplex eee100 eee1000 auto
Port 6:
        mib: ???
        enable_eee: ???
        igmp_snooping: 0
        vlan_prio: 0
        pvid: 2
        link: port:6 link:up speed:1000baseT full-duplex txflow rxflow
VLAN 1:
        vid: 1
        ports: 0 1 2 3 4
VLAN 2:
        vid: 2
        ports: 5 6

On routers Control Panel vlans:
https://www.dropbox.com/s/nfpznuhrxcvtmik/Vlans.jpg?dl=0

Pleasure help. How can i config with swconfig ??
Thanks Smile

Hi,
I have new firmware on router.
Need vlan6 for IPTV on port 1 or 4.

Router TP-Link TL-WR1043ND v2.1
Default configuration ( swconfig dev switch0 show ):
==========================================================

___ ___ _ _____ ______ ____ ___
/ _ \/ _ \___| | /| / / _ \/_ __/ _ __|_ / / _ \
/ // / // /___/ |/ |/ / , _/ / / | |/ //_ <_/ // /
/____/____/ |__/|__/_/|_| /_/ |___/____(_)___/

DD-WRT v3.0
https://www.dd-wrt.com


==========================================================


BusyBox v1.35.0 (2022-06-16 08:48:58 +07) built-in shell (ash)

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

igmp_snooping: 0
igmp_v3: 1
Port 0:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:1 link:down
Port 2:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:2 link:up speed:100baseT full-duplex txflow rxflow auto
Port 3:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:3 link:down
Port 4:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:4 link:up speed:100baseT full-duplex auto
Port 5:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 2
link: port:5 link:up speed:1000baseT full-duplex eee100 eee1000 auto
Port 6:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 2
link: port:6 link:up speed:1000baseT full-duplex txflow rxflow
VLAN 1:
vid: 1
ports: 0 1 2 3 4
VLAN 2:
vid: 2
ports: 5 6

On routers Control Panel vlans:
https://www.dropbox.com/s/3mtykngmxzixhoz/Vlans1.jpg?dl=0

Pleasure help. How can i config with swconfig ??
Thanks Smile


Last edited by bliovaid on Sat Jun 18, 2022 14:07; edited 1 time in total
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Fri Jun 17, 2022 7:09    Post subject: Re: vlan6 for IPTV a/v box Reply with quote
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 Smile

Welcome to our community bliovaid =)

We would be pleased to help you (not pleasure you Wink )

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.

Thanks for understanding.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
bliovaid
DD-WRT Novice


Joined: 17 Jun 2022
Posts: 5

PostPosted: Tue Jun 21, 2022 7:54    Post subject: vlan6 for IPTV a/v box Reply with quote
FTP wrote:
Ok, maybe fixed! Smile

I noticed those comments in the past...
HediSIX wrote:
I have tried this weekend but it looks like the commands are not recognised Shocked

I only get this message:
Code:
swconfig list
swconfig dev  [port |vlan ] (help|set  |get |load |show)

It's also what I get when I manually ran the 1st 3 lines via the GUI.

HediSIX wrote:
Hey I made it work !!
I used SSH and did not get the errors anymore. It looks like the Command page from the GUI does not work the same way…

So I tried via SSH.
The first 3 lines went smoothly, without any error or message, but the 4th one triggered this error:
Quote:
vconfig: ioctl error for add: File exists


But still, I had a look if the VLAN100 was already created, and... bingo, it was already there and working fine!
Code:
VLAN 1:
   ports: 1 2 3 4 8t
VLAN 2:
   ports: 0 8t
VLAN 100:
   ports: 0t 4t 8t

IPTV working, LAN and WiFi also Smile

So I thought, ok, I'll then have to run those commands via a script and not the NVRAM startup commands Rolling Eyes

BUT... I got tricked in fact.
It also worked via the NVRAM startup commands! Shocked

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.


Arrow Now the last question I have is: are the last 2 lines really useless, as Per Yngve Berg always advised to add them...
Code:
vconfig add eth0 100
ifconfig eth0.100 192.168.0.1 netmask 255.255.255.0


Hi,
I have new firmware on router.
Need vlan6 for IPTV on port 1 or 4.

Router TP-Link TL-WR1043ND v2.1
Default configuration ( swconfig dev switch0 show ):
==========================================================

___ ___ _ _____ ______ ____ ___
/ _ \/ _ \___| | /| / / _ \/_ __/ _ __|_ / / _ \
/ // / // /___/ |/ |/ / , _/ / / | |/ //_ <_/ // /
/____/____/ |__/|__/_/|_| /_/ |___/____(_)___/

DD-WRT v3.0
https://www.dd-wrt.com


==========================================================


BusyBox v1.35.0 (2022-06-16 08:48:58 +07) built-in shell (ash)

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

igmp_snooping: 0
igmp_v3: 1
Port 0:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:1 link:down
Port 2:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:2 link:up speed:100baseT full-duplex txflow rxflow auto
Port 3:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:3 link:down
Port 4:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 1
link: port:4 link:up speed:100baseT full-duplex auto
Port 5:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 2
link: port:5 link:up speed:1000baseT full-duplex eee100 eee1000 auto
Port 6:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 2
link: port:6 link:up speed:1000baseT full-duplex txflow rxflow
VLAN 1:
vid: 1
ports: 0 1 2 3 4
VLAN 2:
vid: 2
ports: 5 6

On routers Control Panel vlans:
https://www.dropbox.com/s/3mtykngmxzixhoz/Vlans1.jpg?dl=0

Pleasure help. How can i config with swconfig ??
Thanks Smile
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6856
Location: Romerike, Norway

PostPosted: Tue Jun 21, 2022 8:32    Post subject: Reply with quote
IPTV uses Multicast.

Have you unticket the Filter Multicast on the Security tab?
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6410
Location: UK, London, just across the river..

PostPosted: Tue Jun 21, 2022 9:53    Post subject: Reply with quote
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 55179 WAP
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 XR500 --DD-WRT 55460 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55460 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 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
bliovaid
DD-WRT Novice


Joined: 17 Jun 2022
Posts: 5

PostPosted: Mon Jun 27, 2022 8:35    Post subject: Reply with quote
I tried this configuration:

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.

But error: Could not get an IP address Sad

By default swconfig dev switch0 show:
VLAN 1:
vid: 1
ports: 0 1 2 3 4
VLAN 2:
vid: 2
ports: 5 6

Which port WAN ? And witch CPU ?

I nedd help Smile
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Mon Jun 27, 2022 9:26    Post subject: Reply with quote
@bliovaid

Which DD-WRT version do you have?

Anything lower than http://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2022/06-26-2022-r49361/ needs to be upgraded, reset and reconfigured from scratch.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
bliovaid
DD-WRT Novice


Joined: 17 Jun 2022
Posts: 5

PostPosted: Mon Jun 27, 2022 11:05    Post subject: Reply with quote
Router TP-Link TL-WR1043ND v2.1

Version: 2022-06-16


DD-WRT v3.0
BusyBox v1.35.0 (2022-06-16 08:48:58 +07) built-in shell (ash)
bliovaid
DD-WRT Novice


Joined: 17 Jun 2022
Posts: 5

PostPosted: Thu Jun 30, 2022 4:39    Post subject: Reply with quote
SOLVED !
My swconfig configuration:

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.

Thanks for the direction on this Smile
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum