I am pretty new on the networking and cisco world. As far as I learned, tagging is just assigning a port to a vlan, and, as per definition, trunking is assigning a port to more than one vlan
I am trying to trunk a port on a couple of vlans and that is what's happening on a 350x-48P:
#configure terminal
(config)#interface GigabitEthernet1/0/48
(config-if)#switchport mode trunk
(config-if)#switchport trunk allowed vlan add 1,8
(config-if)#no shut
(config-if)#end
#show vlan
Created by: D-Default, S-Static, G-GVRP, R-Radius Assigned VLAN, V-Voice VLAN
Vlan Name Tagged Ports UnTagged Ports Created by
---- ----------------- ------------------ ------------------ ----------------
1 gi1/0/3-10, DV
gi1/0/12-15,
gi1/0/17-24,
gi1/0/26-32,
gi1/0/34-48,
te1/0/2-3,
gi2/0/1-48,
te2/0/1-4,
gi3/0/1-48,
te3/0/1-4,
gi4/0/1-48,
te4/0/1-4,Po1-8
2 gi1/0/48 S
3 gi1/0/48 S
5 gi1/0/48 S
6 gi1/0/48 S
7 gi1/0/48 S
8 gi1/0/48 S
10 gi1/0/48 S
40 gi1/0/48 S
If I try only with a single port on a single vlan:
#configure terminal
(config)#interface GigabitEthernet1/0/16
(config-if)#switchport mode trunk
(config-if)#switchport trunk allowed vlan add 1
(config-if)#no shut
(config-if)#end
#show vlan
Created by: D-Default, S-Static, G-GVRP, R-Radius Assigned VLAN, V-Voice VLAN
Vlan Name Tagged Ports UnTagged Ports Created by
---- ----------------- ------------------ ------------------ ----------------
1 gi1/0/3-10, DV
gi1/0/12-15,
gi1/0/17-24,
gi1/0/26-32,
gi1/0/34-48,
te1/0/2-3,
gi2/0/1-48,
te2/0/1-4,
gi3/0/1-48,
te3/0/1-4,
gi4/0/1-48,
te4/0/1-4,Po1-8
2 gi1/0/16,gi1/0/48 S
3 gi1/0/16,gi1/0/48 S
5 gi1/0/16,gi1/0/48 S
6 gi1/0/16,gi1/0/48 S
7 gi1/0/16,gi1/0/48 S
8 gi1/0/16,gi1/0/48 S
10 gi1/0/16,gi1/0/48 S
40 gi1/0/16,gi1/0/48 S
Apparently it's just the right procedure, as per manual:
Thanks for any help J.