Menu

US Region

Grandmetric LLC
Brookfield Place Office
200 Vesey Street
New York, NY 10281
EIN: 98-1615498
Phone: +1 302 691 94 10

info@grandmetric.com

EMEA Region

GRANDMETRIC Sp. z o.o.
ul. Metalowa 5, 60-118 Poznań, Poland
NIP 7792433527
+48 61 271 04 43
info@grandmetric.com

Trunk port configuration (Cisco)

Design & Configure

Trunk port configuration (Cisco)

Technology: Switching
Area: VLAN
Vendor: Cisco
Software: 12.X , 15.X, IP Base, IP Services, LAN Base, LAN Light
Platform: Catalyst 2960-X, Catalyst 3560

Trunk port configuration example to carry the different VLAN tags between two devices on the same physical link. Vendor agnostic technology (IEEE 802.1Q)

Switch(config)# interface GigabitEthernet 0/0/10
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# switchport mode trunk

By default this configuration allows all VLANs to be transmitted over the trunk link. To restrict the link to carry only specified VLANs use the allowed vlan command

Switch(config)# interface GigabitEthernet 0/0/10
Switch(config-if)# switchport trunk allowed vlan 1,2,3,4

To verify how the trunk port is configured you can issue few show commands:

Switch# show run interface GigabitEthernet 0/0/10
Switch# show interface trunk

 

 

Check how to configure access port.

Author: Marcin Bialy
 
Previous Next
Grandmetric