01-31-2020 07:28 AM
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
01-31-2020 07:30 AM
It can send all configured VLANs over the trunk. If you want to select specific VLANs, use "switchport trunk allowed vlan <vlans>"
01-31-2020 08:55 AM
01-31-2020 09:35 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide