VDC Overview
VDC Overview
§ VDC Overview
§ Q&A
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
Virtual Device Context (VDC) Overview
What are Virtual Device Contexts (VDCs)?
§ What is a switch?
– Control plane, Data plane and Management plane
§ VDCs enable the virtualization of these planes and hardware resources
§ Enables collapsing of multiple logical networks into single physical
infrastructure
§ Helps scale physical resources of device
§ Appropriate for typical silo designs such as: VDC
Prod
–Production, Dev, Test VDC VDC
Extranet DMZ
–Intranet, DMZ, Extranet
–Organization A, B C
–Application A, B, C
–Customer A, B, C
Different network islands virtualized
onto common data center networking
infrastructure
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Virtual Device Contexts (VDCs)
VDC A VDC B
VLAN mgr UDLD OSPF GLBP VDC A VLAN mgr UDLD OSPF GLBP
VDC n
Protocol Stack (IPv4 / IPv6 / L2) Protocol Stack (IPv4 / IPv6 / L2)
Infrastructure
Kernel
§ VDC—Virtual Device Context
– Flexible separation/distribution of Software Components
§ VDCs are not…
– The ability to run different OS levels on the same box
– Flexible separation/distribution of Hardware Resources at the same time
– Securely delineated
– based on a hypervisor model; there is a single
Administrative Contexts
‘infrastructure’ layer that handles H/W programming…
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Virtualization Hierarchy
Where do VDCs reside in the “Big Picture”
Nexus
VDC1 VLAN VLAN VLAN VRF VRF VRF
7000
VLAN VLAN VLAN VRF VRF VRF
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
How Many VDCs Can I have?
§ Supervisor 1 – Four VDCs + 1 Admin VDC*
§ Requires 8GB of RAM
§ Supervisor 2 – Four VDCs + 1 Admin VDC
(4+1)
VDC-1
Admin VDC
..
VDC-4
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public
VDC Details
The Default VDC
– EPLD Upgrade – As directed by TAC or to enable new features STP 802.1X EIGRP IGMP
LACP CTS PIM SNMP
– Ethanalyzer captures – control plane traffic … …
– Feature-set installation for Nexus 2000, FabricPath and FCoE
– Control Plane Policing (CoPP)
– Port Channel load balancing Infrastructure
– Hardware IDS checks control Kernel
– ACL Capture feature enable
§ Default VDC can be used for production traffic with
no issues
– Some customers may choose to reserve it for
administrative functions
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
VDC Details
Non-Default VDC
…
CTS PIM
…
SNMP
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
VDC Details
Admin VDC
Infrastructure
Simplify configuration for data plane VDCs
Kernel
–No boot statements, CoPP policies, etc in non-Admin VDCs
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public
VDC Types
Storage VDC
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
VDC Types
“Module-Type” Modes
M1-F1 Mixed
“Module-Type” Modes
VDC
§ In release 5.1, “module-type” parameter defines
the behavior for each VDC
§ Different I/O module types can be specified:
– m1 – specifies VDC can contain M1 modules M2-XL
– m1-xl – specifies VDC can contain M1-XL modules Only
– m2-xl - specifies VDC can contain M2-XL modules
VDC
– f1 – specifies VDC can contain F1 modules
– f2 – specifies VDC can contain F2 modules
– f2e – specifies VDC can contain F2e modules (NX-OS 6.2)
– f3 – specifies VDC can contain F3 modules (NX-OS 6.2(6))
§ limit-resource module-type m1 m1-xl m2-xl f2e*
(default) – Allows mix of M1, M1-XL, M2 and F3 Only VDC
F2e modules in the VDC
*Default in NX-OS 6.2
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Interface Allocation
Interface Allocation N77-F348XP-25
48 port
10GE
F3 module
Once a port has been assigned to a VDC, all
subsequent configuration is done from within
VDC that VDC VDC
B D
N77-F348XP-25 Requires allocation in port
groups of eight to align ASIC resources.
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public
Interface Allocation
Interface Allocation N7K-F312FQ-25
12 port
40GE
F3 module
Once a port has been assigned to a VDC, all
subsequent configuration is done from within
VDC that VDC VDC
B D
N7K-F312FQ-25 Requires allocation in port
groups of two to align ASIC resources.
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public
Interface Allocation
VDC and Interface Allocation
Entire port-group is not present in the command. Missing ports will be included automatically
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]
§ Note that FEX ports only exist in the VDC where their parent interfaces reside
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
FEX and VDCs
§ FEX feature-set needs to be installed in default or admin VDC once
§ Feature-set fex can then be abled as needed per VDC
§ FEX IDs must be unique across a chassis
§ FEX Host Interfaces (HIFs) belong to the VDC where their parent Network
Interface (NIFs) reside
HIFs NIFs
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
VDC Types
VDC Creation - Ethernet
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
VDC Types
VDC Creation – Ethernet – F2 Module
N7K1-VDC1# conf t
N7K1-VDC1(config)# vdc N7K1-VDC4 limit-resource module-type f2
Note: Creating VDC, one moment please ...
Limiting
N7K1-VDC1(config-vdc)# show vdc
Resources
vdc_id vdc_name state mac type lc
------ -------- ----- ---------- --------- ------
1 N7K1-VDC1 active 00:26:51:c7:34:41 Ethernet m1 f1 m1xl
2 N7K1-VDC2 active 00:26:51:c7:34:42 Ethernet m1 f1 m1xl
3 N7K1-VDC3 active 00:26:51:c7:34:43 Ethernet m1 f1 m1xl
4 N7K1-VDC4 active 00:26:51:c7:34:44 Ethernet f2
vdc id: 4
vdc name: N7K1-VDC4
vdc state: active
vdc mac address: 00:26:51:c7:34:44
vdc ha policy: RESTART
vdc dual-sup ha policy: SWITCHOVER
vdc boot Order: 1
vdc
vdc
create time: Mon May 7 00:12:38 2012
reload count: 0
VDC Details
vdc restart count: 0
vdc type: Ethernet
vdc supported linecards: f2
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
VDC Types
Admin VDC
• Admin VDC is not the default – user must choose to do Admin VDC
§ Manual creation
– Two options for manual creation:
§ Customer already using default VDC as an admin VDC without LAN interfaces and
configurations to preserve other than Mgmt0
§ Customer already using default VDC a data plane VDC with LAN interfaces and
configurations to preserve
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
VDC Types
VDC Creation – Admin – Manual Option 1
Conversion
N7K-1# config
Enter configuration commands, one per line.
N7K-1(config)# system admin-vdc
End with CNTL/Z.
Admin VDC with no line
N7K-1(config)#
card support
Post Conversion
N7K-1(config)# show vdc
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
VDC Types
VDC Creation – Admin – Manual Option 2 - Migration
Prior to conversion
N7K1# show vdc
vdc_id vdc_name state mac type lc
------ -------- ----- ---------- --------- ------
1 N7K1 active 00:26:98:0f:d9:c1 Ethernet m1 f1 m1xl m2xl
2 Agg1 active 00:26:98:0f:d9:c2 Ethernet m1 f1 m1xl m2xl
N7K1# show ip ospf ne
OSPF Process ID 100 VRF default
Total number of neighbors: 1
Neighbor ID Pri State Up Time Address Interface
192.168.100.1 1 FULL/ - 00:02:08 192.168.1.1 Eth4/3
Migration
N7K1# config
Enter configuration commands, one per line. End with CNTL/Z.
N7K1(config)# system admin-vdc migrate core1
2012 Apr 23 14:28:53 N7K1 %$ VDC-1 %$ %VDC_MGR-2-VDC_ONLINE: vdc 3 has come online
Post Conversion
N7K1# show vdc
N7K1-VDC2#
N7K1-VDC1#
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Reload and Suspend VDCs
§ Reload is just like reloading a box – clean boot for that VDC
N7K1-VDC1# reload vdc N7K1-VDC4
§ Suspend performs config save and graceful cleanup before
suspending
N7K1-VDC1# (config-vdc)# vdc N7K1-VDC4 suspend
BRKDCT-2121 © 2014 Cisco and/or its affiliates. All rights reserved. Cisco Public 24