cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
21693
Views
15
Helpful
5
Replies

Whats the command steps to move an interface to another vlan

Cnote100
Level 1
Level 1

What is the command steps to move an interface to another vlan.          

5 Replies 5

Reza Sharifi
Hall of Fame
Hall of Fame

If the access port is for example in 10 and you want to move to vlan 20, simply ovveride the old vlan id with the new one,

example:

interface GigabitEthernet1/0/8
switchport access vlan 10
switchport mode access
spanning-tree portfast
end

r1(config-if)#

interface GigabitEthernet1/0/8
switchport access vlan 20
switchport mode access
spanning-tree portfast
end

r1(config-if)#

HTH

Just trying to move from example: vlan1 to vlan256

Same way I explained.

inter gi1/0/8

switchport access vlan 256

will move interface gi1/0/8 from vlan 1 to 256

If you have a lots of interfaces to move then you can use interface range command

interface range gigabitEthernet 1/0/1 - 15

switchport access vlan 256

Will move interface 1 through 15 from vlan 1 to 256

HTH

Perfect!!! Thanks for your help...

Please rate and mark the post as answered, so others can benefit from it,

Thanks,

Review Cisco Networking products for a $25 gift card