WRT1900AC v1 vlan20 pppoe wan

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


Joined: 14 Mar 2016
Posts: 3

PostPosted: Mon Mar 23, 2020 21:14    Post subject: WRT1900AC v1 vlan20 pppoe wan Reply with quote
Hi everyone,

I need help to configure a vlan with my router wrt1900ac v1 with ddwrt version. 42617
I don't understand much about configuring vlan. I briefly explain to you that I want to connect the router to a fiber ont and the provider forces me to use a vlan20 with priority 0 using username and password with a pppoe connection to the wan port of the router.

The current configuration is the one that comes by default and does not allow me to configure vlan 20 because there are only up to 15. It has to be configured with a command line. The current configuration of the router is:

nvram show | grep vlan.*ports | sort
vlan0ports=1 2 3 4 5*
vlan1ports=0 5

nvram show | grep port.*vlans | sort
port0vlans=2
port1vlans=1
port2vlans=1
port3vlans=1
port4vlans=1
port5vlans=1 2 16

nvram show | grep vlan.*hwname | sort
vlan0hwname=et0
vlan1hwname=et0

This is the script I have put on startup:

swconfig dev switch0 set reset 1
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports '1 2 4 5*'
swconfig dev switch0 vlan 20 set ports '0 5'
swconfig dev switch0 set apply
ifconfig eth0 up
ifconfig eth1 up
vconfig set_name_type vlan20
vconfig add eth1 1
vconfig add eth0 20
ifconfig vlan1 up
ifconfig vlan20 up

It doesn't work and it disables me all ports except one. Surely everything will be wrong but I can't find the correct configuration and I don't know if I have to add or remove something through the web interface. I have tried many options but none works for me.

Could someone help me with the startup script? Thanks in advance
Sponsor
aLiArLa
DD-WRT Novice


Joined: 14 Mar 2016
Posts: 3

PostPosted: Sat Mar 28, 2020 20:47    Post subject: Reply with quote
I finally found the solution. Use the nvram commands to change the settings. Based on my initial configuration:

nvram show | grep vlan.*ports | sort
vlan0ports=1 2 3 4 5*
vlan1ports=0 5

nvram show | grep port.*vlans | sort
port0vlans=2
port1vlans=1
port2vlans=1
port3vlans=1
port4vlans=1
port5vlans=1 2 16

with ssh I entered the following commands:

nvram set vlan0ports="1 20t 3 4 5*"
nvram set port0vlans="20"
nvram set port5vlans="1 20 16"
nvram set pppoe_wan_ifname=eth1.20
nvram commit
reboot

I have put eth1 because it is the wan port of my router. For another router the wan port could be another.

In basic configuration I added connection with pppoe with username and password. My fiber company is DIGI Spain

I also changed these parameters via gui:
fara
DD-WRT Novice


Joined: 21 Apr 2021
Posts: 1

PostPosted: Thu Apr 22, 2021 8:46    Post subject: Reply with quote
Hi,

I have followed several times your post as I also have Digi and a Linksys 1900acs v2 (instead Linksys 1900ac v1) router. Anyway I can't get the WAN IP.

Do you know if there is any other step that I am missing?

Thanks.
SurprisedItWorks
DD-WRT Guru


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

PostPosted: Thu Apr 22, 2021 13:43    Post subject: Reply with quote
Are you folks aware that splitting the set of lan ports into vlans was sorted out for this router series a couple of years back? See the VLAN link in my sig. It's also a Sticky post at the top of the Marvell forum.

One of my conclusions back then was that while there were aspects one could handle in the GUI, there was no avoiding swconfig commands and such in Startup, and given that, it seemed cleaner to try and keep everything in one place. So I don't have any of it set in the GUI other than creating and configuring any needed bridges.

_________________
2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
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