Configure VLANs in native mode

Bom dia, desculpe escrever em Português!, estou com Open wrt instalado no roteador "openwrt-15.05.1-ramips-mt7620-wmr-300-squashfs-sysupgrade (1)" topologia é deixar o Roteador como um Switch gerenciável e cada porta dele LAN1,LAN2... colocando a vlan em quem subir por elas ex "vlan120" p essa vlan vai ter um server pppoe, terão 4 roteadores discando pppoe que devem chegar em cada porta do Roteador "gerenciável". quero deixar a WAN como uplink unica saída para a "vlan 120".... pecebi quando coloco untagged na porta ele não atribui a vlan (nao fica como native vlan 120), so consigo sucesso quando deixo tagged (trunk) ja chegando com a vlan na porta do Roteador. se alguém puder me ajudar ou dar alguma dica, preciso apenas ter gerencia do roteador e sair dele com uma unica "vlan x"

When writing in your native language, please always provide an english translation.
This way other users all around the world can take part in the discussion and possibly benefit from the outcome, without having to use a translator.

2 Likes
  • If I understand correctly, you need to untag the port on the remote device you're connecting to the OpenWrt router, then you should be able to configure an untagged access port
  • I also advise rebooting after a switch config change

Cara, vou te falar! até em português está difícil de entender.

As 4 portas LAN terão o que conectado e fazendo o que ?
Which device do you plan connect to the LAN port and doing what?

Cada porta LAN terá sua propria vlan ?

Por favor, forneça uma tradução em inglês!

Please provide an English translation!

@soares
من فضلك اكتب بالانجليزية

pppoe is by design, strictly point to point. You cannot use a simple switch to share a pppoe modem among multiple devices. That is what routers are for.

On a router like this, when your ISP requires you to send tagged packets to the modem, you only need make a simple change from the default switch configuration. Change the VLAN number that the wan switches through from its default (almost always 2) to the number you need. Change the WAN port from untagged in that VLAN to tagged.

Then configure your pppoe wan interface as if it were untagged. The switch chip is adding and removing tags for you.

The other CPU port continues to operate on the other side of the routing to send untagged packets to your LAN devices. Leave all of that at defaults.

Irei usar apenas uma vlan, mais o roteadores serão tem que pegar essa vlan logo na entrada, pois haverá um servidor pppoe para a vlan designada para o bloco de apartamentos. ex bloco 2 vlan120, para outro bloco, terá outro roteador com vlan 121!


I will use only one vlan, plus the routers will have to pick up this vlan just at the entrance as there will be a pppoe server for the vlan assigned to the apartment block. ex block 2 vlan120, to another block, will have another router with vlan 121!

In that case you need to create a separate VLAN line entry for each VLAN number. Turn them all on tagged to the "trunked" port going to the server, and then each one either tagged or untagged on the port going to the cable to its apartment (depending on how the equipment at the apartment end is configured).

If this distribution of different VLANs to the different apartments is all that you need this box to do, you can use a managed switch instead of a router.