07-01-2014 05:56 PM - edited 03-07-2019 07:53 PM
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
Solved! Go to Solution.
07-01-2014 07:12 PM
ok, this interface is part of portchannel 11.
try this:
interface port-channel 11
switchport trunk allowed vlan add 120
HTH
07-01-2014 06:51 PM
Hi,
Can you post the output of "sh run int e6/18"?
07-01-2014 07:03 PM
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
07-01-2014 07:12 PM
ok, this interface is part of portchannel 11.
try this:
interface port-channel 11
switchport trunk allowed vlan add 120
HTH
07-01-2014 07:19 PM
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
07-01-2014 07:34 PM
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
07-01-2014 07:36 PM
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
07-01-2014 07:53 PM
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
07-01-2014 08:41 PM
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#
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: