cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
505
Views
0
Helpful
3
Replies

What VLANS does this port have access to?

Hi,

 

If the config says switchport mode trunk  does this mean the port has access to all of the vlans on the switch?

 

Any help appreciated please

 

 

#show running-config interface gi1/0/23
Building configuration...

Current configuration : 185 bytes
!
interface GigabitEthernet1/0/23
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
spanning-tree portfast disable
channel-group 1 mode active
end

3 Replies 3

Nadav
Level 7
Level 7

It can send all configured VLANs over the trunk. If you want to select specific VLANs, use "switchport trunk allowed vlan <vlans>"

Jaderson Pessoa
VIP Alumni
VIP Alumni
Hello

this command apply all vlans configured on switch itself. If you want to see what vlans are allowed trough this interface, use this command.

"show interface gi 1/0/23 trunk"

If you want allow a list of vlans, you can use a command like below;

"switchport trunk allowed vlan 10,20,30-50"

Best regards,
Jaderson Pessoa
*** Rate All Helpful Responses ***

luis_cordova
VIP Alumni
VIP Alumni

Hi @adamwilkinson776321465 

 

When a frame reaches a switch, the number of vlan(tag) configured in the interface is inserted.

Then, that frame is switched to all ports that have the same tag assigned.

When you configure a port in trunk mode, the switch will include that port when switching frames originating from different vlan. This is necessary in the links that connect two switches and in the links that connect a switch to a router.

 

Regards

 

Review Cisco Networking for a $25 gift card