cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
177
Views
0
Helpful
5
Replies

difference between 2 commands in CBS 350 model switches

13jobsp90
Level 1
Level 1

I have a doubt regarding Cisco CBS 350 model switch. For a WIFI AP to configure in a port we give 2 commands switchport mode trunk and switchport trunk allowed vlan ____ & switchport trunk native vlan ___. 

The above 3 commands are given for wifi ap to get it configured.

Why do you need to have/ what is the difference between switchport mode trunk and switchport trunk allowed vlan ____ ? If I pass switchport mode trunk it means it passes all vlans to that interface port. then why we need switchport trunk allowed vlan ____ ?

1 Accepted Solution

Accepted Solutions

@13jobsp90 

Without the switchport mode trunk command, the port would not be a trunk and would not be able to carry traffic for more than one VLAN. The switchport trunk allowed vlan ____ command only makes sense once the port is in trunk mode because it defines which VLANs can be carried on the trunk.

These 2 commands serve distinct roles in configuring a trunk port:

  • switchport mode trunk:  This command enables trunking on the port, allowing it to carry traffic for multiple VLANs. Without this command, the port would operate in access mode, where it only carries traffic for a single VLAN. In other words, this command is necessary to tell the switch that the port should handle traffic for multiple VLANs, not just one.
  • switchport trunk allowed vlan ____ : Once the port is in trunk mode (thanks to the switchport mode trunk command), this command is used to specify which VLANs are allowed to pass through the trunk. By default, a trunk port carries traffic for all VLANs, but this command limits it to the VLANs you specify, improving control and security.