Assign WAN port to Switch

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
pbphoto
DD-WRT User


Joined: 29 Oct 2017
Posts: 258

PostPosted: Mon Jun 28, 2021 20:51    Post subject: Assign WAN port to Switch Reply with quote
It was removed from the GUI in a release in May IIRC. I saw the comments in the r47000 build thread. I figured this out yesterday on my 1900ACSv1. You could type this into the CLI/telnet, or put it in the GUI under Administration-commands-startup. It doesn't seem to hurt anything running it every time it reboots:

#Assign WAN port the main switch vlan0
#
nvram unset vlan1ports
nvram unset port0vlans
nvram set port0vlans=0
nvram set vlan0ports="0 1 2 3 4 5*"
nvram commit
Sponsor
kernel-panic69
DD-WRT Guru


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

PostPosted: Mon Jun 28, 2021 20:57    Post subject: Reply with quote
Why would it be vlan0ports and not vlan1ports? Also, CPU port was changed to 8 across the board, I think. Did you even attempt to do anything via the webUI?
_________________
"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
pbphoto
DD-WRT User


Joined: 29 Oct 2017
Posts: 258

PostPosted: Mon Jun 28, 2021 21:42    Post subject: Reply with quote
Good questions. This is how it is configured on a fresh 1900ACSv1. Other routers will be different i'm sure. If there is a better way, I'm all ears.

root@router4:~# nvram show | grep vlan.*ports | sort
size: 27876 bytes (103196 left)
vlan0ports=1 2 3 4 5*
vlan1ports=0 5

root@router4:~# nvram show | grep port.*vlans | sort
size: 27876 bytes (103196 left)
port0vlans=1
port1vlans=0
port2vlans=0
port3vlans=0
port4vlans=0
port5vlans=0 1 16000

root@router4:~# 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: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:up speed:1000baseT full-duplex
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


This is how it looks after running the start-script:
vlan0ports=0 1 2 3 4 5*

port0vlans=0
port1vlans=0
port2vlans=0
port3vlans=0
port4vlans=0
port5vlans=0 1 16000
kernel-panic69
DD-WRT Guru


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

PostPosted: Mon Jun 28, 2021 21:57    Post subject: Reply with quote
Ok, that explains things. Need confirmation across the board, but that would mean that Marvells use the same vlan mapping that the old WRT54* series and it's clones use and not the modern vlan mapping for modern routers.
_________________
"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
Display posts from previous:    Page 1 of 1
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