Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

nexus 7000 add vlan to trunk interface

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
VIP Super Bronze

ok, this interface is part of

ok, this interface is part of portchannel 11.

try this:

interface port-channel 11

switchport trunk allowed vlan add 120

HTH

 

 

 

 

8 REPLIES
VIP Super Bronze

Hi,Can you post the output of

Hi,

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

 

New Member

 Here is it interface

 

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

VIP Super Bronze

ok, this interface is part of

ok, this interface is part of portchannel 11.

try this:

interface port-channel 11

switchport trunk allowed vlan add 120

HTH

 

 

 

 

New Member

Reza,tried this and it is

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

VIP Super Bronze

That is correct.  When the

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

New Member

Thank you for the explanation

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

 

VIP Super Bronze

When you issue "sh vlan" it

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

New Member

 it doesn't show: nexus# sh

 

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#

235
Views
0
Helpful
8
Replies
CreatePlease login to create content