11-14-2018 05:22 AM - edited 03-08-2019 04:36 PM
Hi everyone,
This is the first time when I writing to this community and asking for help. So please be kind if this post is not opened in the correct section and advise how should I do this correctly next time.
That been said, please let me know if there is any easy solution to this issue:
I have a bunch of vlans and I would like to check if all of them are trunked correctly. Instead of checking each vlan one by one, I would like to check all of them at once.
switchport trunk allowed vlan 19,22,29,44,101,103-106,108-115,117,122-123,125-129,131,140,142-147,150,160,164-169,172-173,177,179,186,193,203-204,225-226,303-314,322-323,326-327,330-331,340,342-343,345-347,360,366-367,376,379,393,1011,1401
Usually I would use "show vlan id xxx" but I am looking for a faster way for doing this. As you can see, there are many vlans and it will take a lot of time to check all of them one by one.
I am also interested how to check if any of these vlans are missing from the switch configuration.
Like for example if you do "show vlan id 19,22,29,44,101,103-106,108-115 .... " the switch will show me only the vlans that are configured but it will not tell me which vlan is missing.
Hardware used:
cisco Nexus9000 C9396PX
Solved! Go to Solution.
11-14-2018 06:41 AM
Hello
Sh interface trunk - this will show what is allowed to cross the trunk and what is at present being used over that trunk
Sh vlan brief <-- this will show what vlans are in the vlan database of the switch
11-14-2018 06:41 AM
Hello
Sh interface trunk - this will show what is allowed to cross the trunk and what is at present being used over that trunk
Sh vlan brief <-- this will show what vlans are in the vlan database of the switch
11-14-2018 07:15 AM
11-14-2018 10:38 AM
you can also do this, assuming gig1/0/1 is the trunk port - sh run int g1/0/1 - you can see the actual cmd switchport trunk allowed vlan ..... - & then see which vlans are allowed - as well as the rest of the trunk port config
regards, mk
please rate if helpful :)
11-14-2018 10:50 AM
Hello
@CipTC wrote:
I was mainly interested if there is a command that can show me a missing vlan from a list of vlans. Do you know or remember any?
Not so sure what you mean here, can you elaborate a bit more?
11-14-2018 03:29 PM
It seems to me that it is pretty clear that the original poster is asking for a command that will show what might be missing from the config. Unfortunately I do not believe that any such command exists. In my experience the most difficult part of troubleshooting is to identify things that should be present but are missing. It is usually easier to identify something that is in the config that should not be, or to identify something that is in the config with an incorrect value. But it is quite difficult to identify what should be there but is not.
HTH
Rick
11-15-2018 05:10 AM
11-15-2018 05:56 AM
Hello
So as the others have stated no command feature exist for this however those two commands I originally posted will easily allow you check is if your missing a vlan as they list the vlan -ids sequentially
11-14-2018 10:17 PM
Hi,
I agree with @Richard Burts there is no such command but I want to add a new suggestion to go with VTP feature. It will decrease your headache of VLAN configuration on each switch.
Regards,
Deepak Kumar
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide