版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、圖 3-128 配置 VRRP主備備份組網(wǎng)圖SwitchA-GigabitEthernet1/0/1SwitchA-GigabitEthernet1/0/1SwitchA-GigabitEthernet1/0/1SwitchA-GigabitEthernet1/0/1port link-type hybridport hybrid pvid vlan 300port hybrid untagged vlan 300 quit配置思路采用 VRRP主備備份實現(xiàn)網(wǎng)關(guān)冗余備份,配置思路如下:1. 配置各設備接口 IP 地址及路由協(xié)議,使各設備間網(wǎng)絡層連通。2. 在 SwitchA 和 SwitchB
2、 上配置 VRRP備份組。 其中, SwitchA 上配置較高優(yōu)先級和 20 秒搶占延時,作為 Master 設備承擔流量轉(zhuǎn)發(fā); SwitchB 上配置較低優(yōu)先級,作為備用 交換機,實現(xiàn)網(wǎng)關(guān)冗余備份。操作步驟1. 配置設備間的網(wǎng)絡互連# 配置設備各接口的 IP 地址, 以 SwitchA 為例。 SwitchB 和 SwitchC 的配置與 SwitchA 類似,詳見配置文件。<HUAWEI>s ystem-viewHUAWEI sysname SwitchA SwitchA vlan batch 100 300SwitchA interface gigabitethernet 1
3、/0/1SwitchA interface gigabitethernet 1/0/2port link-type hybridport hybrid pvid vlan 100SwitchA-GigabitEthernet1/0/2port hybrid untagged vlan 100SwitchA-GigabitEthernet1/0/2quitSwitchA interface vlanif 100SwitchA-Vlanif100ip address24SwitchA-Vlanif100quitSwitchA interface vlanif 300SwitchA-Vlanif30
4、0ip address24SwitchA-Vlanif300quit# 配置 Switch 的二層轉(zhuǎn)發(fā)功能。<HUAWEI>s ystem-viewHUAWEI sysname SwitchSwitch vlan 100Switch-vlan100 quitSwitch interface gigabitethernet 1/0/1Switch-GigabitEthernet1/0/1port link-type hybridSwitch-GigabitEthernet1/0/1port hybrid pvid vlan 100Switch-GigabitEthernet1/0/1
5、port hybrid untagged vlan 100Switch-GigabitEthernet1/0/1quitSwitch interface gigabitethernet 1/0/2Switch-GigabitEthernet1/0/2port link-type hybridSwitch-GigabitEthernet1/0/2port hybrid pvid vlan 100Switch-GigabitEthernet1/0/2port hybrid untagged vlan 100Switch-GigabitEthernet1/0/2quit# 配置 SwitchA 、
6、SwitchBSwitchC 間采用 OSPF協(xié)議進行互連。以 SwitchA 為例,SwitchB 和 SwitchC 的配置與SwitchA 類似,詳見配置文件。SwitchA ospf 1SwitchA-ospf-1 area 0 network network quitSwitchA-ospf-1 quit2.配置 VRRP備份組SwitchA-GigabitEthernet1/0/2 SwitchA-GigabitEthernet1/0/2# 在 SwitchA 上創(chuàng)建 VRRP備份組 1,配置 SwitchA 在該備份組中的優(yōu)先級為 120,并配置搶占時間為 20 秒。Switch
7、A interface vlanif 100SwitchA-Vlanif100 vrrp vrid 1 virtual-ipvrrp vrid 1 priority 120/ 設備在 VRRP備份組中的優(yōu)先級缺省為 100,修改 Master 設備的優(yōu)先級大于 Backup 設備 SwitchA-Vlanif100 vrrp vrid 1 preempt-mode timer delay 20 / 設備在 VRRP備份 組中缺省采用立即搶占方式。修改 Master 設備的延遲搶占時間,以避免在網(wǎng)絡環(huán)境不穩(wěn)定 時,由于雙方頻繁搶占而導致流量中斷的問題SwitchA-Vlanif100 quit#
8、 在 SwitchB 上創(chuàng)建 VRRP備份組 1,其在該備份組中的優(yōu)先級采用缺省值100(不需要配置)。SwitchB interface vlanif 100SwitchB-Vlanif100 vrrp vrid 1 virtual-ip quit3. 驗證配置結(jié)果# 完成上述配置以后,在 SwitchA 和 SwitchB 上分別執(zhí)行 display vrrp 命令,可以看 到 SwitchA 在備份組中的狀態(tài)為 Master , SwitchB 在備份組中的狀態(tài)為 Backup 。 SwitchA display vrrpVlanif100 | Virtual Router 1State
9、 : MasterVirtual IP : Master IP : PriorityRun : 120PriorityConfig : 120MasterPriority : 120Preempt : YES Delay Time : 20 sTimerRun : 1 sTimerConfig : 1 sAuth type : NONEVirtual MAC : 0000-5e00-0101Check TTL : YESConfig type : normal-vrrpBackup-forward : disabledCreate time : 2012-01-12 20:15:46Last
10、change time : 2012-01-12 20:15:46SwitchB display vrrpVlanif100 | Virtual Router 1State : BackupVirtual IP : Master IP : PriorityRun : 100PriorityConfig : 100MasterPriority : 120Preempt : YES Delay Time : 0 sTimerRun : 1 sTimerConfig : 1 sAuth type : NONEVirtual MAC : 0000-5e00-0101Check TTL : YESCon
11、fig type : normal-vrrpBackup-forward : disabledCreate time : 2012-01-12 20:15:46SwitchA 上可以看上該路由為 OSPFLast change time : 2012-01-12 20:15:46# 在 SwitchA 和 SwitchB 上執(zhí)行 display ip routing-table 命令, 到路由表中有一條目的地址為虛擬 IP 地址的直連路由,而 SwitchB 路由。 SwitchA 和 SwitchB 上的顯示信息如下。SwitchA display ip routing-tableRoute
12、 Flags: R - relay, D - download to fibRouting Tables: PublicDestinations : 9Routes : 10Destination/Mask Proto Pre CostFlags NextHopInterfaceDirect00DVlanif100Direct00DVlanif100Direct00D Vlanif100Direct00DInLoopBack0Direct00DInLoopBack0OSPF102DVlanif300Direct 00DVlanif300Direct 00DVlanif300OSPF102DVl
13、anif100OSPF10 2D Vlanif300SwitchB display ip routing-tableRoute Flags: R - relay, D - download to fibRouting Tables: PublicDestinations : 9Routes : 10Destination/Mask Proto Pre Cost Flags NextHop InterfaceDirect00DVlanif100Direct00DVlanif100OSPF102D Vlanif100Direct00DInLoopBack0Direct00DInLoopBack0O
14、SPF10 2DVlanif200OSPF102DVlanif100OSPF10 2D Vlanif200Direct 00DVlanif200Direct 00DVlanif200# 在 SwitchA 的接口 GE1/0/2 上執(zhí)行 shutdown 命令,模擬 SwitchA 出現(xiàn)故障。 SwitchA interface gigabitethernet 1/0/2SwitchA-GigabitEthernet1/0/2shutdownSwitchA-GigabitEthernet1/0/2quit# 在 SwitchB 上執(zhí)行 display vrrp 命令查看 VRRP狀態(tài)信息, 可
15、以看到 SwitchB 的狀態(tài) 是 Master 。SwitchB display vrrpVlanif100 | Virtual Router 1State : MasterVirtual IP : Master IP : PriorityRun : 100PriorityConfig : 100MasterPriority : 100Preempt : YES Delay Time : 0 sTimerRun : 1 sTimerConfig : 1 sAuth type : NONEVirtual MAC : 0000-5e00-0101Check TTL : YESConfig typ
16、e : normal-vrrpBackup-forward : disabledCreate time : 2012-01-12 20:15:46Last change time : 2012-01-12 20:18:40# 在 SwitchA 的接口 GE1/0/2 上執(zhí)行 undo shutdown 命令。SwitchA interface gigabitethernet 1/0/2SwitchA-GigabitEthernet1/0/2undo shutdownSwitchA-GigabitEthernet1/0/2quit# 等待 20 秒后,在 SwitchA 上執(zhí)行 display
17、 vrrp 命令查看 VRRP狀態(tài)信息,可以看到 SwitchA 的狀態(tài)恢復成 Master 。SwitchA display vrrpVlanif100 | Virtual Router 1State : MasterVirtual IP : Master IP : PriorityRun : 120PriorityConfig : 120MasterPriority : 120Preempt : YES Delay Time : 20 sTimerRun : 1 sTimerConfig : 1 sAuth type : NONEVirtual MAC : 0000-5e00-0101Ch
18、eck TTL : YESConfig type : normal-vrrpBackup-forward : disabledCreate time : 2012-01-12 20:15:46Last change time : 2012-01-12 20:20:56配置文件SwitchA 的配置文件#sysname SwitchA# vlan batch 100 300#interface Vlanif100ip address vrrp vrid 1 virtual-ip vrrp vrid 1 priority 120vrrp vrid 1 preempt-mode timer dela
19、y 20# interface Vlanif300ip address GigabitEthernet1/0/1port link-type hybridport hybrid pvid vlan 300port hybrid untagged vlan 300#interface GigabitEthernet1/0/2port link-type hybridport hybrid pvid vlan 100port hybrid untagged vlan 100#ospf 1area network network 的配置文件#sysname SwitchB#vlan batch 10
20、0 200#interface Vlanif100ip address vrrp vrid 1 virtual-ip Vlanif200ip address GigabitEthernet1/0/1port link-type hybridport hybrid pvid vlan 200port hybrid untagged vlan 200#interface GigabitEthernet1/0/2 port link-type hybridport hybrid pvid vlan 100port hybrid untagged vlan 100 ospf 1area network network的配置文件#sysname SwitchC# vlan batch 200 300 400 #in
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年南京住建部房屋租賃合同示范文本更新版4篇
- 二零二五年度門窗品牌代理銷售合同2篇
- 2025年度內(nèi)部施工質(zhì)量監(jiān)理合同協(xié)議書
- 二零二五年度旅游大巴租賃與夜間觀光服務合同3篇
- 2025年度棉紗產(chǎn)業(yè)技術(shù)創(chuàng)新戰(zhàn)略聯(lián)盟成立合同4篇
- 二零二五年度農(nóng)業(yè)廢棄物資源化利用與農(nóng)產(chǎn)品包裝回收合同4篇
- 2025版新能源車輛融資租賃擔保合同4篇
- 2025衛(wèi)生院與保潔人員勞動合同規(guī)范文本3篇
- 二零二五年度特色苗圃土地租賃與種植技術(shù)合作合同3篇
- 2025年度國際工程項目外籍專家聘用合同
- 拉薩市2025屆高三第一次聯(lián)考(一模)語文試卷(含答案解析)
- 《保密法》培訓課件
- 回收二手機免責協(xié)議書模板
- (正式版)JC∕T 60023-2024 石膏條板應用技術(shù)規(guī)程
- 人教版高中生物學新舊教材知識差異盤點
- (權(quán)變)領(lǐng)導行為理論
- 2024屆上海市浦東新區(qū)高三二模英語卷
- 2024年智慧工地相關(guān)知識考試試題及答案
- GB/T 8005.2-2011鋁及鋁合金術(shù)語第2部分:化學分析
- 不動產(chǎn)登記實務培訓教程課件
- 不銹鋼制作合同范本(3篇)
評論
0/150
提交評論