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

Prerequisite:

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

Limitation:

  • VDC configurable only on Nexus 7K (7000, 7700) series
  • Supervisor 3E allow 8+1 admin VDC
  • Supervisor 2E allow 8+1 admin VDC
  • 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 7+ years of experience in multi-vendor environment. In my current company, 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 1 comments

Leave a Comment

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