假设两台设备是已经堆叠好的,但是现在想拆成两台交换机来使用,要怎么办?步骤顺序是啥?
(0)
最佳答案
您好,请知:
可以考虑使用MDC,将一台交换机虚拟成多台交换机,以下是配置举例,请参考:
某运营商新增一个IDC机房,分配给公司A和公司B使用。其中:
· 公司A为知名网络公司的数据中心,需要管理规模庞大的服务器和存储设备;
· 公司B为金融企业的数据中心,对于网络的稳定性及安全性有极高的要求,需要独立的网络环境,不受其他公司的影响。
(2) 网络规划
为提高设备的转发性能和可靠性,同时节省成本,使用IRF+MDC技术,使两个公司共同使用一个IRF。如图1-4所示。
· 将Master和Standby两台成员设备组成IRF,IRF拥有四块接口板,接口板2和3分别位于Master设备的2号槽和3号槽,接口板2和3分别位于Standby成员设备的2,3号槽,每个接口板有16个万兆以太网口;
· 将IRF虚拟成两台独立的设备:MDC A,MDC B,每个MDC相当于一个独立的物理设备,MDC之间相互隔离,不能直接通信,具有很高的安全性,可满足公司B的需求;
· 各MDC可以独享设备的表项资源,满足公司A对表项资源的需求。
图1-4 MDC典型配置组网图
(1) 在缺省MDC中组建IRF,关于缺省MDC中组建IRF的详细步骤介绍,请参见“虚拟化技术配置指导”中的“IRF”。
(2) 配置IRF的网管口的IP地址、使能Telnet服务等基础配置,供用户远程登录缺省MDC。
<IRF> system-view
[IRF] interface M-GigabitEthernet 1/0/0/0
[IRF-M-GigabitEthernet1/0/0/0] ip address 192.168.0.250 16
[IRF-M-GigabitEthernet1/0/0/0] quit
[IRF] telnet server enable
(3) 取消缺省MDC上需要划分给非缺省MDC的接口板使用权限。
[IRF] mdc Admin
[IRF-mdc-1-Admin] undo location chassis 1 slot 2
The configuration associated with the specified slot of MDC will be lost. Contin
ue? [Y/N]:y
[IRF-mdc-1-Admin] undo location chassis 1 slot 3
The configuration associated with the specified slot of MDC will be lost. Contin
ue? [Y/N]:y
[IRF-mdc-1-Admin] undo location chassis 2 slot 2
The configuration associated with the specified slot of MDC will be lost. Contin
ue? [Y/N]:y
[IRF-mdc-1-Admin] quit
[IRF-mdc-1-Admin] undo location chassis 2 slot 3
The configuration associated with the specified slot of MDC will be lost. Contin
ue? [Y/N]:y
[IRF-mdc-1-Admin] quit
(4) 创建并配置MDC A,供公司A使用。
# 创建MDC A。
<IRF> system-view
[IRF] mdc MDCA
It will take some time to create MDC...
MDC created successfully.
# 为MDC A分配Master设备接口Ten-GigabitEthernet1/2/0/1~Ten-GigabitEthernet1/2/0/16和Subordinate设备接口Ten-GigabitEthernet2/2/0/1~Ten-GigabitEthernet2/2/0/16。
[IRF-mdc-2-MDCA] allocate interface ten-gigabitethernet 1/2/0/1 to ten-gigabitethernet 1/2/0/16
Configurations of the interfaces will be lost. Continue? [Y/N]:y
[IRF-mdc-2-MDCA] allocate interface ten-gigabitethernet 2/2/0/1 to ten-gigabitethernet 2/2/0/16
Configurations of the interfaces will be lost. Continue? [Y/N]:y
# 为MDC A分配Master设备接口板2,Subordinate设备接口板2。
[IRF-mdc-2-MDCA] location chassis 1 slot 2
[IRF-mdc-2-MDCA] location chassis 2 slot 2
# 启动MDC A。
[IRF-mdc-2-MDCA] mdc start
It will take some time to start MDC...
MDC started successfully.
[IRF-mdc-2-MDCA] quit
# 切换到MDC A。
[IRF] switchto mdc MDCA
******************************************************************************
* Copyright (c) 2004-2018 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
<Sysname> system-view
# 将MDC A的设备名称修改为MDCA,以便和其它MDC区别。
[Sysname] sysname MDCA
# 配置MDC A 的网管口的IP地址、使能Telnet服务等基础配置,供用户远程登录MDC A。
[MDCA] interface M-GigabitEthernet 1/0/0/0
[MDCA-M-GigabitEthernet1/0/0/0] ip address 192.168.1.251 24
[MDCA-M-GigabitEthernet1/0/0/0] quit
[MDCA] telnet server enable
[MDCA] user-interface vty 0 15
[MDCA-ui-vty0-15] authentication-mode none
[MDCA-ui-vty0-15] user-role mdc-admin
# 返回缺省MDC。
[MDCA-ui-vty0-15] return
<MDCA> switchback
[IRF]
(5) 创建并配置MDC B,供公司B使用。
# 创建MDC B。
[IRF] mdc MDCB
It will take some time to create MDC...
MDC created successfully.
# 为MDC B分配Master设备接口Ten-GigabitEthernet1/3/0/1~Ten-GigabitEthernet1/3/0/16和Subordinate设备接口Ten-GigabitEthernet2/3/0/1~Ten-GigabitEthernet2/3/0/16。
[IRF-mdc-3-MDCB] allocate interface ten-gigabitethernet 1/3/0/1 to ten-gigabitethernet 1/3/0/16
Configurations of the interfaces will be lost. Continue? [Y/N]:y
[IRF-mdc-3-MDCB] allocate interface ten-gigabitethernet 2/3/0/1 to ten-gigabitethernet 2/3/0/16
Configurations of the interfaces will be lost. Continue? [Y/N]:y
# 为MDC B分配接口板3,Subordinate设备接口板3。
[IRF-mdc-3-MDCB] location chassis 1 slot 3
[IRF-mdc-3-MDCB] location chassis 2 slot 3
# 启动MDC B。
[IRF-mdc-3-MDCB] mdc start
It will take some time to start MDC...
MDC started successfully.
[IRF-mdc-3-MDCB] quit
# 切换到MDC B。
[IRF]switchto mdc MDCB
******************************************************************************
* Copyright (c) 2004-2018 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
<Sysname> system-view
# 将MDC B的设备名称修改为MDCB,以便和其它MDC区别。
[Sysname] sysname MDCB
# 配置MDC B 的网管口的IP地址、使能Telnet服务等基础配置,供用户远程登录MDC B。
[MDCB] interface M-GigabitEthernet 1/0/0/0
[MDCB-M-GigabitEthernet1/0/0/0] ip address 192.168.2.251 24
[MDCB-M-GigabitEthernet1/0/0/0] quit
[MDCB] telnet server enable
[MDCB] user-interface vty 0 15
[MDCB-ui-vty0-15] authentication-mode none
[MDCB-ui-vty0-15] user-role mdc-admin
# 返回缺省MDC。
[MDCB-ui-vty0-15] return
<MDCB> switchback
[IRF]
查看MDC是否存在并且运转正常。(此时,IRF上应该有三台处于active状态的MDC)。
<Device> display mdc
ID Name Status
1 Admin active
2 MDCA active
3 MDCB active
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
非缺省MDC里面的管理口MGE口,是逻辑口?怎么和外部互联呢?