Cisco Nexus Training – Go from Beginner to Advanced!
VDC, VPC, OTV, FRX, and many more…

Virtual Device Contexts (VDC) is a CISCO protocol for Nexus 7000 series, which allow a Nexus switch to be logically segmented into virtul switches. It is similar to SRD on IOS-XR platform, and Context on ASA platform. In this lesson, we will learn how to configure VDC in Cisco Nexus switch.

How to configure VDC in Cisco Nexus switch

hat is the Prerequisite VDC:

  • Require license VDC (default VDC require no license)
  • Only 7000 series capable for VDC

What is the limitation of Cisco Nexus VDC:

  • VDC configurable only on Nexus 7K (7000, 7700) series
  • Supervisor 3E allow 8+1 admin VDC
  • Supervisor 2E allow 8+1 admin VDC
  • N7K Supervisor 2E allow 8+1 admin VDC
  • Supervisor 2 allow 4+1 admin VDC
  • Supervisor 1 allow 4 VDC, No admin VDC
  • Only administrator can create VDC in default VDC

Configuration of VDC in Nexus 7K:

We will configure VDC from global using VDC command.

N7K(config)# vdc CusA

Note:  Creating VDC, one moment please ...

We can verify our VDC using “show vdc” command

N7K(config)# show vdc

vdc_id  vdc_name              state               mac                  type        lc      
------  --------                -----               ----------              ---------   ------  
1       N7K                     active              00:1b:54:c2:66:41   Admin       None    
2       CusA                    active              00:1b:54:c2:66:46   Ethernet    m1 f1 m1xl m2xl

Now we will allocate resources into the vdc.

N7K(config)# vdc CusA
N7K(config-vdc)# allocate interface ethernet 1/10
N7K(config-vdc)# allocate interface ethernet 1/11

Moving ports will cause all config associated to them in source vdc to be removed. 
Are you sure you want to move the  ports (y/n)?  [yes] y

We also can limit resourse usages for our CusA vdc.

N7K(config)# vdc CusA
N7K(config-vdc)# limit-resource port-channel minimum 32 maximum equal-to-min
N7K(config-vdc)# limit-resource u4route-mem minimum 32 maximum equal-to-min
7K(config-vdc)# limit-resource u6route-mem minimum 32 maximum equal-to-min
N7K(config-vdc)# limit-resource vlan minimum 32 maximum equal-to-min
N7K(config-vdc)# limit-resource vrf minimum 32 maximum equal-to-min

For further understanding, please check Cisco Nexus 7K configuration guide for VDC.

Written by Rajib Kumer Das

I am Rajib Kumer Das, a network engineer with 8+ years of experience in multi-vendor environment. In my current position, I am responsible to take care critical projects and it's support cases. I do have several vendor certificates and have plans to go further.

This article has 4 comments

  1. Tom Reply

    One question that’s not clear to me. I understand how you created the vdc. However, when you used the allocate interface command, you didn’t specify which vdc to allocate them to.
    Is that because you only have the default vdc and the CusA VDC??? If you had multiple VDCs, how would you specify which VDC to allocate the interfaces to?

    • Rajib Kumer Das Reply

      Hi Tom, I have specified the VDC. Check, all the commands are under “vdc CusA”.

      To allocate any resources, first you need to go to that VDC. In above example, our VDC is “CusA” and we are allocating interface under that VDC only.

      N7K(config)# vdc CusA
      N7K(config-vdc)# allocate interface ethernet 1/10

      If you have any other VDC, for example “CusB”, then go to that VDC and allocate resources.

      N7K(config)# vdc CusB
      N7K(config-vdc)# allocate interface ethernet 2/5

Leave a Comment

Your email address will not be published. Required fields are marked *