Community discussions

MikroTik App
 
dbsoundman
just joined
Topic Author
Posts: 6
Joined: Wed Feb 17, 2021 3:56 pm

How to select all interfaces not in a bridge using find command?

Thu Feb 18, 2021 4:17 am

Hi all, I'm thinking there has to be a better way to do this... I have a CRS354-48G, and need to add basically 44 of the 48 ports to the same VLAN. Instead of doing
add bridge=BR1 interface=ether1 pvid=10 hw=yes
44 times, I was hoping that I could maybe use the "find" command or some other magic to list a range of interfaces. Ideally I'd like to just apply this to interfaces 1-44, but I have added interfaces 45 and 46 to a different bridge (BR2), so if I could, for example, find all ports NOT in BR2, that would work pretty well, then I could always remove ports 47 and 48 later on.

I tried searching the topic but didn't really see anything, unless maybe I'm missing a keyword somewhere. I'd appreciate a tip!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19357
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: How to select all interfaces not in a bridge using find command?

Thu Feb 18, 2021 2:43 pm

I suspect there is some fancy pants CLI command but I am pictures guy LOL.

Who is online

Users browsing this forum: amarmerk and 36 guests