In the following example I create a trunk port and add VLAN 2. Note that the default VLAN, 1, is already a member.

2016-01# configure
2016-01(config)# interface ethernet g8
2016-01(config-if)# switchport mode trunk
2016-01(config-if)# switchport trunk allowed vlan add 2
2016-01(config-if)# end
2016-01# show interfaces switchport ethernet g8
Port : g8
Port Mode: Trunk
Gvrp Status: disabled
Ingress Filtering: true
Acceptable Frame Type: admitAll
Ingress UnTagged VLAN ( NATIVE ): 1
Protected: Disabled

Port is member in:

Vlan Name Egress rule Port Membership Type
— ------— --- ----
1 1 Untagged System
2 office_net Tagged Static

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License