cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1224
Views
0
Helpful
4
Replies

Is it possible to configure a range of interfaces that are assigned to a vlan?

What I'm trying to do is mass select all the interfaces that are assigned to this vlan. I know that I can to an "interface range", but is there a way to config it if it's assigned under a certain vlan?

 

2150  active Gi1/0/2, Gi1/0/3, Gi1/0/4
Gi1/0/5, Gi1/0/6, Gi1/0/8
Gi1/0/9, Gi1/0/10, Gi1/0/12

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
Gi1/0/13, Gi1/0/14, Gi1/0/16
Gi1/0/18, Gi1/0/19, Gi1/0/20
Gi1/0/21, Gi1/0/22, Gi1/0/23
Gi1/0/24, Gi1/0/25, Gi1/0/26
Gi1/0/27, Gi1/0/28, Gi1/0/29
Gi1/0/30, Gi1/0/31, Gi1/0/32
Gi1/0/33, Gi1/0/34, Gi1/0/36
Gi1/0/38, Gi1/0/39, Gi1/0/40
Gi1/0/41, Gi1/0/42, Gi1/0/44
Gi1/0/45, Gi1/0/46, Gi1/0/47
Gi1/0/48, Gi2/0/1, Gi2/0/2
Gi2/0/3, Gi2/0/4, Gi2/0/5
Gi2/0/6, Gi2/0/7, Gi2/0/8
Gi2/0/9, Gi2/0/10, Gi2/0/11
Gi2/0/12, Gi2/0/13, Gi2/0/14
Gi2/0/15, Gi2/0/16, Gi2/0/17
Gi2/0/18, Gi2/0/19, Gi2/0/20
Gi2/0/21, Gi2/0/22, Gi2/0/23
Gi2/0/24, Gi2/0/25, Gi2/0/26
Gi2/0/27, Gi2/0/28, Gi2/0/29
Gi2/0/30, Gi2/0/31, Gi2/0/32
Gi2/0/33, Gi2/0/34, Gi2/0/35
Gi2/0/36, Gi2/0/37, Gi2/0/38

1 Accepted Solution

Accepted Solutions

david.johnson
Level 1
Level 1

Using "interface range " is the only way to configure multiple interfaces at once.  If you are trying to only configure the interfaces in a certain vlan, then you simply "show vlan brief" like you did in your original post, then highlight those ports and paste them after "interface range ".   It is a two-command process to do this so it doesn't get any simpler, but if you want to script it I would use EEM, but if you don't know how to use EEM then just doing those two steps is way faster.

View solution in original post

4 Replies 4

marce1000
VIP
VIP

 

          - No because the normal intend is that switch configuration is  done in a reverse manner

 M.



-- ' 'Good body every evening' ' this sentence was once spotted on a logo at the entrance of a Weight Watchers Club !

I'm not sure that I follow, could you describe this a little further. Is here possibly a way to script this out?

david.johnson
Level 1
Level 1

Using "interface range " is the only way to configure multiple interfaces at once.  If you are trying to only configure the interfaces in a certain vlan, then you simply "show vlan brief" like you did in your original post, then highlight those ports and paste them after "interface range ".   It is a two-command process to do this so it doesn't get any simpler, but if you want to script it I would use EEM, but if you don't know how to use EEM then just doing those two steps is way faster.

balaji.bandi
Hall of Fame
Hall of Fame

Automation, scripting, Cattools , like many option available other than manual input cut and paste.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking products for a $25 gift card