VDC Properties
Each VDC is treated as standalone device with limited resources
Each VDC will have MAC address assigned to it which uniquely
identifies a VDC in a network
VDC 1 (DEFAULT_VDC) is the “Default Virtual Device Context”.
Ports in system exists in VDC 1 (DEFAULT_VDC) when they are not
assigned to any other VDC
User cannot create/delete default virtual device context
VDC defines the “Software Fault Domain” within a physical switch.
Any service crash in Virtual Device Context doesn’t affect the rest of
the Virtual Device Contexts
VDC can have management domain assigned to it and hence giving
control to user which has appropriate permission for VDC
For VDC user needs to change the mode before configuring
resources assigned to VDC
VDC Properties
Ports belong to only one VDC and cannot be shared
across VDCs
HW resources are shared across VDCs
>No guaranteed bandwidth on oversubscribed ports across
VDCs
No L2/L3 switching/routing across VDCs except
through external connection
Resource allocation for VDC
System resources are finite
Mediate hardware resources between VDCs
Centralized resources allocation
Allow user to manage resources for each VDC
Interfaces
All interfaces belongs to
default-VDC on bootup
Super-user can assign
interfaces to different VDCs
ƒ
Once interface is moved all
configuration is done from
within that VDC only
VDCs are aware of interfaces
which are assigned to it
Moving interfaces
config#vdc foo
config-vdc# allocate interface e2/1-8
STATUS
2
8
10
16
18
24
26
32
1
7
9
15
17
23
25
31
WS-X9032-SMV
FC Services Module
STATUS
2
8
1
7
WS-X9032-SMV
FC Services Module
ƒ
Interface move causes all
configuration to be
removed from old vdc
before moved to new
VDC
ƒ
Interface moves to new
VDC in shut state
ƒ
User needs to do
switchto before
configuring interfaces in
different VDCs
Configuring interfaces
switch# conf t
switch(config)# vdc foo
switch(config-vdc)# allocate interface ethernet 2/1
switch(config-vdc)# show vdc membership
vdc_id: 1 vdc_name: vdc_1 interfaces:
Ethernet2/9 Ethernet2/10 Ethernet2/11
Ethernet2/12 Ethernet2/13 Ethernet2/14
Ethernet2/15 Ethernet2/16 ….
vdc_id: 2 vdc_name: foo interfaces:
Ethernet2/1 Ethernet2/2 Ethernet2/3
Ethernet2/4 Ethernet2/5 Ethernet2/6
Ethernet2/7 Ethernet2/8
switch(config-vdc)# end
switch# switchto vdc 2
Cisco Storage Area Networking Operating System (SAN-OS) Software
TAC support: http://www.cisco.com/tac....
switch(vdc)# conf t
switch(vdc-config)# interface ethernet 2/1
switch(vdc-config-if)# switchport
switch(vdc-config-if)# switchport mode trunk
switch(vdc-config-if)# switchport trunk allowed vlan 2-100
Resource template configuration
Allow configuration based on resource requirements
switch(config)# resource template <template-name>
switch(config-res)# ?
limit-resource
Set resource limits
switch(config-res)# limit-resource ?
vlan
Set VLANs resource limits
port-channel
Set port-channel resource limits
….
switch(config-res)# limit-resource vlan min 64 max 128
switch(config-res)# limit-resource port-channel min 2 max 8
switch(config-res)# show resource template <template-name>
Vlan resources:
Mininum vlans
64
Maximum vlans
128
Port-channel resources:
Miminum port-channels
2
Maximum port-channels 8
VDC CLIs
switch#conf t
switch(config)# vdc ?
<CR>
<1-32> Enter Virtual Device Context <vdc-id>
name Enter Virtual Device Context <vdc-name>
resource Resource configuration
template Resource template for this vdc
switch(confg)# vdc foo
switch(confg-vdc)#
switch(config)# show vdc
switch#config t
switch(config)# vdc foo
switch(config-vdc)# allocate interface Ethernet 2/1-8
switch(config-vdc)# show vdc membership
vdc_id: 1 vdc_name: vdc_1 interfaces:
Ethernet 2/9 Ethernet 2/10 Ethernet 2/11
Ethernet 2/12 Ethernet 2/13 Ethernet 2/14
Ethernet 2/15 Ethernet 2/16 ….
vdc_id: 2 vdc_name: foo interfaces:
Ethernet 2/1 Ethernet 2/2 Ethernet 2/3
Ethernet 2/4 Ethernet 2/5 Ethernet 2/6
Ethernet 2/7 Ethernet 2/8
Virtual Device Context Verification
Several commands are available to verify VDC configurations and resource
utilization.
Verifying VDC Details:
n7000# show vdc
vdc_id vdc_name
state mac
------ --------
-----
----------
1 n7000 active 00:18:ba:d8:58:a5
2 production active 00:18:ba:d8:58:a6
3 lab active 00:18:ba:d8:58:a7
Verifying VDC Interface Membership:
n7000# show vdc membership
vdc_id: 1 vdc_name: n7000 interfaces:
Ethernet1/1 Ethernet1/2 Ethernet1/3
Ethernet1/4 Ethernet1/5 Ethernet1/6
Ethernet1/7 Ethernet1/8 Ethernet1/9
Ethernet1/10 Ethernet1/11 Ethernet1/12
Ethernet1/13 Ethernet1/14 Ethernet1/15
Ethernet1/16 Ethernet1/17 Ethernet1/18
Verifying VDC Resources:
n7000# show vdc resource
vlan
10 used 38 unused 16374 free 16336 avail 16384 total
monitor-session 0 used 0 unused 2 free 2 avail 2 total
vrf
6 used 42 unused 8186 free 8144 avail 8192 total
port-channel 0 used 0 unused 192 free 192 avail 192 total
u4route-mem 48 used 0 unused 208 free 208 avail 256 total
u6route-mem 24 used 0 unused 232 free 232 avail 256 total