Community discussions

MikroTik App
 
akoscomp
just joined
Topic Author
Posts: 11
Joined: Fri Apr 23, 2021 8:54 pm

set pvid on interfaces

Tue Nov 09, 2021 12:45 pm

I tryed with two commands to set interface PVID for a bridge port:
/interface bridge port
set [ find default-name=ether47 ] pvid=1300

/interface bridge port
set [find where default-name=ether47] pvid=1300

With both commands the PVID was setted on ALL interfaces, not only for ether47.
What is the correct command to set PVID only for one interface or for an interface list?
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1070
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: set pvid on interfaces

Sun Nov 14, 2021 11:08 pm

A property "default-name" does not exist in "/interface bridge port"...
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: set pvid on interfaces

Mon Nov 15, 2021 2:59 am

# correct way to complicate the things
/interface bridge port
set [find where interface=[/interface get [find where default-name=ether47] name] ] pvid=1300

# how must be doed
/interface bridge port
set [find where interface=ether47] pvid=1300

Who is online

Users browsing this forum: No registered users and 14 guests