cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
34130
Views
16
Helpful
5
Replies

Adding VLANs to a Nexus Switchport Trunk

joshua.gertig
Level 1
Level 1

Hi All,

Quick question. I'm trying to add several VLANs to an uplink port going to one of our floor switch stacks, however it's not letting me add.

Current Interface Config

interface Ethernet1/21

  description Xconn N3 floor switch t4/1/1

  switchport

  switchport mode trunk

  switchport trunk allowed vlan 1,25,50,330-331,337,339,400,555

  switchport trunk allowed vlan add 600,605,666,1112

  channel-group 330 mode active

  no shutdown

Here is what I get when I try to add the VLANs

N7K2# conf t

Enter configuration commands, one per line.  End with CNTL/Z.

N7K2(config)# int e1/21

N7K2(config-if)# switchport trunk allowed vlan add 102-104,109

                                                   ^

% Invalid command at '^' marker.

N7K2(config-if)# switchport ?

  host  Set port host

Is the problem that I already have an "add" command in the existing config? And if so, do I need to do a "no switchport trunk allowed vlan add 600,605,666,1112" first and then re-enter the command but add the new vlans?

1 Accepted Solution

Accepted Solutions

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hello ,

Add VLAN's on interface Port-channel 330

interface port-channel 330
switchport trunk allowed vlan add 102-104,109

Hope it Helps..

-GI

View solution in original post

5 Replies 5

Collin Clark
VIP Alumni
VIP Alumni

You should be adding the VLANs on the trunk from the port-channel interface not the physical.

HTH

Thanks, I've got it working now

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hello ,

Add VLAN's on interface Port-channel 330

interface port-channel 330
switchport trunk allowed vlan add 102-104,109

Hope it Helps..

-GI

Thanks for this reply!

strange that Cisco doest advise that

joshua.gertig
Level 1
Level 1

This did the trick.

Thanks for helping, I'm not quite used to Nexus yet

Review Cisco Networking for a $25 gift card