09-25-2024 08:54 PM
On a switch-to-switch interface, can we configure both of these commands at the same time, or can we only configure one of them?
switchport mode trunk
switchport trunk allowed vlan all
interface GigabitEthernet1/1/3
description ****Uplink-Block-Switch
switchport mode trunk
switchport trunk allowed vlan all
Solved! Go to Solution.
09-26-2024 04:19 PM
Here is an example using only the selected vlans
interface GigabitEthernet1/1/3
description ****Uplink-Block-Switch
switchport mode trunk
switchport trunk allowed vlan 1,11,12
09-25-2024 09:07 PM
Hello @IrfanKhan4904 ,
in cisco switches the command
switchport trunk allowed vlan all
is the default when you configure a port as a trunk
so it is enogh to use
int gi1/1/3
switchport mode trunk
on both sides of the link
using a port-channel if possible is recommended. in case LACP is far better then uncondtional ( mode on)
Hope to help
Giuseppe
09-26-2024 04:19 PM
Here is an example using only the selected vlans
interface GigabitEthernet1/1/3
description ****Uplink-Block-Switch
switchport mode trunk
switchport trunk allowed vlan 1,11,12
09-25-2024 09:35 PM
You can use commands but I prefer allow some of vlan not all
MHM
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