華為交換機VRRP配置_第1頁
華為交換機VRRP配置_第2頁
華為交換機VRRP配置_第3頁
華為交換機VRRP配置_第4頁
華為交換機VRRP配置_第5頁
已閱讀5頁,還剩10頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

1、實用標準文檔圖 3-128 配置 VRRP 主備備份組網(wǎng)圖配置思路采用 VRRP 主備備份實現(xiàn)網(wǎng)關冗余備份,配置思路如下:1. 配置各設備接口 IP 地址及路由協(xié)議,使各設備間網(wǎng)絡層連通。2.在 SwitchA和 SwitchB上配置 VRRP 備份組。其中,SwitchA上配置較高優(yōu)先級和20秒搶占延時,作為Master設備承擔流量轉(zhuǎn)發(fā);SwitchB上配置較低優(yōu)先級,作為備用交換機,實現(xiàn)網(wǎng)關冗余備份。操作步驟1. 配置設備間的網(wǎng)絡互連# 配置設備各接口的IP 地址,以 SwitchA為例。SwitchB和 SwitchC的配置與 SwitchA類似,詳見配置文件。<HUAWEI>

2、;system-viewHUAWEIsysname SwitchASwitchAvlan batch 100 300文案大全實用標準文檔SwitchAinterface gigabitethernet 1/0/1SwitchA-GigabitEthernet1/0/1port link-type hybridSwitchA-GigabitEthernet1/0/1port hybrid pvid vlan 300SwitchA-GigabitEthernet1/0/1port hybrid untagged vlan 300SwitchA-GigabitEthernet1/0/1quitSwi

3、tchAinterface gigabitethernet 1/0/2SwitchA-GigabitEthernet1/0/2port link-type hybridSwitchA-GigabitEthernet1/0/2port hybrid pvid vlan 100SwitchA-GigabitEthernet1/0/2port hybrid untagged vlan 100SwitchA-GigabitEthernet1/0/2quitSwitchAinterface vlanif 100SwitchA-Vlanif100ip address 10.1.1.1 24SwitchA-

4、Vlanif100quitSwitchAinterface vlanif 300SwitchA-Vlanif300ip address 192.168.1.1 24SwitchA-Vlanif300quit# 配置 Switch 的二層轉(zhuǎn)發(fā)功能。<HUAWEI>system-viewHUAWEIsysname SwitchSwitchvlan 100Switch-vlan100quitSwitchinterface gigabitethernet 1/0/1文案大全實用標準文檔Switch-GigabitEthernet1/0/1port link-type hybridSwitc

5、h-GigabitEthernet1/0/1port hybrid pvid vlan 100Switch-GigabitEthernet1/0/1port hybrid untagged vlan 100Switch-GigabitEthernet1/0/1quitSwitchinterface gigabitethernet 1/0/2Switch-GigabitEthernet1/0/2port link-type hybridSwitch-GigabitEthernet1/0/2port hybrid pvid vlan 100Switch-GigabitEthernet1/0/2po

6、rt hybrid untagged vlan 100Switch-GigabitEthernet1/0/2quit# 配置 SwitchA、SwitchB和 SwitchC間采用 OSPF 協(xié)議進行互連。 以 SwitchA為例,SwitchB和 SwitchC的配置與 SwitchA類似,詳見配置文件。SwitchAospf 1SwitchA-ospf-1area 0SwitchA-ospf-1-area-0.0.0.0network 10.1.1.0 0.0.0.255SwitchA-ospf-1-area-0.0.0.0network 192.168.1.0 0.0.0.255Swit

7、chA-ospf-1-area-0.0.0.0quitSwitchA-ospf-1quit2. 配置 VRRP 備份組# 在 SwitchA上創(chuàng)建 VRRP 備份組 1,配置 SwitchA在該備份組中的優(yōu)先級為120 ,并配置搶占時間為20 秒。SwitchAinterface vlanif 100SwitchA-Vlanif100vrrp vrid 1 virtual-ip 10.1.1.111文案大全實用標準文檔SwitchA-Vlanif100vrrp vrid 1 priority 120/ 設備在 VRRP 備份組中的優(yōu)先級缺省為100 ,修改 Master設備的優(yōu)先級大于Back

8、up設備SwitchA-Vlanif100vrrp vrid 1 preempt-mode timer delay 20/ 設備在 VRRP 備份組中缺省采用立即搶占方式。修改 Master設備的延遲搶占時間,以避免在網(wǎng)絡環(huán)境不穩(wěn)定時,由于雙方頻繁搶占而導致流量中斷的問題SwitchA-Vlanif100quit# 在 SwitchB上創(chuàng)建 VRRP 備份組 1,其在該備份組中的優(yōu)先級采用缺省值100 (不需要配置)。SwitchBinterface vlanif 100SwitchB-Vlanif100vrrp vrid 1 virtual-ip 10.1.1.111SwitchB-Vlan

9、if100quit3. 驗證配置結果# 完成上述配置以后,在SwitchA和 SwitchB上分別執(zhí)行display vrrp命令,可以看到 SwitchA在備份組中的狀態(tài)為Master , SwitchB在備份組中的狀態(tài)為Backup 。SwitchAdisplay vrrpVlanif100 | Virtual Router 1State : MasterVirtual IP : 10.1.1.111Master IP : 10.1.1.1PriorityRun : 120PriorityConfig : 120MasterPriority : 120文案大全實用標準文檔Preempt :

10、 YESDelay 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 change time : 2012-01-12 20:15:46SwitchBdisplay vrrpVlanif100 | Virtual Router 1State : BackupVirtual

11、 IP : 10.1.1.111Master IP : 10.1.1.1PriorityRun : 100PriorityConfig : 100MasterPriority : 120Preempt : YESDelay Time : 0 sTimerRun : 1 sTimerConfig : 1 sAuth type : NONE文案大全實用標準文檔Virtual MAC : 0000-5e00-0101Check TTL : YESConfig type : normal-vrrpBackup-forward : disabledCreate time : 2012-01-12 20:

12、15:46Last change time : 2012-01-12 20:15:46# 在 SwitchA和 SwitchB上執(zhí)行 display ip routing-table命令, SwitchA上可以看到路由表中有一條目的地址為虛擬IP 地址的直連路由, 而 SwitchB上該路由為OSPF路由。 SwitchA和 SwitchB上的顯示信息如下。SwitchAdisplay ip routing-tableRoute Flags: R - relay, D - download to fib-Routing Tables: PublicDestinations : 9Routes

13、: 10Destination/MaskProtoPreCostFlags NextHopInterface10.1.1.0/24Direct00D10.1.1.1Vlanif10010.1.1.1/32Direct00D127.0.0.1Vlanif10010.1.1.111/32Direct00D127.0.0.1Vlanif100127.0.0.0/8Direct00D127.0.0.1InLoopBack0文案大全實用標準文檔127.0.0.1/32Direct00D127.0.0.1InLoopBack0172.16.1.0/24OSPF102D192.168.1.2Vlanif30

14、0192.168.1.0/24Direct00D192.168.1.1Vlanif300192.168.1.1/32Direct00D127.0.0.1Vlanif300192.168.2.0/24OSPF102D10.1.1.2Vlanif100OSPF102D192.168.1.2Vlanif300SwitchB display ip routing-tableRoute Flags: R - relay, D - download to fib-Routing Tables: PublicDestinations : 9Routes : 10Destination/MaskProtoPr

15、eCostFlags NextHopInterface10.1.1.0/24Direct00D10.1.1.2Vlanif10010.1.1.2/32Direct00D127.0.0.1Vlanif10010.1.1.111/32OSPF102D10.1.1.1Vlanif100127.0.0.0/8Direct00D127.0.0.1InLoopBack0127.0.0.1/32Direct00D127.0.0.1InLoopBack0172.16.1.0/24OSPF102D192.168.2.2Vlanif200文案大全實用標準文檔192.168.1.0/24OSPF102D10.1.1

16、.1Vlanif100OSPF102D192.168.2.2Vlanif200192.168.2.0/24Direct00D192.168.2.1Vlanif200192.168.2.1/32Direct00D127.0.0.1Vlanif200# 在 SwitchA的接口 GE1/0/2上執(zhí)行 shutdown命令,模擬SwitchA出現(xiàn)故障。SwitchAinterface gigabitethernet 1/0/2SwitchA-GigabitEthernet1/0/2shutdownSwitchA-GigabitEthernet1/0/2quit# 在 SwitchB上執(zhí)行 displ

17、ay vrrp命令查看VRRP 狀態(tài)信息,可以看到SwitchB的狀態(tài)是 Master 。SwitchBdisplay vrrpVlanif100 | Virtual Router 1State : MasterVirtual IP : 10.1.1.111Master IP : 10.1.1.2PriorityRun : 100PriorityConfig : 100MasterPriority : 100Preempt : YESDelay Time : 0 sTimerRun : 1 sTimerConfig : 1 sAuth type : NONE文案大全實用標準文檔Virtual

18、MAC : 0000-5e00-0101Check TTL : YESConfig type : 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命令。SwitchAinterface gigabitethernet 1/0/2SwitchA-GigabitEthernet1/0/2undo shutdownSwitchA-GigabitEthernet

19、1/0/2quit# 等待 20 秒后,在SwitchA上執(zhí)行 display vrrp命令查看VRRP 狀態(tài)信息,可以看到 SwitchA 的狀態(tài)恢復成 Master 。SwitchAdisplay vrrpVlanif100 | Virtual Router 1State : MasterVirtual IP : 10.1.1.111Master IP : 10.1.1.1PriorityRun : 120PriorityConfig : 120MasterPriority : 120Preempt : YESDelay Time : 20 sTimerRun : 1 s文案大全實用標準文

20、檔TimerConfig : 1 sAuth type : NONEVirtual MAC : 0000-5e00-0101Check 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 Vlanif100? ip address 10.

21、1.1.1 255.255.255.0? vrrp vrid 1 virtual-ip 10.1.1.111? vrrp vrid 1 priority 120? vrrp vrid 1 preempt-mode timer delay 20? #文案大全實用標準文檔? interface Vlanif300? ip address 192.168.1.1 255.255.255.0? #? interface GigabitEthernet1/0/1? port link-type hybrid? port hybrid pvid vlan 300? port hybrid untagged

22、 vlan 300? #? interface GigabitEthernet1/0/2? port link-type hybrid? port hybrid pvid vlan 100? port hybrid untagged vlan 100? #? ospf 1? area 0.0.0.0? network 10.1.1.0 0.0.0.255? network 192.168.1.0 0.0.0.255? #return? SwitchB 的配置文件? #? sysname SwitchB文案大全實用標準文檔? #? vlan batch 100 200? #? interface

23、 Vlanif100? ip address 10.1.1.2 255.255.255.0? vrrp vrid 1 virtual-ip 10.1.1.111? #? interface Vlanif200? ip address 192.168.2.1 255.255.255.0? #? interface GigabitEthernet1/0/1? port link-type hybrid? port hybrid pvid vlan 200? port hybrid untagged vlan 200? #? interface GigabitEthernet1/0/2? port

24、link-type hybrid? port hybrid pvid vlan 100? port hybrid untagged vlan 100? #? ospf 1? area 0.0.0.0文案大全實用標準文檔? network 10.1.1.0 0.0.0.255? network 192.168.2.0 0.0.0.255? #return? SwitchC 的配置文件? #? sysname SwitchC? #? vlan batch 200 300 400? #? interface Vlanif200? ip address 192.168.2.2 255.255.255.0? #? interface Vlanif300? ip address 192.168.1.2 255.255.255.0? #? interface Vlanif400? ip address 172.16

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論