cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2076
Views
10
Helpful
2
Replies

two interfaces in the same vlan

jcoaguilaj
Level 1
Level 1

Hi.

how to configure two interfaces giga in the same vlan (1)?

thanks

2 Replies 2

Leo Laohoo
Hall of Fame
Hall of Fame

how to configure two interfaces giga in the same vlan (1)?

That's a wrong example because, by default, switchports are already in VLAN 1.

Let's say you want to put two interfaces into the same VLAN, 20.

Scenario 1:  Old method or "range" command not supported:

config t

interface Gig 0/1

switchport access vlan 20

interface Gig 0/2

switchport access vlan 20

end

Scenario 2:  Range command, two ports are adjacent to each other

config t

interface RANGE Gig 0/1 - 2

switchport access vlan 20

end

Scenario 3:  Range command, two ports are not adjacent to each other

config t

interface RANGE Gig 0/2, Gig 0/48

switchport access vlan 20

end

Marvin Rhoads
Hall of Fame
Hall of Fame

^ Like Leo said for layer 2 interfaces.

For layer 3 interfaces, the answer is no. One switch virtual interface (SVI) per VLAN on a given switch.

Review Cisco Networking for a $25 gift card