暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

CISCO VDC

IT那活儿 2023-02-23
1466

点击上方“IT那活儿”公众号,关注后了解更多内容,不管IT什么活儿,干就完了!!!




VDC概述



VDC  (virtual device contexts)操作系统级别的虚拟化技术,类似于华为的VS  (virtual system), 是将一台物理设备按照需求,虚拟成多台逻辑设备,并将指定的物理接口分配到指定的逻辑设备中,实现各个业务、节点、路由等虚拟化,与早期的VRF技术具有部分共同之处,所有逻辑VDC共享一台物理设备的硬件资源。




VDC的特点



  • 管理隔离:不同逻辑VDC管理控制层面各自独立,互不影响。

  • 故障隔离:网路被分为多个逻辑区域,单逻辑VDC故障或重启不影响其他VDC。
  • 业务隔离:每个VDC就是一个独立网络,可满足多业务相互隔离。
  • 自适应资源管理:按需分配各个硬件资源(包含接口、CPU、内存等)到指定逻辑VDC。




VDC配置



1. 配置管理VDC
1)启用管理VDC
此命令将默认VDC迁移到管理VDC,默认VDC将变为管理VDC,并删除任何其他配置。
N7K# configure terminal
N7K(config)# system admin-vdc
All non-global  configuration from  the default  vdc will be removed ,
Are you sure you want to continue? (yes/no) [no] y

2)查看VDC
N7K(config)# show  vdc
vdc_idvdc_name  state  mac  type  lc
 N7K  active  XX:XX:XX:XX:XX:XX  AdminNone

3)迁移VDC
将配置迁移到新的vdc中,原mgmt0接口地址不会被迁移。
N7K(config)# system  admin -vdc migrate name -vdc
All non -global  configuration from the default vdc will be  removed , Are you sure you want to  continue? (yes/no) [no] y
Note : Interface mgmt0 will not have its ip address migrated to  the new  vdc
Note : During migration some configuration may not be  migrated .
Example : VTP will need to  be  reconfigured in the new  vdc if  it was enabled . Please refer to  configuration guide for  details . Please wait , this may take a while
Note : Ctrl-C has  been temporarily disabled for  the duration of this command

2. 配置VDC资源模版
创建VDC资源模版:
N7K(config)#  vdc resource template name
设置IPv4多播路由内存模版:
N7K(config -vdc)# limit- resource m4route-mem maximum X  max-value X
设置IPv6多播路由内存模版:
N7K(config -vdc)# limit- resource m6route-mem maximum X  max-value X
设置镜像监控资源模版:
N7K(config -vdc)# limit- resource monitor-session maximum X  max-value X
设置port-channel通道模版:
N7K(config -vdc)# limit- resource port-channel maximum X  max-value X
设置IPv4单播路由内存模版:
N7K(config -vdc)# limit- resource u4route-mem maximum X  max-value X
设置VRF模版:
N7K(config -vdc)# limit- resource vrf maximum X  max-value X
查看VDC模板配置信息。
N7K(config)#  show vdc resource template
3. 创建VDC
创建test VDC,使用模版name,不加模版则为默认:
N7K(config)#  vdc test  template name
为VDC添加物理端口E1/6:
N7K(config -vdc)# allocate interface  ethernet 1/6
登入test VDC,即可使用独立的VDC:
N7K(config)#switchto vdc test


END


本文作者:闫 浩(上海新炬中北团队)

本文来源:“IT那活儿”公众号

文章转载自IT那活儿,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论