cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2539
Views
10
Helpful
8
Replies

nexus 7000 add vlan to trunk interface

Hasrat Raja
Level 1
Level 1

Hi,

trying to add vlan to trunk interface, it gives following error


nexus(config-if)# interface Ethernet6/18
nexus(config-if)#  switchport trunk allowed vlan add 120
                                  ^

interface has multiple vlans, if I do a question mark after switchport it only gives host option

nexus(config-if)# switchport ?
  host  Set port host

please let know what is needed to add vlan.

thanks

1 Accepted Solution

Accepted Solutions

ok, this interface is part of portchannel 11.

try this:

interface port-channel 11

switchport trunk allowed vlan add 120

HTH

 

 

 

 

View solution in original post

8 Replies 8

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

Can you post the output of "sh run int e6/18"?

 

 

Here is it

 


interface Ethernet6/18
  switchport
  switchport mode trunk
  switchport trunk allowed vlan 1,6,9-12,14,27,35,82,87,93,125,130-131
  switchport trunk allowed vlan add 134,187,254-255,316-320,415,451
  switchport trunk allowed vlan add 453,455,500,2049,2051
  storm-control broadcast level 1
  channel-group 11
  no shutdown

 

thanks

ok, this interface is part of portchannel 11.

try this:

interface port-channel 11

switchport trunk allowed vlan add 120

HTH

 

 

 

 

Reza,

tried this and it is showing under interface, but interface doesn't sow under 'sh vlan", only port channel shows up, if there is no port channel then the command will work ?

 

thanks

That is correct.  When the physical interfaces are part of a Portchannel, you add the config to the Portchannel and the physical interfaces inherent the config change.

When the interface is not part of a Portchannel then you can add the command directly to the interface

HTH

Thank you for the explanation, is it normal that physical interface is not showing under sh vlan ? I see some interfaces which are part of port channels

 

When you issue "sh vlan" it should show both the Portchannel ID and the physical interfaces. For example in below config interface e1/7/1 is part of po5

20   VLAN0020                         active    Po2, Po3, Po4, Po5, Po6, Po7
                                                Po10, Eth1/7/1, Eth1/7/2

Can you post the output of "sh vlan id 120"

HTH

 

it doesn't show:

 


nexus# sh vlan id 120

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
120  private_network                active    Po10, Po11, Po1093, Po1098

VLAN Type
---- -----
120  enet

Remote SPAN VLAN
----------------
Disabled

Primary  Secondary  Type             Ports
-------  ---------  ---------------  -------------------------------------------

 

nexus#

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: