EMAIL SUPPORT

dclessons@dclessons.com

LOCATION

NZ

LAB Creating VDC & Its Attributes

LAB Creating VDC & Its Attributes

Posted on Jan 23, 2020 (0)

Lab Task

  • N7K-1 is the default VDC, where N7K-3 and N7K-4 are non-default VDC
  • Nexus 7000 with the default VDC N7K-1 pre configured
  • Configure resource allocations for VDCs N7K-3 and N7K-4 mentioned in below table.
  • Configure resources for the VDC by using the resource template to perform the task.
  • Create and apply VDC resource templates as shown in this table below:

  • In Nexus Box make sure that these High Availability policies are applied to VDCs
    •    N7K-1: reset
    •    N7K-3: bring down
    •    N7K-4: bring down
  • Once VDC is configured, Initialize or configure the N7K-3 VDC from Default VDC with Mgmt Ip 10.10.10.10/24, Gateway 10.10.10.1

Solution:

N7K-1) # (From Default VDC)
N7K-1) # vdc resource template otv-template
N7K-1) # limit-resource vrf minimum 8 maximum 16
N7K-1) # limit-resource vlan minimum 16 max 32
N7K-1) # limit-resource port-channel minimum 0 max 32
!
N7K-1) # vdc resource template switch-template
N7K-1) # limit-resource vrf minimum 16 max 32
N7K-1) # limit-resource vlan minimum 16 max 129
N7K-1) # limit-resource port-channel minimum 32 maximum 64
!
N7K-1) # vdc N7K-1 id 1
N7K-1) # template otv-template
N7K-1) # ha-policy single-supervisor reset
N7K-1) # system hap-reset
N7K-1) # limit-resource module-type m1 m1x1 f1
N7K-1) # allocate interface e3/1-8
N7K-1) # allocate interface e4/1-16
!
N7K-1) # vdc N7K-3 id 3
N7K-1) # template switch-template
N7K-1) # ha-policy dual-supervisor bring down
N7K-1) # limit-resource module-type m1 m1x1 f1
N7K-1) # allocate-interface e3/17-24
N7K-1) # allocate-interface e4/17-24
!
N7K-1) # vdc N7K-4 id 4
N7K-1) # template switch-template
N7K-1) # ha-policy dual-supervisor bring down
N7K-1) # limit-resource module-type m1 m1x1 f1
N7K-1) # allocate-interface e3/25-32
N7K-1) # allocate-interface e4/25-32
!

Now here we are going to configure the VDC which we have created earlier.

N7K-1) (config)# switchto vdc N7K-3
!
---- System Admin Account Setup ----
Do you want to enforce secure password standard (yes/no) [y]: y
Enter the password for "admin":< password>
Confirm the password for "admin":< password>
!
---- Basic System Configuration Dialog ----
This setup utility will guide you through the basic configuration of the system. Setup configures only enough connectivity for management of the system.
Please register Cisco Nexus7000 Family devices promptly with your supplier. Failure to register may affect response times for initial service calls. Nexus7000 devices must be registered to receive
entitled support services. Press Enter at anytime to skip a dialog. Use ctrl-c at anytime
to skip the remaining dialogs.
!
Would you like to enter the basic configuration dialog (yes/no): yes
Create another login account (yes/no) [n]: n
Configure read-only SNMP community string (yes/no) [n]: n
Configure read-write SNMP community string (yes/no) [n]: n
Enter the switch name : Test
Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]:
!
Mgmt0 IPv4 address : 10.10.10.10
Mgmt0 IPv4 netmask : 255.255.254.0
Configure the default gateway? (yes/no) [y]: y
IPv4 address of the default gateway : 10.10.10.1
Configure advanced IP options? (yes/no) [n]:
Enable the telnet service? (yes/no) [y]:
Enable the ssh service? (yes/no) [n]: y
Type of ssh key you would like to generate (dsa/rsa/rsa1) : rsa
Number of key bits <768-2048> : 768
Configure the ntp server? (yes/no) [n]:
Configure default switchport interface state (shut/noshut) [shut]:
Configure default switchport trunk mode (on/off/auto) [on]:
!
Would you like to edit the configuration? (yes/no) [n]:
Use this configuration and save it? (yes/no) [y]:
!
[########################################] 100%
!
Cisco Data Center Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2007, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained herein are owned by
other third parties and are used and distributed under license.
Some parts of this software may be covered under the GNU Public
License or the GNU Lesser General Public License. A copy of
each such license is available at
http://www.gnu.org/licenses/gpl.html and
http://www.gnu.org/licenses/lgpl.html
N7K-1)# exit
!

Verification:

N7K-1# show vdc
vdc_id   vdc_name      state            mac
------       --------             -----            ----------
1            N7K-1           active      00:22:55:7a:72:c1
2            N7K-3           active      00:22:55:7a:72:c2
3            N7K-4           active      00:22:55:7a:72:c3
!
N7K-1# switchto vdc N7K-3
N7K-1-N7K-3) #
!

show running-config vdc-all

To display the running configurations for all virtual device contexts (VDCs), use the show running-config vdc-all command.
Show running-config vdc-all [all]

Show vdc

To display virtual context device (VDC) information, use the show vdc command.
Show vdc [vdc-name] [detail]

N7K-1# show vdc detail
!
vdc id: 1
vdc name: N7K-1
vdc state: active
vdc mac address:00:22:55:7a:72:c1
vdc ha policy: RESET
vdc dual-sup ha policy: SWITCHOVER
vdc boot Order: 1
CPU Share: 5
CPU Share Percentage: 22%
vdc create time: Wed Jul 18 18:08:15 2012
vdc reload count: 0
vdc restart count: 0
vdc type: Admin
vdc supported linecards: None
!
vdc id: 2
vdc name: N7K-3
vdc state: active
vdc mac address: 00:22:55:7a:72:c2
vdc ha policy: RESET
vdc dual-sup ha policy: BRINGDOWN
vdc boot Order: 1
CPU Share: 10
CPU Share Percentage: 45%
vdc create time: Wed Jul 18 18:17:14 2012
vdc reload count: 0
vdc restart count: 0
vdc type: Ethernet
vdc supported linecards: m1 m1xl f1
!
vdc id: 3
vdc name: N7K-4
vdc state: active
vdc mac address: 00:22:55:7a:72:c3
vdc ha policy: RESTART
vdc dual-sup ha policy: BRINGDOWN
vdc boot Order: 1
CPU Share: 7
CPU Share Percentage: 31%
vdc create time: Wed Jul 18 18:29:51 2012
vdc reload count: 0
vdc restart count: 0
vdc type: Ethernet
vdc supported linecards: m1 f1 m1xl
N7K-1#
!

Show vdc current-vdc

To display the current virtual device context (VDC) identifier information, use the show vdc current-vdc command.

Show vdc current-vdc

 Show vdc membership

To display the interface membership information for the virtual device contexts (VDCs), use the show vdc membership command.

Show vdc membership [status]

Show vdc resource

To display the virtual device context (VDC) resource information, use the show vdc resource command.

Show vdc resource [monitor-session | port-channel | u4route-mem | vlan | vrf] [detail]

Show vdc resource template

To display the virtual device context (VDC) resource template information, use the show vdc resource template command.

Show vdc resource template [vdc-template-name]

Switchback

To switch back to the default virtual device context (VDC) from another VDC, use the switchback command.

Switchback

Switch to vdc

To switch to another virtual device context (VDC) from the default VDC, use the switchto vdc command.

Switchto vdc vdc-name

VDC combined-hostname

To change the command-line interface (CLI) prompt for the non-default virtual device contexts (VDCs) to show both the default VDC name and the hostname, use the vdc combined-hostname command. To change the CLI prompt to show only the non-default VDC name, use the no form of this command.

Vdc combined-hostname

no vdc combined-hostname


Comment

    You are will be the first.

LEAVE A COMMENT

Please login here to comment.