VLAN config, Updated Guide: How to correctly configure

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4  Next
Author Message
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Sun Nov 12, 2017 10:24    Post subject: Reply with quote
It depends of the model of BCM chip used for the switch

For Asus RT-AC66U A1: BCM53125
for R7000 and RT-AC68U: BCM4709A0
Sponsor
MrPete
DD-WRT User


Joined: 09 Jul 2013
Posts: 82

PostPosted: Tue Mar 06, 2018 15:35    Post subject: Reply with quote
I've updated the OP with info from the various bits of feedback.

(I did NOT include the references to driver/DDWRT source code, assuming that part is not helpful for most people.)

This tutorial has now been stable for several months.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Tue Mar 06, 2018 16:05    Post subject: Reply with quote
Very recently @Quarkysg's patch (35079) is included which gives broadcom router 4096 VLAN's
See also: http://svn.dd-wrt.com/ticket/6130#comment:2

Your guide rocks !

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Thu Mar 08, 2018 21:33    Post subject: Reply with quote
I've updated the wiki, please review:
https://dd-wrt.com/wiki/index.php/Switched_Ports

_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
MrPete
DD-WRT User


Joined: 09 Jul 2013
Posts: 82

PostPosted: Thu Mar 08, 2018 22:00    Post subject: Reply with quote
jwh7 wrote:
I've updated the wiki, please review:
https://dd-wrt.com/wiki/index.php/Switched_Ports

Will do. I see several edits needed.

Is it possible for me to gain edit access to the wiki? I'm quite experienced with wiki editing...
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Sun Mar 11, 2018 16:44    Post subject: Reply with quote
MrPete wrote:
Is it possible for me to gain edit access to the wiki? I'm quite experienced with wiki editing...
I think you can send a request from the main page contact form, but may take weeks to get a reply.
_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
sbeehre
DD-WRT Novice


Joined: 05 Sep 2016
Posts: 4

PostPosted: Thu Apr 12, 2018 23:07    Post subject: Reply with quote
Hi I realise this is an old thread but i really need some help.. I have a netgear R7000p router and my ISP requires that VLAN10 is tagged on the WAN port. I tried setting tagging and vlan10 under the vlans tab but it doesnt seem to do anything. Could anyone help me out with the nvram commands to do it via the command line?

thanks

Simon
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Fri Apr 13, 2018 3:51    Post subject: Reply with quote
Post the output of

nvram show | grep vlan.*ports
sbeehre
DD-WRT Novice


Joined: 05 Sep 2016
Posts: 4

PostPosted: Fri Apr 13, 2018 6:07    Post subject: Reply with quote
Per Yngve Berg wrote:
Post the output of

nvram show | grep vlan.*ports


vlan2ports=0 5u
vlan1ports=1 2 3 4 5*

These are the default settings
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Fri Apr 13, 2018 12:17    Post subject: Reply with quote
nvram set vlan10ports="0t 5u"
nvram set vlan2ports="5"
nvram set vlan10hwname=`nvram get vlan2hwname`

Don't forget to change the WAN from vlan2 to vlsn10 on the Networking Tab.
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Fri Apr 13, 2018 13:24    Post subject: Reply with quote
Per Yngve Berg wrote:
nvram set vlan10ports="0t 5u"
nvram set vlan2ports="5"
nvram set vlan10hwname=`nvram get vlan2hwname`
And:
nvram commit
Smile And a 'reboot' if/when needed.

_________________
# NAT/SFE/CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ, Builds, Types, Modes, Changes, Demo #
OPNsense x64 5050e ITX|DD: DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250
|FreshTomato: F7D8302@532|OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
linchenglong12
DD-WRT Novice


Joined: 15 Jan 2019
Posts: 2

PostPosted: Tue Jan 15, 2019 19:10    Post subject: Reply with quote
Hi guys. I really need some help with my router vlan and networking settings.. I have a Cisco m10 v1 router. I was messing with vlan and networking settings using web GUI, somehow it broke my router. The WAN port isn't getting any ip addr from the cable modem. I tried to set nvram to default and even reflashing the firmware. It stays the same. I think nvram erase didn't restore it to the default. Could any of you send me a dump of your nvram so I have a reference of how to fix my router? I have attached default nvram setting after doing a nvram erase in the attachment.

thanks
Jim



nvram (2).txt
 Description:

Download
 Filename:  nvram (2).txt
 Filesize:  18.17 KB
 Downloaded:  400 Time(s)

kernel-panic69
DD-WRT Guru


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

PostPosted: Wed Jan 16, 2019 1:15    Post subject: Reply with quote
Per Yngve Berg wrote:
It depends of the model of BCM chip used for the switch

For Asus RT-AC66U A1: BCM53125
for R7000 and RT-AC68U: BCM4709A0


BCM5395 - 10/100/1000
BCM5397 - 10/100/1000
BCM5325 - 10/100
BCM53125 - 10/100/1000* - per Broadcom site, will have to re-look at bcmrobo.c
BCM53115 - 10/100/1000

Those are the only devices listed in bcmrobo.c in Broadcom SDKs / GPL tarballs for Broadcom SoCs. WikiDevi and whatever other source of information needs to fix their sh*t.


Last edited by kernel-panic69 on Wed Nov 20, 2019 14:46; edited 1 time in total
kw27
DD-WRT Novice


Joined: 08 Jul 2010
Posts: 1

PostPosted: Tue Mar 12, 2019 5:35    Post subject: vlan.*ports, port.*vlans discrepancy Reply with quote
Hello. I was wondering if someone could clear this up for me. I have a Buffalo WZR-1750DHP. I wanted to put one my ports on a separate VLAN as well as a couple of other things. I though I most understand want I needed to do, but I am confused about which ports are which and how they are labeled internally.. Here the initial outputs from my relnet session

root@DD-WRT:~# nvram show | grep vlan.*ports | sort
size: 31761 bytes (33775 left)
vlan1ports=0 1 2 3 5*
vlan2ports=4 5u
root@DD-WRT:~# nvram show | grep port.*vlans | sort
size: 31761 bytes (33775 left)
port0vlans=2
port1vlans=1
port2vlans=1
port3vlans=1
port4vlans=1
port5vlans=1 2 16
root@DD-WRT:~# nvram show | grep vlan.*hwname | sort
size: 31761 bytes (33775 left)
vlan1hwname=et0
vlan2hwname=et0

So CPU Port is Port #5
The show "vlan.*ports" seems to imply my WAN port is #4 however show "port.*vlans" seems to imply my WAN port is #0.
From the GUI, VLAN1 includes ports 1-4 (for what its worth outside ports are 1-4 for 4 being what computer is plug into) and VLAN2 is W (For WAN).

So is WAN Port 0 or port 4? and why do LAN ports show as vlan1ports=0 1 2 3, but port[1-4]vlans=1?

Another interesting things
I did the following (figuring vlan1ports=0-3 was the same as port.[1-4]vlans=1...
nvram set vlan3hwname=et0
nvram set vlan1ports="1 2 3 5*"
nvram set vlan3ports="0 5"

Committed and rebooted, and nvram appeared as expected, however on GUI, on VLAN page, the computer now appears on port 1 (note it was port 4 above. Ports switched 1->4, 4->1, etc).

Any help in clearing this up? It could be that it is just the GUI was wrong initially (not initialing the display initially).

Much appreciated.
Keith
blv78
DD-WRT Novice


Joined: 22 Dec 2015
Posts: 4

PostPosted: Tue Nov 19, 2019 10:01    Post subject: yet another problem with vlan id Reply with quote
Dear All,
I have a Buffalo WZR-1750DHP configured as a gataway with the last DD-WRT realase (41517) with a modem Netgear DM200 in bridge mode with vlan id passthrought enable.
My connection is a FTTC with PPPoE protocol, encapsulation PTM and vlan id 835. (no vlan id for the IPTV)
After reading tens of page on the forum about vlan id, I've tried the script below, the same of this thread and on the guide Switched Port.

Code:

echo "" > /proc/switch/eth0/vlan/0/ports
echo "" > /proc/switch/eth0/vlan/2/ports

echo "0 1 2 3 5t*" > /proc/switch/eth0/vlan/1/ports
echo "4t 5t" > /proc/switch/eth0/vlan/835/ports

/sbin/ifconfig vlan2 down
/sbin/vconfig rem vlan2

# Setup vlan835 interface
/sbin/vconfig add eth0 835
/sbin/ifconfig vlan835 up
/sbin/ifconfig vlan835 txqueuelen 0

/usr/sbin/nvram set pppoe_wan_ifname=vlan835


Apparently, the WAN connection is up and working, internet ok, but I have a problem with two devices; a LG TV and Fibaro HC2 for the domotic.
On the TV, the Amazon TV doen't connect to the amazon server and on the HC2 the Fibaro remote access doen't work. Fibaro uses a reverse proxy tunnel for it, so I don't have to open or forward any ports.
These devices worked without iussues with old ADSL2 PPPoE connection.

I've check the output ip tables. All connection are allow.
So I deduce that the problem could be the connection to the ISP.
The ISP in the FTTC conf doesn't request the 802.1q tag (only in FTTH is requested). So I tried to remove it but the result is no connection.
Also in the WAN status when the connection is up, the getaway IP is a private address. is it ok?
I asked this, beacause the router is configured as a gataway and my private lan is 192.168.2.0/24; so the getaway shold be 192.168.2.1.

Thanks in advance for your help.
Best
Giovanni







[/img]



image0.jpeg
 Description:
 Filesize:  141.98 KB
 Viewed:  5987 Time(s)

image0.jpeg


Goto page Previous  1, 2, 3, 4  Next Display posts from previous:    Page 3 of 4
Post new topic   This topic is locked: you cannot edit posts or make replies.    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