热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Nexus配置VDC

1、配置资源模板ThisexampleshowshowtoconfigureaVDCresourcetemplate:vdcresourcetemplateTemplateAlim

1、配置资源模板
This example shows how to configure a VDC resource template:

vdc resource template TemplateA
  limit-resource port-channel minimum 4 maximum 128
  limit-resource span-ssn minimum 1 maximum equal-to-min
  limit-resource vlan minimum 32 maximum 1024
  limit-resource vrf minimum 32 maximum 1000
 
通过命令show vdc resource template TemplateA 查看,可以看到和如下类似结果:

2、创建VDC

This example shows how to create and initialize a VDC:
switch# config t
switch(config)# vdc test
Note:Creating VDC,one moment please…
switch(config-vdc)# allocate interface ethernet 2/46
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
//通过show vdc N7K membership查看分配的接口
switch(config-vdc)# exit
switch(config)# switchto vdc test
---- System Admin Account Setup ----
Do you want to enforce secure password standard (yes/no) [y]: y
Enter the password for "admin":
Confirm the password for "admin":
---- 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.5.5
Mgmt0 IPv4 netmask : 255.255.254.0
Configure the default gateway? (yes/no) [y]: y
IPv4 address of the default gateway : 10.10.5.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]:
The following configuration will be applied:
switchname Test
interface mgmt0
ip address 10.10.5.5 255.255.254.0
no shutdown
exit
vrf context management
ip route 0.0.0.0/0 10.10.5.1
exit
telnet server enable
ssh key rsa 768 force
ssh server enable
system default switchport shutdown
system default switchport trunk mode 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
switch-test# exit
switch

来自

查看VDC可能是如下情况&#xff1a;

3、限制VDC资源使用

DC2-N7K-1(config)#vdc DC2-N7K-3
DC2-N7K-1(config-vdc)#template TemplateA

可以通过show vdc DC2-N7K-1 resource查看

4、限制VDC关联模块

DC2-N7K-1(config)#vdc DC2-N7K-3
DC2-N7K-1(config-vdc)#limit-resource module-type m1xl f2e
This wil cause all ports of unallowed types to be removed from this vdc.Continue(y/n)[yes]yes

通过show vdc查看对应VDC关联的模块限制

5、配置启动顺序

默认的启动顺序为1&#xff0c;具有相同的启动顺序时&#xff0c;VDC ID越小的越优先启动&#xff0c;default VDC&#xff0c;admin VDC 总是第一个启动&#xff01;
DC2-N7K-1(config)#vdc DC2-N7K-3
DC2-N7K-1(config-vdc)#boot-order 2 >>>>范围1-9

6、查看VDC高可用性的默认配置
双引擎&#xff1a;
Bringdown&#xff0c;让VDC进入failed状态
Restart&#xff0c;将重启启动进程&#xff0c;报错shut所有的接口&#xff0c;停止虚拟化服务进程&#xff0c;然后重新启动保存了的服务&#xff0c;配置&#xff0c;那些没有保存在startup config的配置会丢失
Switchover&#xff0c;初始化一个引擎模块切换

单引擎&#xff1a;
Bringdown&#xff0c;让VDC进入failed状态
Reload&#xff0c;重启引擎模块
Restart&#xff0c;将重启启动进程&#xff0c;报错shut所有的接口&#xff0c;停止虚拟化服务进程&#xff0c;然后重新启动保存了的服务&#xff0c;配置&#xff0c;那些没有保存在startup config的配置会丢失

DC2-N7K-1#show vdc DC2-N7K-33 detail
Swtichwide mode is m1 f1 m1xl f22 m2xl f2e f3
vdc id:3
vdc name:DC2-N7K-3
vdc state:active
vdc mac address:01:e1:a3:3c:45:a3
vdc ha policy:RESTART
vdc dual-sup ha policy:SWITCHOVER
vdc boot Order:2
CPU share:10
CPU share Percentage:22%
vdc create time:Thu Oct 23 21:13 55 2017
vdc reload count:0
vdc uptime:0 day(s),8 hour(s),5 minute(s),20 second(s)
vdc restart count:0
vdc type:Ethernet
vdc supported linecards:m1xl f2e

修改配置
DC2-N7K-1(config)#vdc DC2-N7K-3
DC2-N7K-1(config-vdc)#ha-policy singe-sup bringdown
DC2-N7K-1(config-vdc)#ha-policy dual-sup restart

DC2-N7K-1#show vdc DC2-N7K-33 detail
Swtichwide mode is m1 f1 m1xl f22 m2xl f2e f3
vdc id:3
vdc name:DC2-N7K-3
vdc state:active
vdc mac address:01:e1:a3:3c:45:a3
vdc ha policy:BRINGDOWN
vdc dual-sup ha policy:RESTART
vdc boot Order:2
CPU share:10
CPU share Percentage:22%
vdc create time:Thu Oct 23 21:13 55 2017
vdc reload count:0
vdc uptime:0 day(s),8 hour(s),5 minute(s),20 second(s)
vdc restart count:0
vdc type:Ethernet
vdc supported linecards:m1xl f2e

7、创建管理VDC、VDC之间的切换、绑定主机名

DC2-N7K-1(config)#system admin-vdc migrate DC2-N7K-5
default vdc切换为admin vdc&#xff0c;限制default vdc里面的网络配置迁移到DC2-N7K-5


DC2-N7K-1(config)# switchto vdc test
---- System Admin Account Setup ----
Do you want to enforce secure password standard (yes/no) [y]: no
Enter the password for "admin":
Confirm the password for "admin":
---- Basic System Configuration Dialog VDC:2 ----
Would you like to enter the basic configuration dialog(yes/no):no

DC2-N7K-1-test(config)#switchback

DC2-N7K-1(config)#no vdc combined-hostname
DC2-N7K-1(config)# switchto vdc test
test(config)#



推荐阅读
  • Go Cobra命令行工具入门教程
    本文介绍了Go语言实现的命令行工具Cobra的基本概念、安装方法和入门实践。Cobra被广泛应用于各种项目中,如Kubernetes、Hugo和Github CLI等。通过使用Cobra,我们可以快速创建命令行工具,适用于写测试脚本和各种服务的Admin CLI。文章还通过一个简单的demo演示了Cobra的使用方法。 ... [详细]
  • Java学习笔记之面向对象编程(OOP)
    本文介绍了Java学习笔记中的面向对象编程(OOP)内容,包括OOP的三大特性(封装、继承、多态)和五大原则(单一职责原则、开放封闭原则、里式替换原则、依赖倒置原则)。通过学习OOP,可以提高代码复用性、拓展性和安全性。 ... [详细]
  • 开发笔记:实验7的文件读写操作
    本文介绍了使用C++的ofstream和ifstream类进行文件读写操作的方法,包括创建文件、写入文件和读取文件的过程。同时还介绍了如何判断文件是否成功打开和关闭文件的方法。通过本文的学习,读者可以了解如何在C++中进行文件读写操作。 ... [详细]
  • 本文由编程笔记#小编整理,主要介绍了关于数论相关的知识,包括数论的算法和百度百科的链接。文章还介绍了欧几里得算法、辗转相除法、gcd、lcm和扩展欧几里得算法的使用方法。此外,文章还提到了数论在求解不定方程、模线性方程和乘法逆元方面的应用。摘要长度:184字。 ... [详细]
  • REVERT权限切换的操作步骤和注意事项
    本文介绍了在SQL Server中进行REVERT权限切换的操作步骤和注意事项。首先登录到SQL Server,其中包括一个具有很小权限的普通用户和一个系统管理员角色中的成员。然后通过添加Windows登录到SQL Server,并将其添加到AdventureWorks数据库中的用户列表中。最后通过REVERT命令切换权限。在操作过程中需要注意的是,确保登录名和数据库名的正确性,并遵循安全措施,以防止权限泄露和数据损坏。 ... [详细]
  • 安装oracle软件1创建用户组、用户和目录bjdb节点下:[rootnode1]#groupadd-g200oinstall[rootnode1]#groupad ... [详细]
  • unitUnit1;interfaceusesWinapi.Windows,Winapi.Messages,System.SysUtils,System.Variants,Syst ... [详细]
  • Java太阳系小游戏分析和源码详解
    本文介绍了一个基于Java的太阳系小游戏的分析和源码详解。通过对面向对象的知识的学习和实践,作者实现了太阳系各行星绕太阳转的效果。文章详细介绍了游戏的设计思路和源码结构,包括工具类、常量、图片加载、面板等。通过这个小游戏的制作,读者可以巩固和应用所学的知识,如类的继承、方法的重载与重写、多态和封装等。 ... [详细]
  • Nginx使用(server参数配置)
    本文介绍了Nginx的使用,重点讲解了server参数配置,包括端口号、主机名、根目录等内容。同时,还介绍了Nginx的反向代理功能。 ... [详细]
  • 本文分享了一个关于在C#中使用异步代码的问题,作者在控制台中运行时代码正常工作,但在Windows窗体中却无法正常工作。作者尝试搜索局域网上的主机,但在窗体中计数器没有减少。文章提供了相关的代码和解决思路。 ... [详细]
  • 本文介绍了Redis的基础数据结构string的应用场景,并以面试的形式进行问答讲解,帮助读者更好地理解和应用Redis。同时,描述了一位面试者的心理状态和面试官的行为。 ... [详细]
  • 本文主要解析了Open judge C16H问题中涉及到的Magical Balls的快速幂和逆元算法,并给出了问题的解析和解决方法。详细介绍了问题的背景和规则,并给出了相应的算法解析和实现步骤。通过本文的解析,读者可以更好地理解和解决Open judge C16H问题中的Magical Balls部分。 ... [详细]
  • 带添加按钮的GridView,item的删除事件
    先上图片效果;gridView无数据时显示添加按钮,有数据时,第一格显示添加按钮,后面显示数据:布局文件:addr_manage.xml<?xmlve ... [详细]
  • 本篇文章笔者在上海吃饭的时候突然想到的这段时间就有想写几篇关于返回系统的笔记,所以回家到之后就奋笔疾书的写出来发布了事先在网上找了很多方法,发现有 ... [详细]
  • 转载:MFC 获得各类指针、句柄的方法
    2019独角兽企业重金招聘Python工程师标准转载:最近有些人在问MFC编程一些要点,有一些句柄的获取、指针的获取是 ... [详细]
author-avatar
dcwzyb_271
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有