Linksys WRT 1900AC V1 - VLAN set-up

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Goto page Previous  1, 2
Author Message
e123enitan
DD-WRT Novice


Joined: 13 Mar 2017
Posts: 46

PostPosted: Sun May 14, 2017 20:32    Post subject: Reply with quote
Per Yngve Berg wrote:
Have you tried these commands to find the current configuration?

swconfig list
swconfig dev switch0 show



I just run this command the result is below, I am not sure what this mean.

"swconfig list
swconfig dev [port |vlan ] (help|set |get |load |show)"
Sponsor
briankfree
DD-WRT Novice


Joined: 19 Dec 2010
Posts: 3

PostPosted: Fri May 19, 2017 6:15    Post subject: Same Issue Reply with quote
I'm also fairly new to DD-WRT but do the Marvell chipsets not offer the ability to assign VLANs to interface via the gui? The VPN tab is missing.
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Fri May 19, 2017 11:47    Post subject: Reply with quote
swconfig list

Should return a list of devices. Didn't you get it?
briankfree
DD-WRT Novice


Joined: 19 Dec 2010
Posts: 3

PostPosted: Fri May 19, 2017 14:33    Post subject: Reply with quote
[quote="Per Yngve Berg"]swconfig list

Should return a list of devices. Didn't you get it?[/qu

root@DD-WRT:~# swconfig list
Found: switch0 - 10.mvsw61xx


root@DD-WRT:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 0
Port 0:
mask: 0x004e: (0) 1 2 3 6
qmode: 0
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex
Port 1:
mask: 0x004d: 0 (1) 2 3 6
qmode: 0
pvid: 0
link: port:1 link:down
Port 2:
mask: 0x004b: 0 1 (2) 3 6
qmode: 0
pvid: 0
link: port:2 link:down
Port 3:
mask: 0x0047: 0 1 2 (3) 6
qmode: 0
pvid: 0
link: port:3 link:down
Port 4:
mask: 0x0020: (4) 5
qmode: 0
pvid: 0
link: port:4 link:down
Port 5:
mask: 0x0010: 4 (5)
qmode: 0
pvid: 0
link: port:5 link:up speed:1000baseT full-duplex
Port 6:
mask: 0x000f: 0 1 2 3 (6)
qmode: 0
pvid: 0
link: port:6 link:up speed:1000baseT full-duplex


I notice the Global Attribute there is set to enable_vlan:0
Clive St Helmet
DD-WRT Novice


Joined: 23 May 2017
Posts: 1

PostPosted: Tue May 23, 2017 15:52    Post subject: Reply with quote
I'm in a similar situation. I'm trying to get IPTV working on my WRT1900ACS, flashed with DD-WRT firmware and following these instructions: https://www.dd-wrt.com/wiki/index.php/IPTV_-_blocking_multicast_on_WIFI

No VLAN tab, so apparently needs configuring with swconfig. The only swconfig documentation I can find is here: https://wiki.openwrt.org/doc/techref/swconfig

Code:
swconfig dev switch0 show

Global attributes:
   enable_vlan: 0

Port 0:
   mask: 0x004e: (0) 1 2 3 6    
   qmode: 0   
   pvid: 0   
   link: port:0 link:down

Port 1:
   mask: 0x004d: 0 (1) 2 3 6    
   qmode: 0   
   pvid: 0   
   link: port:1 link:up speed:1000baseT full-duplex

Port 2:
   mask: 0x004b: 0 1 (2) 3 6    
   qmode: 0   
   pvid: 0   
   link: port:2 link:down

Port 3:
   mask: 0x0047: 0 1 2 (3) 6
   qmode: 0   
   pvid: 0   
   link: port:3 link:up speed:100baseT full-duplex

Port 4:
   mask: 0x0020: (4) 5    
   qmode: 0   
   pvid: 0   
   link: port:4 link:up speed:100baseT full-duplex

Port 5:
   mask: 0x0010: 4 (5)    
   qmode: 0   
   pvid: 0   
   link: port:5 link:up speed:1000baseT full-duplex

Port 6:
   mask: 0x000f: 0 1 2 3 (6)    
   qmode: 0   
   pvid: 0   
   link: port:6 link:up speed:1000baseT full-duplex
unique_suresh
DD-WRT Novice


Joined: 09 Jul 2017
Posts: 13

PostPosted: Thu Jun 07, 2018 15:07    Post subject: Any progress on Vlan setup in WRT1900ac V1 ? Reply with quote
Is there anyone got it working VLAN setup on WRT1900AC V1 using DD-WRT so far. There are lot of discussion in online but it seems everything is misleading (Port mismatch and confusing with two cpu ports and so on).

I am new to VLAN and stuck in WRT1900AC V1 router.

Please post VLAN config using swconfig (Since VLAN UI shows up by enabling vlan but it does not implemented for this router switch ports) setup here if you have working VLAN swconfig.

Thanks
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1447
Location: Appalachian mountains, USA

PostPosted: Mon Oct 15, 2018 21:18    Post subject: Reply with quote
Eventually I may start a new thread on this, but for now let me observe that the "mask" variables appear to show for each port the other ports to which it connects:
Code:
port connects to
0     1001110 
1     1001101
2     1001011
3     1000111
4     0100000
5     0010000
6     0001111

The seven bits on the right represent ports 6543210. Ports 0...3 are rear-panel LAN ports 4...1 (per experiments by various posters), port 4 is the WAN port, ports 5 and 6 are internal CPU ports with 5 dedicated to the WAN port and 6 used for the LAN ports.

The many discussions of VLANs on the forum always talk about two default VLANs, but in every case the necessity of default VLANs is associated with the need to have one CPU port handle both WAN and LAN. Each of the latter is normally represented by a single VLAN. But in these two-cpu machines like yours and mine (a WRT1900ACSv2), there is no need for such sharing of the cpu port. Hence enable_vlan, which governs VLANs using tagging, here being set to 0 (I believe meaningful values are 0 and 1, not a vlan number like in many forum posts) with no VLANs showing in the output of "swconfig dev switch0 show." Our setup is port-based VLANning, not tagged 802.11q-based VLANning.

If we want to use VLANs of the 802.11q tagged type, necessary if we are to have more VLANs than CPU ports, we'll have to start from scratch. By default eth1 is the whole LAN and is part of bridge br0, so it looks like we'll have to delete eth1 from br0 and put a new vlan1 there in its place. I have no idea what becomes of eth1 itself. Does it need to be up to support its vlans? Or do we need to ifconfig it down? Someone who understands dd-wrt and networking is going to need to weigh in. This effort is not going to succeed by randomly trying things without understanding.

Anyone with a clue please correct or augment as appropriate!
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1447
Location: Appalachian mountains, USA

PostPosted: Tue Oct 23, 2018 20:18    Post subject: Reply with quote
I have VLANs working now on the WRT1900ACSv2, which per your "swconfig dev switch0 show" output for the WRT1900ACv1 seems to have the same switch configuration as my router. See https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=317199 for details.

And note that this was one of many forum threads that helped me get there. It takes a village and all that.
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) 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 cannot attach files in this forum
You cannot download files in this forum