cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
273
Views
4
Helpful
3
Replies

Trunk Port Switch to Switch

IrfanKhan4904
Level 1
Level 1

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

 

1 Accepted Solution

Accepted Solutions

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

View solution in original post

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

 

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

You can use commands but I prefer allow some of vlan not all

MHM

Review Cisco Networking for a $25 gift card