Community discussions

MikroTik App
 
mischa01101
just joined
Topic Author
Posts: 8
Joined: Wed Feb 08, 2023 12:31 pm

Adding a new interface/trunk port to 500+ vlans

Wed Feb 08, 2023 12:36 pm

Hi,

let's assume one has a ton of vlans per switch and we want to add a new port to as trunk port. We usually don't put the untagged ports into /interface bridge vlan as they are added automagically by the pvid set on the access port. Our config looks like this:
/interface bridge vlan
add bridge=bridge tagged=ether7,ether8 vlan-ids=2
add bridge=bridge tagged=ether7,ether8 vlan-ids=3
add bridge=bridge tagged=ether7,ether8 vlan-ids=4
...
If I want to add ether6 to the list I have to now edit 500+ entries. A loop won't work for me since in the end this is not sth I want to achieve through the commandline/scripting option but through ansible. So I'm looking for a config option here. Any ideas?

Thanks in advance,
Mischa

Who is online

Users browsing this forum: Bing [Bot], stef70 and 77 guests