cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
56207
Views
41
Helpful
2
Replies

How to assign a range of interfaces to a single VLAN?

abbas64
Level 1
Level 1

How can I assign multiple ports or interfaces to a single VLAN. I am using Multi-layer Switches.

1 Accepted Solution

Accepted Solutions

Mark Malone
VIP Alumni
VIP Alumni

Hi

example

interface range g1/0/1 - 18

switchport access vlan 10

View solution in original post

2 Replies 2

Mark Malone
VIP Alumni
VIP Alumni

Hi

example

interface range g1/0/1 - 18

switchport access vlan 10

Just to add to what Mark has posted, you can have up to five parameters which can be handy when you need to skip some ports or deal with more than one line card, e.g.:

interface range g1/0/1 - 18 , g1/0/20 - 24 , g3/0/5 - 48 , g5/0/5 , g 7/0/22 - 24

PS:

You can also default interfaces using a range statement, e.g.:

default interface range g1/0/1 - 18 , g1/0/20 - 24 , g3/0/5 - 48 , g5/0/5 , g 7/0/22 - 24

Review Cisco Networking products for a $25 gift card