03-H3C_MDC典型配置舉例
本章節下載: 03-H3C_MDC典型配置舉例 (407.21 KB)
資料版本:6W100-20200330
產品版本:Release 7585P05
Copyright © 2020 bobty下载软件 版權所有,保留一切權利。 非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。 除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。 本文檔中的信息可能變動,恕不另行通知。 |
通過虛擬化技術將一台物理設備或IRF劃分成多台邏輯設備,每台邏輯設備就稱為一台MDC(Multitenant Device Context,多租戶設備環境)。本文檔介紹MDC的典型應用和配置。
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文檔假設您已了解MDC特性。
MDC功能需要安裝License才能使用。當License到期或被卸載後,所有已創建的非缺省MDC都會被停止,且不允許再創建或啟動MDC,請重新安裝有效的License。
l 設備支持MDC功能後,整台物理設備就是一個MDC,稱為缺省MDC。當用戶登錄物理設備時,實際登錄的就是缺省MDC。用戶在物理設備上的配置實質就是對缺省MDC的配置。缺省MDC的名稱為Admin,編號為1。缺省MDC不需要創建,不能刪除。
l 與缺省MDC相對應的是非缺省MDC。
l 缺省MDC擁有對整台物理設備的所有權限,它可以使用和管理設備所有的硬件資源。缺省MDC下可以創建/刪除非缺省MDC,給非缺省MDC分配接口、CPU資源、內存空間,沒有分配的接口、CPU資源、內存空間由缺省MDC使用和管理。
l 非缺省MDC下不可再創建/刪除非缺省MDC,它隻能使用缺省MDC分配給自己的硬件資源,並在缺省MDC指定的硬件資源限製範圍內工作,不能搶占其他MDC或者係統剩餘的硬件資源。
l system-working-mode、clock datetime等全局配置、顯示類命令隻能在缺省MDC中執行,但是對所有MDC生效。
同一物理設備或IRF係統中創建的所有MDC共享係統軟件包,運行的軟件版本相同。隻需登錄缺省MDC,進行軟件升級,即可完成所有MDC的升級。
給物理設備安裝補丁包的時候,要求所有的MDC都處於Active狀態。用戶創建、啟動MDC,使用switchto mdc命令登錄該MDC,並按組合鍵<Ctrl+D>或<Ctrl+C>退出自動配置流程、進入命令行視圖後,會進入Active狀態。
ISSU升級過程中,從設備重啟後,會自動去批量同步主設備的配置和狀態數據。請等待批量同步完成後,即使用display system stable state命令,如果係統的狀態和MDC的狀態均顯示為Stable後,再執行issu load、issu run switchover、issu commit、install activate或install deactivate命令,否則,命令會執行失敗。
缺省MDC上可以給非缺省MDC分配的硬件資源包括業務接口、CPU資源和內存空間。MDC創建後,缺省MDC的管理員:
· 必須為非缺省MDC分配物理接口和業務板,否則非缺省MDC上將沒有業務接口,不能轉發業務報文。
· 係統在創建MDC時已經自動預留了一定的CPU資源和內存空間以保證MDC的正常運行,但管理員可以在不重啟MDC的情況下,根據需要在各MDC間進行CPU資源和內存空間的合理、靈活分配。
· 請確保不同用戶對同一個接口的操作時序。在一個用戶為MDC分配或刪除接口時,請及時通知其他用戶,讓其停止配置該接口,否則可能導致配置達不到預期效果。
· 物理設備的Console口不能分配。Console口屬於缺省MDC,非缺省MDC上沒有Console口。從缺省MDC上執行switchto mdc命令登錄非缺省MDC後,其權限相當於Console登錄。
· 物理設備的管理以太網接口不能也不需要分配。物理管理以太網接口屬於缺省MDC,係統在創建非缺省MDC時會在該MDC下創建相同數量的虛擬管理以太網接口。
¡ 所有MDC的管理以太網接口名稱和編號相同,相同編號的管理以太網口共用同一個物理接口和物理鏈路。
¡ 不同MDC的管理以太網接口下可以配置相同網段或者不同網段的IP地址,以便不同MDC的管理員登錄自己的MDC。
¡ 隻有在缺省MDC下可以對管理以太網接口執行shutdown命令,非缺省MDC下不可以。
· MDC必須同時擁有接口和接口所屬業務板的使用權限,才能使用接口。分配順序為先分配接口,再分配業務板使用權限。因此,將物理接口分給MDC前,確定哪些MDC擁有接口所屬業務板的使用權限,請分別進入這些MDC的視圖,執行undo location命令取消這些MDC對接口所屬業務板的使用權限。將物理接口分給MDC後,需要執行location命令將該業務板分配給該MDC。
· 業務板上的接口是按組劃分的。為MDC分配接口或將接口從MDC中刪除時,需要按組分配或刪除,而不能隻分配或刪除這組接口中的部分接口。
· 同一接口板上的接口屬於同一組,隻能同時分配給一個MDC。
· 一個物理接口隻能屬於一台MDC。物理接口分配給MDC後,需要登錄該MDC後,才能對接口下的參數進行配置。
· 接口隻能從缺省MDC分配到非缺省MDC。如果待分配接口已被分配給非缺省MDC,則需要先將接口從該MDC中刪除,再將該接口分配給其他非缺省MDC。
· 往MDC中添加端口時,如果新加入的端口在一個新插入的業務板上,此操作不會影響已有端口的業務;如果新加入的端口所在單板正在運行某個MDC,此操作必定會導致該MDC業務中斷。因為增加、刪除接口的時候,必須先將單板從MDC中刪除,導致該單板上接口的流量中斷。
· 將物理接口從MDC中刪除前,需要執行undo location命令取消該MDC以及缺省MDC對接口所屬業務板的使用權限。
· IRF技術是將幾台物理設備虛擬成一台超級設備(稱為IRF或者IRF係統),以便統一管理和配置這幾台物理設備。MDC是在“超級設備”上虛擬形成的設備,多台MDC不能再組成IRF係統。
· 請先組建或加入IRF再創建和配置MDC。因為設備組建或加入IRF後,會以IRF中主設備的配置重啟,本設備上除IRF端口配置外,MDC等其它配置將不再生效。
· 為確保IRF鏈路的安全、可靠,請部署至少兩條IRF鏈路,且IRF鏈路分布在不同的業務板上。MDC配置過程中需要注意確保成員設備間至少有一條IRF鏈路正常通信,避免IRF分裂。
· 建議將IRF物理端口放到缺省MDC中,不要分配給非缺省MDC,如圖1中“IRF鏈路1”所示。這樣可以確保隻有物理設備的管理員可以配置IRF鏈路,而且可以避免配置非缺省MDC時影響IRF鏈路。如果因為接口數量有限,需要將IRF物理端口分配給非缺省MDC,則連接一條IRF鏈路的兩個IRF物理端口必須屬於同一個MDC,否則無法建立IRF鏈路,如圖1所示。
圖1 MDC中IRF鏈路連接示意圖
· 如果IRF物理端口屬於某個非缺省MDC,且需要將該IRF物理端口所在的單板拔出,請在拔出單板前,取消該IRF物理端口的配置,並且保存當前配置後再拔出單板。
· 將IRF物理端口分配給其它MDC或者從當前MDC中刪除前,請取消IRF物理端口和IRF端口的綁定關係。需要執行以下操作:
¡ 將IRF物理端口shutdown。
¡ 執行undo port group interface命令取消IRF端口和IRF物理端口的綁定關係。
¡ 將IRF物理端口分配給其它MDC或者從當前MDC中刪除。
¡ 執行save命令保存當前配置。
· 將物理接口分配給MDC或者從MDC中刪除時,該接口下的所有配置都會恢複到缺省情況。
· 物理接口分配給MDC後,需要登錄該MDC後,才能對接口下的參數進行配置。
如果在交換機上創建了多個MDC,那麼這些MDC共享該交換機主控板的CPU資源。為了防止一個MDC過多的占用該主控板的CPU,而導致其他MDC無法運行,需要限製MDC對該CPU的使用。
設備支持在不重啟MDC的情況下,手工調整MDC的CPU權重。
係統根據MDC的CPU權重占所有MDC CPU權重總和的比率來確定該MDC的任務在一個CPU上占用時間的比率。比如當3個MDC的CPU權重分別為10、10、5,則係統為第一個MDC分配的CPU時間和為第二個MDC分配的時間近似都是第三個MDC的CPU時間的2倍,此時和配置權重值分別為2、2、1效果一致。
給MDC配置的CPU權重對其所有具有使用權限的單板有效。“所有具有使用權限的單板”包括主控板和通過location命令分配的接口板。
MDC創建後,這些MDC將共享主控板的內存空間。為了防止一個MDC過多的占用內存,而導致其他MDC無法正常運行業務,需要限製MDC對內存的使用。
執行limit-resource memory命令前,請使用display mdc resource命令查看設備當前的內存分配。配置的內存值不宜過小,至少需要保證該MDC的正常啟動並運行。
請創建新VLAN來進行IRF MAD檢測,在缺省MDC和非缺省MDC中都不能使用該VLAN轉發業務報文。
運行在同一台物理設備上或者IRF係統中的兩個MDC之間不支持部署GR(Graceful Restart,平滑重啟)功能。因為這兩個MDC是由同一物理設備虛擬出來的,當發生主備倒換時,網絡中沒有GR Helper,會導致GR失敗,丟包時間較長。
非缺省MDC之間互相隔離,當非缺省MDC中不存在IRF物理端口時,重啟該MDC,不會影響其他MDC的運行以及流量轉發。
當非缺省MDC中存在最後一個處於UP狀態的IRF物理端口時,設備會提示用戶,不允許重啟該非缺省MDC。如果插拔該IRF物理端口,會導致IRF分裂。
如果需要重啟缺省MDC,則必須重啟整個係統,會導致業務中斷。
某公司有一台設備Device,現要求將這台設備虛擬成兩台獨立的設備:MDC A和MDC B,分給該公司的A、B兩個不同部門用作接入公司網絡的網關。使得各部門可以獨享設備的表項資源,並且可以根據各部門的業務需求分配設備的內存、CPU資源,接口GigabitEthernet2/0/1~GigabitEthernet2/0/44以及Ten-GigabitEthernet2/0/45~Ten-GigabitEthernet2/0/48分配給MDC A,接口GigabitEthernet3/0/1~GigabitEthernet3/0/44以及Ten-GigabitEthernet3/0/45~Ten- GigabitEthernet3/0/48分配給MDC B。
圖2 獨立運行模式下的MDC配置組網圖
(1) 創建MDC A和MDC B
# 創建MDC A,供部門A使用。
<Device> system-view
[Device] mdc MDCA
It will take some time to create MDC...
MDC created successfully.
[Device-mdc-2-MDCA] quit
# 創建MDC B,供部門B使用。
[Device] mdc MDCB
It will take some time to create MDC...
MDC created successfully.
[Device-mdc-3-MDCB] quit
# 取消缺省MDC對2號業務板的使用權。
[Device] mdc Admin
[Device-mdc-1-Admin] undo location slot 2
Performing this command is equivalent to removing the card from the MDC. Continue? [Y/N]:y
[Device-mdc-1-Admin] quit
# 取消缺省MDC對3號業務板的使用權。
[Device] mdc Admin
[Device-mdc-1-Admin] undo location slot 3
Performing this command is equivalent to removing the card from the MDC. Continue? [Y/N]:y
[Device-mdc-1-Admin] quit
# 為MDC A分配接口GigabitEthernet2/0/1~GigabitEthernet2/0/44以及Ten-GigabitEthernet2/0/45~Ten-GigabitEthernet2/0/48。
[Device] mdc MDCA
[Device-mdc-2-MDCA] allocate interface GigabitEthernet 2/0/1 to GigabitEthernet 2/0/44 Ten-GigabitEthernet 2/0/45 to Ten-GigabitEthernet 2/0/48
This operation will allocate the specified interfaces and all interfaces in the
listed groups to the MDC. Continue? [Y/N]:y
Configuration of the interfaces will be lost. Continue? [Y/N]:y
Execute the location slot command in the current view to place the configuration into effect.
# 將2號業務板的使用權限分配給MDC A。
[Device-mdc-2-MDCA] location slot 2
# 配置MDC A的CPU權重為5。
[Device-mdc-2-MDCA] limit-resource cpu weight 5
# 啟動MDC A。
[Device-mdc-2-MDCA] mdc start
It will take some time to start MDC...
MDC started successfully.
[Device-mdc-2-MDCA] quit
# 為MDC B分配接口GigabitEthernet3/0/1~GigabitEthernet3/0/44以及Ten- GigabitEthernet3/0/45~Ten- GigabitEthernet3/0/48。
[Device] mdc MDCB
[Device-mdc-3-MDCB] allocate interface GigabitEthernet 3/0/1 to GigabitEthernet 3/0/44 Ten-GigabitEthernet 3/0/45 to Ten-GigabitEthernet 3/0/48
This operation will allocate the specified interfaces and all interfaces in the
listed groups to the MDC. Continue? [Y/N]:y
Configuration of the interfaces will be lost. Continue? [Y/N]:y
Execute the location slot command in the current view to place the configuration into effect.
# 將3號業務板的使用權限分配給MDC B。
[Device-mdc-3-MDCB] location slot 3
# 配置MDC B的CPU權重為5。
[Device-mdc-3-MDCB] limit-resource cpu weight 5
# 啟動MDC B。
[Device-mdc-3-MDCB] mdc start
It will take some time to start MDC...
MDC started successfully.
[Device-mdc-3-MDCB] quit
(2) 登錄MDC A,配置MDC A的管理以太網接口。
# 切換到MDC A,並按照提示信息鍵入組合鍵Ctrl+D終止MDC的自動配置過程,進入MDC A的命令行界麵進行配置。
[Device] switchto mdc MDCA
******************************************************************************
* Copyright (c) 2004-2019 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
Automatic configuration is running, press CTRL_C or CTRL_D to break or press CTRL_B to switch back to the default MDC.
<Device> system-view
# 將MDC A的名稱修改為MDCA,以便和其它MDC區別。
[Device] sysname MDCA
# 配置MDC A 的網管口的IP地址、使能Telnet服務等基礎配置,供用戶遠程登錄MDC A。
[MDCA] interface m-gigabitethernet 0/0/0
[MDCA-M-GigabitEthernet0/0/0] ip address 192.168.1.251 24
[MDCA-M-GigabitEthernet0/0/0] quit
[MDCA] telnet server enable
[MDCA] user-interface vty 0 63
[MDCA-line-vty0-63] authentication-mode none
[MDCA-line-vty0-63] user-role mdc-admin
# 從MDC A返回缺省MDC。
[MDCA-line-vty0-63] return
<MDCA> switchback
[Device]
(3) 登錄MDC B,配置MDC B的管理以太網接口。
[Device] switchto mdc MDCB
******************************************************************************
* Copyright (c) 2004-2019 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
Automatic configuration is running, press CTRL_C or CTRL_D to break or press CTRL_B to switch back to the default MDC.
按組合鍵<Ctrl+c>退出自動配置流程,進入MDC B的命令行配置界麵。
<Device> system-view
# 將MDC B的名稱修改為MDCB,以便和其它MDC區別。
[Device] sysname MDCB
# 配置MDC B的網管口的IP地址、使能Telnet服務等基礎配置,供用戶遠程登錄MDC B。
[MDCB] interface m-gigabitethernet 0/0/0
[MDCB-M-GigabitEthernet0/0/0] ip address 192.168.2.252 24
[MDCB-M-GigabitEthernet0/0/0] quit
[MDCB] telnet server enable
[MDCB] user-interface vty 0 63
[MDCB-line-vty0-63] authentication-mode none
[MDCB-line-vty0-63] user-role mdc-admin
# 從MDC B返回缺省MDC。
[MDCB-line-vty0-63] return
<MDCB> switchback
[Device] quit
(1) 查看MDC是否存在並且運轉正常。(此時,Device上應該有三台處於正常工作active狀態的MDC)
<Device> display mdc
ID Name Status
1 Admin active
2 MDCA active
3 MDCB active
(2) 模擬部門A的管理用戶登錄到MDC A,可以查看本設備的當前配置。
C:\> telnet 192.168.1.251
******************************************************************************
* Copyright (c) 2004-2019 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
<MDCA> display current-configuration
……配置文件信息略……
· Device的配置文件:
#
mdc Admin id 1
undo location slot 2
undo location slot 3
#
mdc MDCA id 2
location slot 2
limit-resource cpu weight 5
mdc start
allocate interface GigabitEthernet 2/0/1 to GigabitEthernet 2/0/44 Ten-GigabitEthernet 2/0/45 to Ten-GigabitEthernet 2/0/48
#
mdc MDCB id 3
location slot 3
limit-resource cpu weight 5
mdc start
allocate interface GigabitEthernet 3/0/1 to GigabitEthernet 3/0/44 Ten-GigabitEthernet 3/0/45 to Ten-GigabitEthernet 3/0/48
設備對MDC相關配置有序要求,請參照配置步驟進行。Device的配置文件僅記錄了Device上執行的命令行,供參考。
· MDC A的配置文件:
#
sysname MDCA
#
telnet server enable
#
interface M-GigabitEthernet0/0/0
ip address 192.168.1.251 255.255.255.0
#
line vty 0 63
authentication-mode none
user-role mdc-admin
user-role mdc-operator
· MDC B的配置文件:
#
sysname MDCB
#
telnet server enable
#
interface M-GigabitEthernet0/0/0
ip address 192.168.2.252 255.255.255.0
#
line vty 0 63
authentication-mode none
user-role mdc-admin
user-role mdc-operator
如圖3所示,某公司有兩台設備已經組成了IRF。Master和Standby上各有業務板2和3,每個業務板有16個XGE接口。Master使用IRF端口1和Standby的IRF端口2通過一條物理鏈路相連,Master的IRF端口1綁定了物理接口Ten-GigabitEthernet1/1/0/1,Standby的IRF端口2綁定了物理接口Ten-GigabitEthernet2/1/0/1。
現要求創建兩台獨立的虛擬設備:MDC A和MDC B,分給該公司的A、B兩個部門用作接入公司網絡的網關。使得各部門可以獨享設備的表項資源,並且可以根據各部門的業務需求分配設備的內存、CPU資源,Master設備接口Ten-GigabitEthernet1/2/0/1~Ten-GigabitEthernet1/2/0/16和Standby設備接口Ten-GigabitEthernet2/2/0/1~Ten-GigabitEthernet2/2/0/16配給MDC A,Master設備接口Ten-GigabitEthernet1/3/0/1~Ten-GigabitEthernet1/3/0/16和Standby設備接口Ten-GigabitEthernet2/3/0/1~Ten-GigabitEthernet2/3/0/16分配給MDC B。
圖3 IRF模式下的MDC配置組網圖
建議將IRF物理端口放到缺省MDC中,不要分配給非缺省MDC,一來能夠確保IRF鏈路的安全性,IRF物理端口是用來組建IRF的,影響到整個IRF係統的運行。二來可以避免用戶配置步驟錯誤,導致IRF物理端口不能正常工作。
(1) 在缺省MDC中組建IRF,關於缺省MDC中組建IRF的詳細步驟介紹,請參見“虛擬化技術配置指導”中的“IRF”。
(2) 取消缺省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
創建並配置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和Standby設備接口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,Standby設備接口板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
(3) 配置MDC A網管口的IP地址、使能Telnet服務。
# 切換到MDC A,並按照提示信息鍵入組合鍵Ctrl+D終止MDC的自動配置過程,進入MDC A的命令行界麵進行配置。
[IRF] switchto mdc MDCA
******************************************************************************
* Copyright (c) 2004-2019 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
Automatic configuration is running, press CTRL_C or CTRL_D to break or press CTRL_B to switch back to the default MDC.
<IRF> system-view
# 將MDC A的名稱修改為MDCA,以便和其它MDC區別。
[IRF] sysname MDCA
# 配置MDC A的網管口的IP地址、使能Telnet服務等基礎配置,供用戶遠程登錄MDC A。
[MDCA] display interface m-gigabitethernet brief
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
M-GE1/0/0/0 DOWN DOWN --
M-GE1/0/0/1 DOWN DOWN --
M-GE1/0/0/2 UP UP --
M-GE1/0/0/3 DOWN DOWN --
[MDCA] interface m-gigabitethernet 1/0/0/2
[MDCA-M-GigabitEthernet1/0/0/2] ip address 192.168.1.251 24
[MDCA-M-GigabitEthernet1/0/0/2] quit
[MDCA] telnet server enable
[MDCA] user-interface vty 0 63
[MDCA-line-vty0-63] authentication-mode none
[MDCA-line-vty0-63] user-role mdc-admin
# 從MDC A返回缺省MDC。
[MDCA-line-vty0-63] return
<MDCA> switchback
[IRF]
(4) 創建並配置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和Stanby設備接口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,Standby設備接口板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,並按照提示信息鍵入組合鍵Ctrl+D終止MDC的自動配置過程,進入MDC B的命令行界麵進行配置。
[IRF] switchto mdc MDCB
******************************************************************************
* Copyright (c) 2004-2019 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
Automatic configuration is running, press CTRL_C or CTRL_D to break or press CTRL_B to switch back to the default MDC.
<IRF> system-view
# 將MDC B的名稱修改為MDCB,以便和其它MDC區別。
[IRF] sysname MDCB
(5) 配置MDC B網管口的IP地址、使能Telnet服務。
# 配置MDC B的網管口的IP地址、使能Telnet服務等基礎配置,供用戶遠程登錄MDC B。
[MDCB] display interface m-gigabitethernet brief
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
M-GE1/0/0/0 DOWN DOWN --
M-GE1/0/0/1 DOWN DOWN --
M-GE1/0/0/2 UP UP --
M-GE1/0/0/3 DOWN DOWN --
[MDCB] interface m-gigabitethernet 1/0/0/2
[MDCB-M-GigabitEthernet1/0/0/2] ip address 192.168.2.252 24
[MDCB-M-GigabitEthernet1/0/0/2] quit
[MDCB] telnet server enable
[MDCB] user-interface vty 0 63
[MDCB-line-vty0-63] authentication-mode none
[MDCB-line-vty0-63] user-role mdc-admin
[MDCB-line-vty0-63] return
# 從MDC B返回缺省MDC。
<MDCB> switchback
[IRF]
(1) 查看MDC是否存在並且運轉正常。(此時,IRF上應該有三台處於正常工作active狀態的MDC)
[IRF] display mdc
ID Name Status
1 Admin active
2 MDCA active
3 MDCB active
(2) 顯示IRF鏈路信息,將看到IRF鏈路處於UP狀態,且處於缺省MDC中。
[IRF] display irf link
Member 1
IRF Port Interface Status
1 ten-gigabitEthernet1/1/0/1(MDC1) UP
2 disable --
Member 2
IRF Port Interface Status
1 disable --
2 ten-gigabitEthernet2/1/0/1(MDC1) UP
(3) 模擬部門A的管理用戶登錄到MDC A,可以查看本設備的當前配置。
C:\> telnet 192.168.1.251
******************************************************************************
* Copyright (c) 2004-2019 New H3C Technologies Co., Ltd. All rights reserved.*
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
<MDCA> display current-configuration
顯示信息略……。
· IRF的配置文件:
#
mdc Admin id 1
undo location chassis 1 slot 2
undo location chassis 2 slot 2
undo location chassis 1 slot 3
undo location chassis 2 slot 3
#
mdc MDCA id 2
location chassis 1 slot 2
location chassis 2 slot 2
limit-resource cpu weight 5
mdc start
allocate interface ten-gigabitEthernet 1/2/0/1 to ten-gigabitEthernet 1/2/0/16
allocate interface ten-gigabitEthernet 2/2/0/1 to ten-gigabitEthernet 2/2/0/16
#
mdc MDCB id 3
location chassis 1 slot 3
location chassis 2 slot 3
limit-resource cpu weight 5
mdc start
allocate interface ten-gigabitEthernet 1/3/0/1 to ten-gigabitEthernet 1/3/0/16
allocate interface ten-gigabitEthernet 2/3/0/1 to ten-gigabitEthernet 2/3/0/16
#
sysname IRF
#
irf member 1 priority 1
irf member 2 priority 1
#
irf-port 1/1
port group interface ten-gigabitEthernet 1/1/0/1 mode enhanced
#
irf-port 2/2
port group interface ten-gigabitEthernet 2/1/0/1 mode enhanced
#
return
設備對MDC相關配置有序要求,請參照配置步驟進行。Device的配置文件僅記錄了Device上執行的命令行,供參考。
· MDC A的配置文件:
#
sysname MDCA
#
telnet server enable
#
interface M-GigabitEthernet1/0/0/0
ip address 192.168.1.251 255.255.255.0
#
line vty 0 63
authentication-mode none
user-role mdc-admin
user-role mdc-operator
#
return
· MDC B的配置文件:
#
sysname MDCB
#
telnet server enable
#
interface M-GigabitEthernet1/0/0/0
ip address 192.168.2.252 255.255.255.0
#
line vty 0 63
authentication-mode none
user-role mdc-admin
user-role mdc-operator
#
return
· H3C S10500係列交換機 虛擬化技術配置指導-R758X
· H3C S10500係列交換機 虛擬化技術命令參考-R758X
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!