Based on how you've defined the range, there's no direct way to exclude a member, however this can be achieved using a few different ways:
a) One way is to delete the range and redefine it excluding the member. This one should be done with caution as we're removing/re-adding the range for a brief second or while the commit is in progress. In my experience, I haven't seen much disruption due to this, however that was for a device where the commit went through pretty quickly.
For example:
delete interfaces interface-range
member-range ge-0/0/0 to ge-0/0/9
set interfaces interface-range member-range ge-0/0/1 to ge-0/0/8
commit
b) Another is to use "wildcard" or use "member" instead of member-range to define the range, in a way that makes it easier to delete a specific member later on.
For example:
[edit]
labroot@JNPR_LAB# show interfaces interface-range MY_RANGE
member ge-0/0/0;
member ge-0/0/1;
member ge-0/0/2;
member ge-0/0/3;
[edit]
labroot@JNPR_LAB# delete interfaces interface-range MY_RANGE member ge-0/0/0
[edit]
labroot@JNPR_LAB# commit
commit complete
[edit]
labroot@JNPR_LAB# show interfaces interface-range MY_RANGE
member ge-0/0/1;
member ge-0/0/2;
member ge-0/0/3;
Please refer this one for wildcard example:
https://community.juniper.net/communities/community-home/digestviewer/viewthread?MID=64465#bm3292f699-f49d-42f2-85e8-c16be26d3bfcc) A
nother way to disable a member at the protocol definition (dot1x example shared in above link).
Hope this helps.
Regards,
-r.
--------------------------------------------------
If this solves your problem, please mark this post as "Accepted Solution."
Kudos are always appreciated :).
Original Message:
Sent: 06-02-2021 21:40
From: Unknown User
Subject: Removing a single interface from a "member-range"?
When adding a "member-range" to an "interface-range", how do you remove only one interface from the "member-range" without having to delete the whole "member-range". In other words, if you made a mistake and needed to remove one interface.
example:
member-range ge-0/0/0 to ge-0/0/9
I would like to remove ge-0/0/0 from the above member-range. Is there a single command that would do this? It seems like I would have to delete the whole member-range and then create the member range again and commit? It's like you have to run multiple configurations commands and then commit all at once.