<abbr id="ysm8o"></abbr>
  • <button id="ysm8o"></button>
  • <source id="ysm8o"></source>
  • <cite id="ysm8o"></cite>
    <button id="ysm8o"></button>
  • <samp id="ysm8o"></samp>
    | EN021-62279227發(fā)送郵件
    在線QQ咨詢
    • 上海普用--周班長
    • 上海普用--老王
    • 上海普用--阿胖

    021-62279227

    在線留言

    技術(shù)資料|Technical trainings

    首頁 > 新聞中心 > 技術(shù)資料

    配置交換機VRRP主備備份

    Admin2017-03-01 16:20:46

    示例圖片:

    fig_dc_cfg_vrrp_106501.png

    配置思路:

    采用VRRP主備備份實現(xiàn)網(wǎng)關(guān)冗余備份,配置思路如下:

    配置各設(shè)備接口IP地址及路由協(xié)議,使各設(shè)備間網(wǎng)絡(luò)層連通。

    在SwitchA和SwitchB上配置VRRP備份組。其中,SwitchA上配置較高優(yōu)先級和20秒搶占延時,作為Master設(shè)備承擔(dān)流量轉(zhuǎn)發(fā);SwitchB上配置較低優(yōu)先級,作為備用交換機,實現(xiàn)網(wǎng)關(guān)冗余備份。


    操作步驟:

    配置設(shè)備間的網(wǎng)絡(luò)互連

    # 配置設(shè)備各接口的IP地址,以SwitchA為例。SwitchB和SwitchC的配置與SwitchA類似,詳見配置文件。

    <HUAWEI> system-view

    [HUAWEI] sysname SwitchA

    [SwitchA] vlan batch 100 300

    [SwitchA] interface gigabitethernet 1/0/1

    [SwitchA-GigabitEthernet1/0/1] port link-type hybrid

    [SwitchA-GigabitEthernet1/0/1] port hybrid pvid vlan 300

    [SwitchA-GigabitEthernet1/0/1] port hybrid untagged vlan 300

    [SwitchA-GigabitEthernet1/0/1] quit

    [SwitchA] interface gigabitethernet 1/0/2

    [SwitchA-GigabitEthernet1/0/2] port link-type hybrid

    [SwitchA-GigabitEthernet1/0/2] port hybrid pvid vlan 100

    [SwitchA-GigabitEthernet1/0/2] port hybrid untagged vlan 100

    [SwitchA-GigabitEthernet1/0/2] quit

    [SwitchA] interface vlanif 100

    [SwitchA-Vlanif100] ip address 10.1.1.1 24

    [SwitchA-Vlanif100] quit

    [SwitchA] interface vlanif 300

    [SwitchA-Vlanif300] ip address 192.168.1.1 24

    [SwitchA-Vlanif300] quit

    # 配置Switch的二層轉(zhuǎn)發(fā)功能。

    <HUAWEI> system-view

    [HUAWEI] sysname Switch

    [Switch] vlan 100

    [Switch-vlan100] quit

    [Switch] interface gigabitethernet 1/0/1

    [Switch-GigabitEthernet1/0/1] port link-type hybrid

    [Switch-GigabitEthernet1/0/1] port hybrid pvid vlan 100

    [Switch-GigabitEthernet1/0/1] port hybrid untagged vlan 100

    [Switch-GigabitEthernet1/0/1] quit

    [Switch] interface gigabitethernet 1/0/2

    [Switch-GigabitEthernet1/0/2] port link-type hybrid

    [Switch-GigabitEthernet1/0/2] port hybrid pvid vlan 100

    [Switch-GigabitEthernet1/0/2] port hybrid untagged vlan 100

    [Switch-GigabitEthernet1/0/2] quit

    # 配置SwitchA、SwitchB和SwitchC間采用OSPF協(xié)議進行互連。以SwitchA為例,SwitchB和SwitchC的配置與SwitchA類似,詳見配置文件。

    [SwitchA] ospf 1

    [SwitchA-ospf-1] area 0

    [SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

    [SwitchA-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255

    [SwitchA-ospf-1-area-0.0.0.0] quit

    [SwitchA-ospf-1] quit

    配置VRRP備份組

    # 在SwitchA上創(chuàng)建VRRP備份組1,配置SwitchA在該備份組中的優(yōu)先級為120,并配置搶占時間為20秒。

    [SwitchA] interface vlanif 100

    [SwitchA-Vlanif100] vrrp vrid 1 virtual-ip 10.1.1.111

    [SwitchA-Vlanif100] vrrp vrid 1 priority 120

    [SwitchA-Vlanif100] vrrp vrid 1 preempt-mode timer delay 20

    [SwitchA-Vlanif100] quit

    # 在SwitchB上創(chuàng)建VRRP備份組1,其在該備份組中的優(yōu)先級為缺省值100。

    [SwitchB] interface vlanif 100

    [SwitchB-Vlanif100] vrrp vrid 1 virtual-ip 10.1.1.111

    [SwitchB-Vlanif100] quit


    關(guān)于我們 | 產(chǎn)品展示 | 在線留言 | 公司地址 | 網(wǎng)站地圖

    Copyright ? 2014 - 2018> 上海普用電子科技有限公司 版權(quán)所有 滬ICP備17005640號-2

    <abbr id="ysm8o"></abbr>
  • <button id="ysm8o"></button>
  • <source id="ysm8o"></source>
  • <cite id="ysm8o"></cite>
    <button id="ysm8o"></button>
  • <samp id="ysm8o"></samp>