Table Of Contents
Managing VDCs
Information About Managing VDCs
Interface Allocation
VDC Resource Limits
HA Policies
Saving All VDC Configurations to the Startup Configuration
Suspending and Resuming VDCs
VDC Reload
MAC Addresses
VDC Boot Order
Licensing Requirements for Managing VDCs
Prerequisites for Managing VDCs
Guidelines and Limitations for Managing VDCs
Managing VDCs
Changing the Nondefault VDC Prompt Format
Allocating Interfaces to an Ethernet VDC
Applying a VDC Resource Template
Changing VDC Resource Limits
Displaying Example for show vdc detail Output
Changing the HA Policies
Saving VDC Configurations
Suspending a Nondefault VDC
Resuming a Nondefault VDC
Reloading a Nondefault VDC
Configuring the VDC Boot Order
Deleting a VDC
Verifying the VDC Configuration
Configuration Examples for VDC Management
Additional References
Related Documents for Managing VDCs
Feature History for Managing VDCs
Managing VDCs
This chapter describes how to manage virtual device contexts (VDCs) on Cisco NX-OS devices.
This chapter includes the following sections:
•
Information About Managing VDCs
•
Licensing Requirements for Managing VDCs
•
Prerequisites for Managing VDCs
•
Guidelines and Limitations for Managing VDCs
•
Managing VDCs
•
Verifying the VDC Configuration
•
Configuration Examples for VDC Management
•
Additional References
•
Feature History for Managing VDCs
Information About Managing VDCs
After you create a VDC, you can change the interface allocation, VDC resource limits, and the single-supervisor and dual-supervisor high availability (HA) policies. You can also save the running configuration of all VDCs on the physical device to the startup configuration.
This section includes the following topics:
•
Interface Allocation
•
VDC Resource Limits
•
HA Policies
•
Saving All VDC Configurations to the Startup Configuration
•
Suspending and Resuming VDCs
•
VDC Reload
•
MAC Addresses
•
VDC Boot Order
Interface Allocation
Note
See the Cisco NX-OS FCoE Configuration Guide for Cisco Nexus 7000 and Cisco MDS 9500 Guide for information on allocating interfaces for storage VDCs and FCoE.
When you create a VDC, you can allocate I/O interfaces to the VDC. Later, the deployment of your physical device might change, and you can reallocate the interfaces as necessary.
Note
Beginning with Cisco Release 5.2(1) for Nexus 7000 Series devices, all members of a port group are automatically allocated to the VDC when you allocate an interface.
The following Cisco Nexus 7000 Series Ethernet modules have the following number of port groups and interfaces:
•
N7K-M202CF-22L (1 interface x 2 port groups = 2 interfaces)—There are no restrictions on the interface allocation between VDCs.
•
N7K-M206FQ-23L (1 interface x 6 port groups = 6 interfaces)—There are no restrictions on the interface allocation between VDCs.
•
N7K-M224XP-23L (1 interface x 24 port groups = 24 interfaces)—There are no restrictions on the interface allocation between VDCs.
•
N7K-M108X2-12L (1 interface x 8 port groups = 8 interfaces)—There are no restrictions on the interface allocation between VDCs.
•
N7K-M148GS-11L, N7K-M148GT-11, N7K-M148GT-11L, and N7K-M148GS-11 (12 interfaces x 4 port groups = 48 interfaces)—There are no restrictions on the interface allocation between VDCs, but we recommend that interfaces that belong to the same port group be in a single VDC.
•
N7K-M132XP-12 (4 interfaces x 8 port groups = 32 interfaces)—Interfaces belonging to the same port group must belong to the same VDC. See the example for this module in Figure 5-1.
•
N7K-M148GT-11L (same as non-L M148) (1 interface x 48 port groups = 48 interfaces)—There are no restrictions on the interface allocation between VDCs.
•
N7K-M132XP-12L (same as non-L M132) (1 interface x 8 port groups = 8 interfaces)—All M132 cards require allocation in groups of 4 ports and you can configure 8 port groups.
Figure 5-1 Example Interface Allocation for Port Groups on the Cisco Nexus 7000 Series 10-Gbps Ethernet Module N7K-M132XP-12
Table 5-1 shows the port numbering for the port groups.
Table 5-1 Port Numbers for Port Groups on the Cisco Nexus 7000 Series 10-Gbps Ethernet Module N7K-M132XP-12
Port Group
|
Port Numbers
|
Group 1
|
1, 3, 5, 7
|
Group 2
|
2, 4, 6, 8
|
Group 3
|
9, 11, 13, 15
|
Group 4
|
10, 12, 14, 16
|
Group 5
|
17, 19, 21, 23
|
Group 6
|
18, 20, 22, 24
|
Group 7
|
25, 27, 29, 31
|
Group 8
|
26, 28, 30, 32
|
On the Cisco Nexus 7000 Series 32-port, 10-Gbps Ethernet module N7K-F132XP-15, you must allocate the interfaces on your physical device in the specified combination. This module has 16 port groups that consist of 2 ports each (2 interfaces x 16 port groups = 32 interfaces). Interfaces belonging to the same port group must belong to the same VDC (see Figure 5-2).
Note
You can configure the limit-resource module-type command only from the VDC configuration mode and not from a VDC resource template.
Figure 5-2 Example Interface Allocation for Port Groups on the Cisco Nexus 7000 Series 10-Gbps Ethernet Module N7K-F132XP-15
Table 5-2 shows the port numbering for the port groups.
Table 5-2 Port Numbers for Port Groups on the Cisco Nexus 7000 Series 10-Gbps Ethernet Module N7K-F132XP-15
Port Group
|
Port Numbers
|
Group 1
|
1 and 2
|
Group 2
|
3 and 4
|
Group 3
|
5 and 6
|
Group 4
|
7 and 8
|
Group 5
|
9 and 10
|
Group 6
|
11 and 12
|
Group 7
|
13 and 14
|
Group 8
|
15 and 16
|
Group 9
|
17 and 18
|
Group 10
|
19 and 20
|
Group 11
|
21 and 22
|
Group 12
|
23 and 24
|
Group 13
|
25 and 26
|
Group 14
|
27 and 28
|
Group 15
|
29 and 30
|
Group 16
|
31 and 32
|
On the Cisco Nexus 7000 Series 48-port, 10-Gbps Ethernet module N7K-F248XP-25[E], you must allocate the interfaces on your physical device in the specified combination. This module has 12 port groups that consist of 4 ports each (4 interfaces x 12 port groups = 48 interfaces). Interfaces belonging to the same port group must belong to the same VDC (see Figure 5-3).
Figure 5-3 Example Interface Allocation for Port Groups on the Cisco Nexus 7000 Series 10-Gbps Ethernet Module N7K-F248XP-25[E]
Table 5-3 shows the port numbering for the port groups.
Table 5-3 Port Numbers for Port Groups on the Cisco Nexus 7000 Series 10-Gbps Ethernet Module N7K-F248XP-25[E]
Port Group
|
Port Numbers
|
Group 1
|
1, 2, 3, 4
|
Group 2
|
5, 6, 7, 8
|
Group 3
|
9, 10, 11, 12
|
Group 4
|
13, 14, 15, 16
|
Group 5
|
17, 18, 19, 20
|
Group 6
|
21, 22, 23, 24
|
Group 7
|
25, 26, 27, 28
|
Group 8
|
29, 30, 31, 32
|
Group 9
|
33, 34, 35, 36
|
Group 10
|
37, 38, 39, 40
|
Group 11
|
41, 42, 43, 44
|
Group 12
|
45, 46, 47, 48
|
For more information about port groups on the Cisco Nexus 7000 Series 10-Gbps Ethernet modules, see the Cisco Nexus 7000 Series Hardware Installation and Reference Guide.
Note
When you add or delete interfaces, the Cisco NX-OS software removes the configuration and disables the interfaces.
When interfaces in different VDCs share the same port ASIC, reloading the VDC (with the reload vdc command) or provisioning interfaces to the VDC (with the allocate interface command) might cause short traffic disruptions (of 1 to 2 seconds) for these interfaces. If such behavior is undesirable, make sure to allocate all interfaces on the same port ASIC to the same VDC.
To see how the interfaces are mapping to the port ASIC, use this command:
# slot slot_number show hardware internal dev-port-map
+--------------------------------------------------------------+
+-----------+++FRONT PANEL PORT TO ASIC INSTANCE MAP+++--------+
+--------------------------------------------------------------+
FP port|PHYS |SECUR |MAC_0 |RWR_0 |L2LKP |L3LKP |QUEUE |SWICHF
The interface number is listed in the FP port column, and the port ASIC number is listed in the MAC_0 column, which means that in the above example, interfaces 1 through 12 share the same port ASIC (0).
VDC Resource Limits
You can change the resource limits for your VDC individually or by applying a VDC resource template as your needs change. You can change the following limits for the following resources:
•
IPv4 multicast route memory
•
IPv6 multicast route memory
•
IPv4 unicast route memory
•
IPv6 unicast route memory
•
Port channels
•
Switched Port Analyzer (SPAN) monitor sessions
•
VLANs
•
Virtual routing and forwarding instances (VRFs)
HA Policies
The HA policy determines the action that the physical device takes when the VDC encounters an unrecoverable field. You can change the HA policy for the VDC that was specified when you created the VDC.
Note
You cannot change the HA policies for the default VDC.
Saving All VDC Configurations to the Startup Configuration
From the VDC, a user with the vdc-admin or network-admin role can save the VDC configuration to the startup configuration. However, you might want to save the configuration of all VDCs to the startup configuration from the default VDC.
Suspending and Resuming VDCs
Users with the network-admin role can suspend and resume a nondefault VDC. You must save the VDC running configuration to the startup configuration before suspending the VDC. Otherwise, you will lose the changes to the running configuration when you resume the VDC. You cannot remove interfaces allocated to a suspended VDC. All other resources in use by the VDC are released while the VDC is suspended.
Note
You cannot perform an in-service software upgrade (ISSU) when a VDC is suspended.
Note
You cannot suspend the default VDC.
Caution 
Suspending a VDC disrupts all traffic on the VDC.
VDC Reload
You can load an active nondefault VDC that is in any state. The impact of reloading a nondefault VDC is similar to reloading a physical device. The VDC reloads using the startup configuration.
Note
You cannot reload the default or admin VDC.
Caution 
Reloading a VDC disrupts all traffic on the VDC.
MAC Addresses
The default VDC has a management MAC address. Beginning with Cisco Release 5.2(1) for the Cisco Nexus 7000 Series devices, subsequent nondefault VDCs that you create are assigned MAC addresses automatically as part of the bootup process.
You will see a syslog message if there are not sufficient MAC addresses to supply all the VDCs on the device.
VDC Boot Order
You can specify the boot order for the VDCs on the Cisco NX-OS device. By default, all VDCs start in parallel with no guarantee as to which VDC completes starting first. Using the boot order value, the Cisco NX-OS software starts the VDCs in a predictable sequence. The boot order feature has the following characteristics:
•
More than VDC can have the same boot order value. By default, all VDCs have the boot order value of 1.
•
VDCs with the lowest boot order value boot first.
•
The Cisco NX-OS software starts all VDCs with the same boot order value followed by the VDCs with the next highest boot order value.
•
The Cisco NX-OS software starts VDCs that have the same boot order value in parallel.
•
You cannot change the boot order for the default VDC; you can change the boot order only for nondefault VDCs.
Licensing Requirements for Managing VDCs
Refer to the Table 4-4 for VDC licensing requirements.
Prerequisites for Managing VDCs
VDC management has the following prerequisites:
•
You must have the network-admin user role.
•
You must log in to the default VDC.
Guidelines and Limitations for Managing VDCs
VDC management has the following configuration guidelines and limitations:
•
Only users with the network-admin user role can manage VDCs.
•
You can change VDCs only from the default VDC.
•
If sufficient MAC addresses to program the management port of all the nondefault VDCs are unavailable, do not program the MAC address in any of the nondefault VDCs.
•
A syslog message is generated if sufficient MAC addresses are unavailable to program the management port in all VDCs.
•
When a hardware issue occurs, syslog messages are sent to all VDCs.
•
When you have back-to-back connected interfaces in two different Virtual and Routine Forwarding Instances (VRFs) within the same VDC, the Address Resolution Protocol (ARP) fails to complete and packet drops occur because the VRFs obtain their own source MAC addresses. If you need two interfaces on the same VDC with different VRFs, assign a static MAC address to the VRF interfaces.
Managing VDCs
This section includes the following topics:
•
Changing the Nondefault VDC Prompt Format
•
Allocating Interfaces to an Ethernet VDC
•
Applying a VDC Resource Template
•
Changing VDC Resource Limits
•
Displaying Example for show vdc detail Output
•
Changing the HA Policies
•
Saving VDC Configurations
•
Suspending a Nondefault VDC
•
Resuming a Nondefault VDC
•
Reloading a Nondefault VDC
•
Configuring the VDC Boot Order
•
Deleting a VDC
Changing the Nondefault VDC Prompt Format
You can change the format of the CLI prompt for nondefault VDCs. By default, the prompt format is a combination of the default VDC name and the nondefault VDC name. You can change the prompt to only contain the nondefault VDC name.
BEFORE YOU BEGIN
Log in to the default VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
config t
2.
[no] vdc combined-hostname
3.
(Optional) copy running-config startup-config vdc-all
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
config t
Example:
switch# config t
switch(config)#
|
Enters configuration mode.
|
Step 2
|
[no] vdc combined-hostname
Example:
switch(config)# no vdc combined-hostname
|
Changes the format of the CLI prompt for the nondefault VDC. To change the prompt to show only the nondefault VDC name, use the no format of the command. By default, the CLI prompt for a nondefault VDC consists of the default VDC name and the nondefault VDC name.
|
Step 3
|
copy running-config startup-config
vdc-all
Example:
switch(config)# copy running-config
startup-config vdc-all
|
(Optional) Copies the running configuration for all the VDCs to the startup configuration. If you disable the combined hostname, this command prevents the VDC names from reverting back to their original format (with combined hostnames) after the running configuration is saved and the system is reloaded. Enter this command after turning off the combined hostname.
|
Allocating Interfaces to an Ethernet VDC
Note
See the Cisco NX-OS FCoE Configuration Guide for Cisco Nexus 7000 and Cisco MDS 9500 for information on allocating interfaces to storage VDCs for FCoE.
You can allocate one or more interfaces to a VDC. When you allocate an interface, you move it from one VDC to another VDC. The interfaces are in the down state after you move them.
Note
When you allocate an interface, all configuration on the interface is lost.
Note
Beginning with Cisco Release 5.2(1) for Nexus 7000 Series devices, all members of a port group are automatically allocated to the VDC when you allocate an interface.
BEFORE YOU BEGIN
Log in to the default VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
config t
2.
vdc vdc-name
3.
show vdc membership [status]
4.
[no] allocate interface ethernet slot/port
[no] allocate interface ethernet slot/port - last-port
[no] allocate interface ethernet slot/port, ethernet slot/port, ...
5.
exit
6.
(Optional) show vdc membership [status]
7.
(Optional) copy running-config startup-config
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
config t
Example:
switch# config t
switch(config)#
|
Enters configuration mode.
|
Step 2
|
vdc vdc-name
Example:
switch(config)# vdc Engineering
switch(config-vdc)#
|
Specifies a VDC and enters VDC configuration mode.
|
Step 3
|
show vdc membership [status]
Example:
switch(config-vdc)# show vdc membership
|
(Optional) Displays the status of VDC interface membership.
|
Step 4
|
[no] allocate interface ethernet
slot/port
Example:
switch(config-vdc)# allocate interface
ethernet 2/1
Moving ports will cause all config
associated to them in source vdc to be
removed. Are you sure you want to move
the ports? [yes] yes
|
Allocates one interface to the VDC.
Beginning with Cisco NX-OS Release 6.1(1), you can use the no allocate interface ethernet command to remove the interface from the VDC and place it in an unallocated pool.
|
[no] allocate interface ethernet
slot/port - last-port
Example:
switch(config-vdc)# allocate interface
ethernet 2/1 - 4
Moving ports will cause all config
associated to them in source vdc to be
removed. Are you sure you want to move
the ports? [yes] yes
|
Allocates a range of interfaces on the same module to the VDC.
|
[no] allocate interface ethernet
slot/port, ethernet slot/port, ...
Example:
switch(config-vdc)# allocate interface
ethernet 2/1, ethernet 2/3, ethernet 2/5
Moving ports will cause all config
associated to them in source vdc to be
removed. Are you sure you want to move
the ports? [yes] yes
|
Allocates a list of interfaces to the VDC.
|
Step 5
|
exit
Example:
switch(config-vdc)# exit
switch(config)#
|
Exits VDC configuration mode.
|
Step 6
|
show vdc membership [status]
Example:
switch(config)# show vdc membership
|
(Optional) Displays VDC interface membership information.
|
Step 7
|
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
|
(Optional) Copies the running configuration to the startup configuration.
Note After you add an interface to a VDC, you must copy the default VDC running configuration to the startup configuration before users can copy the changed VDC running configuration to the startup configuration.
|
Applying a VDC Resource Template
You can change the VDC resource limits by applying a new VDC resource template. Changes to the limits take effect immediately except for the IPv4 and IPv6 route memory limits, which take effect after the next VDC reset, physical device reload, or physical device stateful switchover.
BEFORE YOU BEGIN
Log in to the default VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
config t
2.
show vdc resource detail
3.
vdc vdc-name
4.
template template-name
5.
exit
6.
(Optional) show vdc vdc-name resource
7.
(Optional) copy running-config startup-config
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
config t
Example:
switch# config t
switch(config)#
|
Enters configuration mode.
|
Step 2
|
show vdc resource detail
Example:
switch(config)# show vdc resource detail
|
(Optional) Displays the resource information for all VDCs.
|
Step 3
|
vdc vdc-name
Example:
switch(config)# vdc Engineering
switch(config-vdc)#
|
Specifies a VDC and enters VDC configuration mode.
|
Step 4
|
template template-name
Example:
switch(config-vdc)# template MyTemplate
|
Applies a new resource template for the VDC.
|
Step 5
|
exit
Example:
switch(config-vdc)# exit
switch(config)#
|
Exits VDC configuration mode.
|
Step 6
|
show vdc vdc-name resource
Example:
switch(config)# show vdc MyVDC resource
|
(Optional) Displays the resource information for a specific VDC.
|
Step 7
|
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
|
(Optional) Copies the running configuration to the startup configuration.
|
Changing VDC Resource Limits
You can change the limits on the VDC resources. Changes to the limits take effect immediately except for the IPv4 and IPv6 routing table memory limits, which take effect after the next VDC reset, physical device reload, or physical device stateful switchover.
Note
You can set only one value for the multicast and unicast route memory resources maximum and minimum limits. If you specify a minimum limit, that is the value for both the minimum and maximum limits and the maximum limit is ignored. If you specify only a maximum limit, that is the value for both the minimum and maximum limits.
Beginning with Cisco NX-OS Release 6.1, CPU shares are used to control the CPU resources among the VDCs by allowing you to prioritize VDC access to the CPU during CPU contention. CPU shares are supported on Supervisor 2 modules only. You can also configure the number of CPU shares on a VDC. For example, a VDC with 10 CPU shares gets twice the CPU time compared to a VDC that has 5 CPU shares.
Some features require that all modules in a chassis be of a certain type. Beginning with Cisco NX-OS Release 6.1(3), you can apply the switchwide VDC mode to prevent accidental insertion of a module or to restrict certain line cards from powering on in the system. For example, the result bundle hashing (RBH) modulo feature does not operate with M Series modules in the system. Use the system module-type command to apply the switchwide VDC mode. This command controls which line cards are allowed in the chassis. Otherwise widespread disruption is caused within a VDC.
Note
The modules that you do not enable must not be powered on after you configure this feature and enter yes. An error message will force you to manually disable these modules before proceeding. This is to prevent major disruption and service issues within a VDC.
Note
Refer to the Cisco Nexus 7000 Verified Scalability Guide to see the maximum number of supported SPAN sessions.
BEFORE YOU BEGIN
Log in to the default VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
config t
2.
[no] system module-type module-type
3.
(Optional) show vdc
4.
(Optional) show vdc resource detail
5.
vdc vdc-name
6.
limit-resource m4route-mem [minimum min-value] maximum max-value
limit-resource m6route-mem [minimum min-value] maximum max-value
limit-resource monitor-session minimum min-value maximum {max-value | equal-to-min}
limit-resource monitor-session-erspan-dst minimum min-value maximum {max-value | equal-to-min}
limit-resource port-channel minimum min-value maximum {max-value | equal-to-min}
limit-resource u4route-mem [minimum min-value] maximum max-value
limit-resource u6route-mem [minimum min-value] maximum max-value
limit-resource vlan minimum min-value maximum {max-value | equal-to-min}
limit-resource vrf minimum min-value maximum {max-value | equal-to-min}
limit-resource module-type module type
7.
cpu-shares shares
8.
show vdc detail
9.
exit
DETAILED STEP
| |
Command
|
Purpose
|
Step 1
|
config t
Example:
switch# config t
switch(config)#
|
Enters configuration mode.
|
Step 2
|
[no]system module-type module-type
Example:
switch(config)# system module-type f1 m1
m2xl
|
Enters switchwide VDC mode. Specifies which modules can be enabled on a chassis. You can enable F1, F2, M1, M1XL and M2XL Series modules. There are no restrictions on the type of mix allowed for the system module-type command. The system module-type command allows a mix of F1, F2, M1, M1XL, and M2XL Series modules in the VDC.
Note The limit-resource module-type command controls the restrictions on the module-types that can be mixed in the VDC.
Note Use the system module-type f2 command to allow F2E Series modules into a VDC. The ports from F2 and F2E Series modules can be allocated like any other ports.
Note The modules that you do not enable must not be powered on after you configure this feature and enter yes. An error message will force you to manually disable these modules before proceeding. This prevents major disruption and service issues within a VDC.
The no form of this command resets the configuration mode to allow all modules.
|
Step 3
|
show vdc
Example:
switch(config)# show vdc
Switchwide mode is m1 f1 m1xl
vdc_id vdc_name state mac
------ -------- ----- ----------
1 switch active 00:18:ba:d8:80:51
lc
------
m1 f1 m1xl
|
(Optional) Shows which modules are enabled in the chassis.
|
Step 4
|
show vdc resource detail
Example:
switch(config)# show vdc resource detail
|
(Optional) Displays the resource information for all VDCs.
|
Step 5
|
vdc vdc-name
Example:
switch(config)# vdc Engineering
switch(config-vdc)#
|
Specifies a VDC and enters VDC configuration mode.
|
Step 6
|
limit-resource m4route-mem [minimum
min-value] maximum max-value
Example:
switch(config-vdc)# limit-resource
m4route-mem minimum 4 maximum 40
|
Specifies the minimum and maximum limits for IPv4 multicast route memory in megabytes. The range is from 1 to 90.
|
|
limit-resource m6route-mem [minimum
min-value] maximum max-value
Example:
switch(config-vdc)# limit-resource
m6route-mem minimum 4 maximum 12
|
Specifies the minimum and maximum limits for IPv6 multicast route memory in megabytes. The range is from 1 to 20.
|
|
limit-resource monitor-session minimum
min-value maximum {max-value |
equal-to-min}
Example:
switch(config-vdc)# limit-resource
monitor-session minimum 0 maximum 1
|
Configures the SPAN monitor session resource limits. The range is from 0 to 2. The equal-to-min keyword automatically sets the maximum limit equal to the minimum limit.
Note You can have a maximum of two SPAN monitoring sessions on your physical device.
|
|
limit-resource
monitor-session-erspan-dst minimum
min-value maximum {max-value |
equal-to-min}
Example:
switch(config-vdc)# limit-resource
monitor-session-erspan-dst minimum 2
maximum 10
|
Configures the ERSPAN monitor session resource limits. The range is from 0 to 23. The equal-to-min keyword automatically sets the maximum limit equal to the minimum limit.
|
|
limit-resource port-channel minimum
min-value maximum {max-value |
equal-to-min}
Example:
switch(config-vdc)# limit-resource
port-channel minimum 0 maximum 128
|
Configures the port-channel resource limits. The range is from 0 to 768. The equal-to-min keyword automatically sets the maximum limit equal to the minimum limit.
|
|
limit-resource u4route-mem [minimum
min-value] maximum max-value
Example:
switch(config-vdc)# limit-resource
u4route-mem minimum 16 maximum 40
|
Specifies the minimum and maximum limits for IPv4 unicast route memory in megabytes. The range is from 1 to 250.
|
|
limit-resource u6route-mem [minimum
min-value] maximum max-value
Example:
switch(config-vdc)# limit-resource
u6route-mem minimum 16 maximum 32
|
Specifies the minimum and maximum limits for IPv6 unicast route memory in megabytes. The range is from 1 to 100.
|
|
limit-resource vlan minimum min-value
maximum {max-value | equal-to-min}
Example:
switch(config-vdc)# limit-resource vlan
minimum 24 maximum 2056
|
Configures the VLAN resource limits. The range is from 16 to 4094. The equal-to-min keyword automatically sets the maximum limit equal to the minimum limit.
|
|
limit-resource vrf minimum min-value
maximum {max-value | equal-to-min}
Example:
switch(config-vdc)# limit-resource vrf
minimum 32 maximum 1000
|
Configures the VRF resource limits. The VRF minimum and maximum range is from 2 to 1000. The equal-to-min keyword automatically sets the maximum limit equal to the minimum limit.
|
|
limit-resource module-type module type
Example:
switch(config-vdc)# limit-resource
module-type m1 f1
|
Configures the specified line card type. VDCs support the F1, F2, F2E, M1, M1XL, and M2XL Series module types.
Note The limit-resource module-type command allows a mix of F1, M1, M1XL, and M2XL Series modules in the VDC.
Note F2 and F2E Series modules cannot exist in the same VDC with F1, M1, M1XL, and M2XL Series modules. Use the limit-resource module-type f2 command to allow only F2 or F2E Series modules into a VDC. The ports from F2 and F2E Series modules can be allocated like any other ports.
|
Step 7
|
cpu-shares shares
Example:
switch(config-vdc)# cpu-shares 10
|
Sets the number of CPU shares on a VDC. The range is from 1 to 10. For example, a VDC with 10 CPU shares gets twice the CPU time compared to a VDC that has 5 CPU shares.
|
Step 8
|
show vdc detail
Example:
switch(config)# show vdc detail
|
(Optional) Displays the CPU shares on a VDC.
|
Step 9
|
exit
Example:
switch(config-vdc)# exit
switch(config)#
|
Exits VDC configuration mode.
|
Step 10
|
show vdc vdc-name resource
Example:
switch(config)# show vdc MyVDC resource
|
(Optional) Displays the VDC resource information.
|
Step 11
|
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
|
(Optional) Copies the running configuration to the startup configuration. If you disable the combined hostname, this command prevents the VDC names from reverting back to their original format (with combined hostnames) after the running configuration is saved and the system is reloaded. Enter this command after turning off the combined hostname.
|
S
Displaying Example for show vdc detail Output
The following example displays the output of show vdc detail command:
vdc mac address: 00:26:51:cb:bf:41
vdc dual-sup ha policy: SWITCHOVER
CPU Share Percentage: 22%
vdc create time: Wed Jul 18 18:08:15 2012
vdc supported linecards: None
vdc mac address: 00:26:51:cb:bf:42
vdc dual-sup ha policy: SWITCHOVER
CPU Share Percentage: 45%
vdc create time: Wed Jul 18 18:17:14 2012
vdc supported linecards: m1 f1 m1xl m2xl
vdc mac address: 00:26:51:cb:bf:43
vdc dual-sup ha policy: SWITCHOVER
CPU Share Percentage: 31%
vdc create time: Wed Jul 18 18:29:51 2012
vdc supported linecards: m1 f1 m1xl m2xl
Changing the HA Policies
You can change the HA policies for a VDC. The VDC HA policies are as follows:
•
Dual supervisor modules:
–
Bringdown—Puts the VDC in the failed state.
–
Restart—Restarts the VDC. This process includes shutting down all the interfaces within that VDC and stopping all the virtualized services processes. The Cisco NX-OS software restarts all the virtualized services saved in the startup configuration and brings the interfaces back up with the configuration saved in the startup configuration. Any configuration that you did not save in the startup configuration prior to the restart is lost.
–
Switchover—Initiates a supervisor module switchover.
•
Single supervisor modules:
–
Bringdown—Puts the VDC in the failed state.
–
Reload—Reloads the supervisor module.
Caution 
With the reload action, any configuration that you did not save in the startup configuration prior to the reload is lost.
Note
The reload action affects all interfaces and all VDCs on the physical device.
–
Restart—Restarts the VDC. This process includes shutting down all the interfaces within that VDC and stopping all the virtualized services processes. The Cisco NX-OS software restarts all the virtualized services saved in the startup configuration and brings the interfaces back up with the configuration saved in the startup configuration. Any configuration that you did not save in the startup configuration prior to the restart is lost.
Caution 
With the reload action, any configuration that you did not save in the startup configuration prior to the reload is lost.
Note
You cannot change the HA policies for the default VDC.
BEFORE YOU BEGIN
Log in to the default VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
config t
2.
vdc vdc-name
3.
ha-policy {dual-sup {bringdown | restart | switchover} | single-sup {bringdown | reload | restart}}
4.
exit
5.
(Optional) show vdc detail
6.
(Optional) copy running-config startup-config
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
config t
Example:
switch# config t
switch(config)#
|
Enters global configuration mode.
|
Step 2
|
vdc vdc-name
Example:
switch(config)# vdc Engineering
switch(config-vdc)#
|
Specifies a VDC and enters VDC configuration mode.
|
Step 3
|
ha-policy {dual-sup {bringdown | restart
| switchover} | single-sup {bringdown |
reload | restart}}
|
Configures the HA policy for the VDC. The dual-sup and single-sup keyword values are as follows:
• bringdown—Puts the VDC in the failed state.
• reload— Initiates a supervisor module switchover for physical devices with two supervisor modules, or reloads physical devices with one supervisor module.
• restart—Takes down the VDC processes and interfaces and restarts it using the startup configuration.
• switchover—Initiates a supervisor module switchover.
Note You cannot change the HA policies for the default VDC.
|
Step 4
|
exit
Example:
switch(config-vdc)# exit
switch(config)#
|
Exits VDC configuration mode.
|
Step 5
|
show vdc detail
Example:
switch(config)# show vdc detail
|
(Optional) Displays VDC status information.
|
Step 6
|
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
|
(Optional) Copies the running configuration to the startup configuration.
|
Saving VDC Configurations
You can save the configuration of all the VDCs on the physical device to the startup configuration.
BEFORE YOU BEGIN
Log in to the default VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
switchto vdc vdc-name
2.
copy running-config startup-config
3.
switchback
4.
copy running-config startup-config vdc-all
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
switchto vdc vdc-name
Example:
switch# switchto vdc TestVDC
switch-TestVDC#
|
Switches to the nondefault VDC.
|
Step 2
|
copy running-config startup-config
Example:
switch-TestVDC# copy running-config
startup-config
|
Copies the running configuration for the VDC to the startup configuration.
|
Step 3
|
switchback
Example:
switch-TestVDC# switchback
switch#
|
Switches back to the default VDC.
|
Step 4
|
copy running-config startup-config
vdc-all
Example:
switch# copy running-config
startup-config vdc-all
|
Copies the running configuration for all the VDCs to the startup configuration.
|
Suspending a Nondefault VDC
You can suspend an active nondefault VDC. You must save the VDC running configuration to the startup configuration before suspending the VDC. Otherwise, you will lose the changes to the running configuration.
Note
You cannot suspend the default and admin VDC.
Caution 
Suspending a VDC disrupts all traffic on the VDC.
BEFORE YOU BEGIN
Log in to the default VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
copy running-config startup-config vdc-all
2.
config t
3.
vdc vdc-name suspend
| |
Command
|
Purpose
|
Step 1
|
copy running-config startup-config
vdc-all
Example:
switch# copy running-config
startup-config vdc-all
|
Copies the running configuration for all the VDCs to the startup configuration.
|
Step 2
|
config t
Example:
switch# config t
switch(config)#
|
Enters global configuration mode.
|
Step 3
|
vdc vdc-name suspend
Example:
switch(config)# vdc TestVDC suspend
|
Suspends a nondefault VDC.
|
DETAILED STEPS
Resuming a Nondefault VDC
You can resume a nondefault VDC from the suspended state. The VDC resumes with the configuration saved in the startup configuration.
BEFORE YOU BEGIN
Log in to the default VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
config t
2.
no vdc vdc-name suspend
| |
Command
|
Purpose
|
Step 1
|
config t
Example:
switch# config t
switch(config)#
|
Enters global configuration mode.
|
Step 2
|
no vdc vdc-name suspend
Example:
switch(config)# no vdc TestVDC suspend
|
Resumes a suspended nondefault VDC.
|
DETAILED STEPS
Reloading a Nondefault VDC
You can load a nondefault VDC that is in a failed state. The VDC reloads using the startup configuration.
Note
Use the reload command to reload the default VDC. Reloading the default VDC reloads all VDCs on the Cisco NX-OS device.
Caution 
Reloading a VDC disrupts all traffic on the VDC.
BEFORE YOU BEGIN
Log in to the nondefault VDC with a username that has the vdc-admin user role or use the switchto vdc command from the default VDC to access the nondefault VDC.
SUMMARY STEPS
1.
copy running-config startup-config vdc-all
2.
reload vdc
| |
Command
|
Purpose
|
Step 1
|
copy running-config startup-config
Example:
switch-TestVDC# copy running-config
startup-config
|
Copies the running configuration for the nondefault VDC to the startup configuration.
|
Step 2
|
reload vdc
Example:
switch-TestVDC# reload vdc
|
Reloads a nondefault VDC.
|
DETAILED STEPS
Configuring the VDC Boot Order
You can configure the boot order for the VDCs on your Cisco NX-OS device.
Note
You cannot change the boot order of the default VDC.
BEFORE YOU BEGIN
Log in to the default VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
config t
2.
vdc vdc-name
3.
boot-order number
4.
exit
5.
(Optional) show vdc detail
6.
copy running-config startup-config vdc-all
| |
Command
|
Purpose
|
Step 1
|
config t
Example:
switch# config t
switch(config)#
|
Enters global configuration mode.
|
Step 2
|
vdc vdc-name
Example:
switch(config)# vdc Engineering
switch(config-vdc)#
|
Specifies a VDC and enters VDC configuration mode.
|
Step 3
|
boot-order number
Example:
switch(config-vdc) boot-order 2
|
Configures the boot order value for the VDC. The range for the number argument is from 1 to 4. The VDC starts from the lowest to the highest boot order value.
You cannot change the boot order for the default VDC.
|
Step 4
|
exit
Example:
switch(config-vdc)# exit
switch(config)#
|
Exits VDC configuration mode.
|
Step 5
|
show vdc detail
Example:
switch(config)# show vdc detail
|
(Optional) Displays VDC status information.
|
Step 6
|
copy running-config startup-config
vdc-all
Example:
switch(config)# copy running-config
startup-config vdc-all
|
Copies the running configuration for all the VDCs to the startup configuration.
|
DETAILED STEPS
Deleting a VDC
When you delete a VDC, the ports on the VDC are moved to unallocated interfaces. To allocate the interfaces back to the VDC, see the "Allocating Interfaces to an Ethernet VDC" section.
Note
You cannot delete the default VDC (VDC 1)and the admin VDC.
Caution 
Deleting a VDC disrupts all traffic on the VDC.
BEFORE YOU BEGIN
Log in to the default or admin VDC with a username that has the network-admin user role.
SUMMARY STEPS
1.
config t
2.
no vdc vdc-name
3.
exit
4.
(Optional) show vdc
5.
copy running-config startup-config
DETAILED STEPS
| |
Command
|
Purpose
|
Step 1
|
config t
Example:
switch# config t
switch(config)#
|
Enters global configuration mode.
|
Step 2
|
no vdc vdc-name
Example:
switch(config)# no vdc NewVDC
Deleting this vdc will remove its config.
Continue deleting this vdc? [yes] yes
|
Removes the VDC.
Caution  Deleting a VDC disrupts all traffic on the VDC and removes all configuration on all the interfaces allocated to the VDC.
|
Step 3
|
exit
Example:
switch(config)# exit
switch#
|
Exits VDC configuration mode.
|
Step 4
|
show vdc
Example:
switch# show vdc
|
(Optional) Copies the running configuration to the startup configuration.
|
Step 5
|
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
|
Copies the running configuration to the startup configuration.
|
Verifying the VDC Configuration
To display the VDC configuration, perform one of the following tasks:
Command
|
Purpose
|
show running-config {vdc | vdc-all}
|
Displays the VDC information in the running configuration.
|
show vdc [vdc-name]
|
Displays the VDC configuration information.
|
show vdc detail
|
Displays the detailed information about many VDC parameters.
|
show vdc current-vdc
|
Displays the current VDC number.
|
show vdc membership [status]
|
Displays the VDC interface membership information.
|
show vdc resource template
|
Displays the VDC template configuration.
|
show resource
|
Displays the VDC resource configuration for the current VDC.
|
show vdc [vdc-name] resource [resource-name]
|
Displays the VDC resource configuration for all VDCs.
|
show mac vdc {vdc_id}
|
Displays the MAC address for a specific VDC.
|
For detailed information about the fields in the output from these commands, see the Cisco Nexus 7000 Series NX-OS Virtual Device Context Command Reference.
Configuration Examples for VDC Management
The following example shows how to allocate interfaces between VDCs for port groups on a Cisco Nexus 7000 Series 32-port, 10-Gbps Ethernet module as described in Figure 5-1.
Note
VDC-A is the default VDC.
allocate interfaces ethernet 2/2, ethernet 2/4, ethernet 2/6, ethernet 2/8
allocate interfaces ethernet 2/9, ethernet 2/11, ethernet 2/13, ethernet 2/15
allocate interfaces ethernet 2/10, ethernet 2/12, ethernet 2/14, ethernet 2/16
allocate interfaces ethernet 2/17, ethernet 2/19, ethernet 2/21, ethernet 2/23
allocate interfaces ethernet 2/18, ethernet 2/20, ethernet 2/22, ethernet 2/24
allocate interfaces ethernet 2/25, ethernet 2/27, ethernet 2/29, ethernet 2/30
Additional References
For additional information related to managing VDCs, see the following sections:
•
Related Documents for Managing VDCs
Related Documents for Managing VDCs
Related Topic
|
Document Title
|
Cisco NX-OS licensing
|
Cisco NX-OS Licensing Guide
|
Cisco Nexus 7000 Series 32-port, 10-Gbps Ethernet modules
|
Cisco Nexus 7000 Series Hardware Installation and Reference Guide
|
Command reference
|
Cisco Nexus 7000 Series NX-OS Virtual Device Context Command Reference
|
FCoE commands
|
Cisco NX-OS FCoE Command Reference for Cisco Nexus 7000 and Cisco MDS 9500
|
Feature History for Managing VDCs
Table 5-4 lists the release history for this feature.
Table 5-4 Feature History for Managing VDC
Feature Name
|
Releases
|
Feature Information
|
Switchwide VDC mode
|
6.1(3)
|
Added the ability to enable specific line cards in the chassis and prevent others from powering on.
|
Support for F2E Series modules
|
6.1(2)
|
Added support for F2E Series modules as part of the F2 Series modules.
|
Support for Supervisor 2 and M2 Series modules.
|
6.1(1)
|
Added support for Supervisor 2 and M2 Series modules.
|
CPU shares
|
6.1(1)
|
Added support for CPU shares on a VDC.
|
VDC resource limits
|
6.0(1)
|
Added support for F2 Series modules.
|
MAC addresses
|
5.2(1)
|
The default VDC has a MAC address, and subsequent nondefault VDCs that are created are assigned MAC addresses.
|
VDC resource limits
|
5.2(1)
|
Added support for M1XL Series modules.
|
N7K-F132XP-15 module
|
5.1(1)
|
Added support for the N7K-F132XP-15 module.
|
VDC resource limits
|
5.1(1)
|
Added the ability to configure ERSPAN monitor session resource limits.
|
VDC resource limits
|
5.0(2)
|
The range for the minimum and maximum values changed for the limit-resource m4route-mem, limit-resource m6route-mem, limit-resource u4route-mem, limit-resource u6route-mem, and limit-resource vrf commands.
|
Restarting VDCs
|
4.2(4)
|
The vdc restart command was replaced by the reload vdc command.
|
Suspending and resuming VDCs
|
4.2(1)
|
You can suspend and resume nondefault VDCs.
|
Restarting VDCs
|
4.2(1)
|
You can restart active nondefault VDCs and nondefault VDCs in the failed state.
|
Reloading VDCs
|
4.2(1)
|
You can reload nondefault VDCs.
|
VDC prompt format
|
4.2(1)
|
You can change the format of the CLI prompt for nondefault VDCs.
|
VDC boot order
|
4.2(1)
|
You can configure the boot order for nondefault VDCs.
|
IPv4 unicast route memory resource
|
4.1(2)
|
Changed the default maximum value from 256 to 8.
|
IPv6 unicast route memory resource
|
4.1(2)
|
Changed the default maximum value from 256 to 4.
|
Multicast route memory resources
|
4.1(2)
|
Added IPv4 and IPv6 multicast route memory resources.
|
Port channel resources
|
4.1(2)
|
Changed the default maximum value from 256 to 768.
|
IPv4 unicast route memory resource
|
4.0(2)
|
Changed the default maximum value from 256 to 320.
|
IPv6 unicast route memory resource
|
4.0(2)
|
Changed the default maximum value from 256 to 192.
|