Community discussions

MikroTik App
 
lurch
just joined
Topic Author
Posts: 23
Joined: Mon Jan 24, 2022 5:45 pm

changing port pvid via command line

Fri Feb 03, 2023 1:03 pm

I'm after a one liner to change the bridge port pvid via ssh but can't figure out the correct command i'm after something like
interface/bridge/vlan/set port=ether5 vlan=10
does anyone know the correct command to use?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: changing port pvid via command line

Fri Feb 03, 2023 1:21 pm

do
/interface bridge export
and post on forum the results with description of what you want change on that config... ;) ;) ;)
 
lurch
just joined
Topic Author
Posts: 23
Joined: Mon Jan 24, 2022 5:45 pm

Re: changing port pvid via command line

Fri Feb 03, 2023 1:33 pm

I want to change the pvid at the end
add bridge=bridge comment=defconf ingress-filtering=no interface=ether5 pvid=X
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: changing port pvid via command line  [SOLVED]

Fri Feb 03, 2023 1:56 pm

/interface bridge port set [find where bridge=bridge and interface=ether5] pvid=<X>
 
lurch
just joined
Topic Author
Posts: 23
Joined: Mon Jan 24, 2022 5:45 pm

Re: changing port pvid via command line

Fri Feb 03, 2023 5:12 pm

Perfect many thanks

Who is online

Users browsing this forum: Google [Bot] and 39 guests