华为的MSTPVRRP配置
- 格式:docx
- 大小:67.63 KB
- 文档页数:8
图3-128??配置VRRP主备备份组网图配置思路采用VRRP主备备份实现网关冗余备份,配置思路如下:1.配置各设备接口IP地址及路由协议,使各设备间网络层连通。
2.在SwitchA和SwitchB上配置VRRP备份组。
其中,SwitchA上配置较高优先级和20秒抢占延时,作为Master设备承担流量转发;SwitchB上配置较低优先级,作为备用交换机,实现网关冗余备份。
操作步骤1.配置设备间的网络互连#配置设备各接口的IP地址,以SwitchA为例。
SwitchB和SwitchC的配置与SwitchA类似,详见配置文件。
<HUAWEI>system-view[HUAWEI]sysnameSwitchA[SwitchA]vlanbatch100300[SwitchA]interfacegigabitethernet1/0/1[SwitchA-GigabitEthernet1/0/1]portlink-typehybrid[SwitchA-GigabitEthernet1/0/1]porthybridpvidvlan300[SwitchA-GigabitEthernet1/0/1]porthybriduntaggedvlan300[SwitchA-GigabitEthernet1/0/1]quit[SwitchA]interfacegigabitethernet1/0/2[SwitchA-GigabitEthernet1/0/2]portlink-typehybrid[SwitchA-GigabitEthernet1/0/2]porthybridpvidvlan100[SwitchA-GigabitEthernet1/0/2]porthybriduntaggedvlan100[SwitchA-GigabitEthernet1/0/2]quit[SwitchA]interfacevlanif100[SwitchA-Vlanif100]ipaddress24[SwitchA-Vlanif100]quit[SwitchA]interfacevlanif300[SwitchA-Vlanif300]ipaddress24[SwitchA-Vlanif300]quit#配置Switch的二层转发功能。
华为路由器配置详细教程推荐文章华为交换机ospf的配置方法步骤热度:华为A1无线路由器的安装教程热度:华为WS832无线路由器的安装教程图解热度:华为A1无线路由器安装教程热度:华为WS326无线路由器的安装教程热度:华为路由器的品质是众所周知的,但其设备的配置方法可能就不是很多人知道了吧,欢迎大家来到店铺,本文为大家讲解华为路由器配置详细教程,欢迎大家阅读学习,希望能帮到你。
华为路由器配置详细教程一目前华为路由器的市场份额还是非常高的,同时其配置和其他的路由器也有一些差别,首先让大家了解下VRP软件升级操作,然后全面介绍在默认链路层封装上的区别(主要用于DDN的配置)。
华为路由器与同档次的CISCO路由器在功能特性与配置界面上完全一致,有些方面还根据国内用户的需求作了很好的改进。
例如中英文可切换的配置与调试界面,使中文用户再也不用面对着一大堆的英文专业单词而无从下手了。
另外它的软件升级,远程配置,备份中心,P <——Element not supported - Type: 8 Name: #comment——>PPP回拨,华为路由器热备份等,对用户来说均是极有用的功能特性。
在配置方面,华为路由器以前的软件版本(VRP1.0-相当于CISCO的IOS)与CISCO有细微的差别,但目前的版本(VRP1.1)已和CISCO兼容,下面首先介绍VRP软件的升级方法,然后给出配置上的说明。
一、 VRP软件升级操作升级前用户应了解自己路由器的硬件配置以及相应的引导软件bootrom的版本,因为这关系到是否可以升级以及升级的方法,否则升级失败会导致路由器不能运行。
在此我们以从VRP1.0升级到VRP1.1为例说明升级的方法。
1.路由器配置电缆一端与PC机的串口一端与路由器的console口连接。
2.在win95/98下建立使用直连线的超级终端,参数:波特率9600,数据位8,停止位1,无效验,无流控,VT100终端类型3.超级终端连机后打开路由器电源,屏幕上会出现引导信息,在出现:Press Ctrl-B to enter Boot Menu.时三秒内按下Ctrl+b,会提示输入密码Please input Bootrom password:默认密码为空,直接回车进入引导菜单Boot Menu,在该菜单下选1,即Download application program升级VRP软件,之后屏幕提示选择下载波特率,我们一般选择38400 bps,随即出现提示信息:Download speed is 38400 bps.Please change the terminal's speed to 38400 bps,and select XMODEM protocol.Press ENTER key when ready.此时进入超级终端“属性”,修改波特率为38400,修改后应断开超级终端的连接,再进入连接状态,以使新属性起效,之后屏幕提示:Downloading…CCC。
双核心(MSTP+VRRP)的拓扑实现和配置实例1 配置VRRP在实验拓扑图中,由于有多条链路产生环路,所以我们在实验初始时一定要将某些端口堵塞(初始化时已将RG-S35B的f0/1-4四个端口堵塞,在配置完毕进行测试时才可以打开).否则产生环路后,会发现设备的cpu利用率会达到100%(使用命令show cpu查看)。
RG-S35A(config)#interface vlan 10RG-S35A(config-if)#ip address 192.168.10.254 255.255.255.0 !配置VLAN10的IP 地址RG-S35A(config-if)#standby 1 ip 192.168.10.250 !配置虚拟IPRG-S35A(config-if)#standby 1 preempt!设为抢占模式RG-S35A(config-if)#standby 1 priority 254 !VLAN10的standby优先级设为254RG-S35A(config-if)#exitRG-S35A(config)#interface vlan 20 !VLAN20的standby不设优先级,默认为100RG-S35A(config-if)#ip address 192.168.20.253 255.255.255.0 !配置VLAN20的IP 地址RG-S35A(config-if)#standby 2 ip 192.168.20.250 !配置虚拟IPRG-S35A(config-if)#standby 2 preempt !设为抢占模式RG-S35A(config-if)#exitRG-S35A(config)#interface vlan 30RG-S35A(config-if)#ip address 192.168.30.254 255.255.255.0 !配置VLAN30的IP 地址RG-S35A(config-if)#standby 3 ip 192.168.30.250 !配置虚拟IPRG-S35A(config-if)#standby 3 preempt !设为抢占模式RG-S35A(config-if)#standby 3 priority 254 !VLAN30的standby优先级设为254RG-S35A(config-if)#exitRG-S35A(config)#interface vlan 40 !VLAN20的standby不设优先级,默认为100RG-S35A(config-if)#ip address 192.168.40.253 255.255.255.0 !配置VLAN40的IP 地址RG-S35A(config-if)#standby 4 ip 192.168.40.250 !配置虚拟IPRG-S35A(config-if)#stand 4 preempt !设为抢占模式RG-S35A(config-if)#exitRG-S35A(config)#exitRG-S35B把vlan20 40 设置为standby 2、4 priority 2542 配置RG-S35A与RG-S35B的端口聚合理论上,35A和35B的f0/3和f0/4端口不需要设置为trunk口,但是我们习惯上都设为trunk(已在前面做好了配置)。
防火墙双机热备配置及组网指导防火墙双机热备,主要是提供冗余备份的功能,在网络发生故障的时候避免业务出现中断。
防火墙双机热备组网根据防火墙的模式,分路由模式下的双机热备组网和透明模式下的双机热备组网,下面分别根据防火墙的不同模式下的组网提供组网说明及典型配置。
防火墙双机热备命令行说明防火墙的双机热备的配置主要涉及到HRP的配置,VGMP的配置,以及VRRP的配置,防火墙的双机热备组网配置需要根据现网的业务和用户的需求来进行调整,下面就防火墙的双机热备配置涉及到的命令行做一个解释说明。
HRP命令行配置说明HRP是华为的冗余备份协议,Eudemon 防火墙使用此协议进行备份组网,达到链路状态备份的目的,从而保证在设备发生故障的时候业务正常。
HRP协议是华为自己开发的协议,主要是在VGMP协议的基础上进行扩展得到的;VGMP 是华为的私有协议,主要是用来管理VRRP的,VGMP也是华为的私有协议,是在VRRP的基础上进行扩展得到的。
不管是VGMP的报文,还是HRP的报文,都是VRRP的报文,只是防火墙在识别这些报文的时候能根据自己定义的字段能判断出是VGMP的报文,HRP的报文,或者是普通的VRRP的报文。
在Eudemon防火墙上,hrp的作用主要是备份防火墙的会话表,备份防火墙的servermap表,备份防火墙的黑名单,备份防火墙的配置,以及备份ASPF模块中的公私网地址映射表和上层会话表等。
两台防火墙正确配置VRRP,VGMP,以及HRP之后,将会形成主备关系,这个时候防火墙的命令行上会自动显示防火墙状态是主还是备,如果命令行上有HRP_M的标识,表示此防火墙和另外一台防火墙进行协商之后抢占为主防火墙,如果命令行上有HRP_S的标识,表示此防火墙和另外一台防火墙进行协商之后抢占为备防火墙。
防火墙的主备状态只能在两台防火墙之间进行协商,并且协商状态稳定之后一定是一台为主状态另外一台为备状态,不可能出现两台都为主状态或者都是备状态的。
华为CE交换机MSTPVRRP冗余备份配置适用产品和版本CE12800/CE6800/CE5800系列产品V100R001C00或更高版本,CE7800系列产品V100R003C00或更高版本,CE8800系列产品V100R006C00或更高版本,CE12800E系列产品V200R002C50或更高版本。
组网需求在数据中心场景中,接入层交换机以双上行方式接入核心层。
用户希望:•考虑到业务的可靠性,部署冗余链路,在一条上行链路断开的时候,流量能切换到另外一条上行链路转发。
•避免冗余备份链路导致的环网问题,消除网络中的环路。
图2-37配置MSTP+VRRP负载分担组网需求分析•通过在SwitchA和SwitchB之间部署VRRP,实现链路冗余备份。
•通过在SwitchA、SwitchB和SwitchC之间部署MSTP,消除网络中的环路。
操作步骤1.配置MSTP基本功能配置SwitchA、SwitchB、SwitchC到域名为RG1的域内,创建实例MSTI12.# 配置SwitchA的MST域。
system-view[~HUAWEI] sysname SwitchA[*HUAWEI] commit[~SwitchA] stp region-configuration[~SwitchA-mst-region] region-name RG1[*SwitchA-mst-region] instance 1 vlan 2[*SwitchA-mst-region] commit[~SwitchA-mst-region] quit# 配置SwitchB的MST域。
system-view[~HUAWEI] sysname SwitchB[*HUAWEI] commit[~SwitchB] stp region-configuration[~SwitchB-mst-region] region-name RG1[*SwitchB-mst-region] instance 1 vlan 2[*SwitchB-mst-region] commit[~SwitchB-mst-region] quit# 配置SwitchC的MST域。
华为的M S T P V R R P配置集团标准化办公室:[VV986T-J682P28-JP266L8-68PNN]AR-1<Huawei><Huawei>undo terminal monitorInfo: Current terminal monitor is off.<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei]interface ethernet 0/0/0[Huawei-Ethernet0/0/0]ip address 30[Huawei-Ethernet0/0/0]interface ethernet0/0/1[Huawei-Ethernet0/0/1]ip address 30[Huawei-Ethernet0/0/1]q[Huawei]interface loopback 0[Huawei-LoopBack0]ip address 32[Huawei-LoopBack0]q[Huawei]ip route-static 24 route-static 24 route-static 0 terminal monitor Info: Current terminal monitor is off.<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei][Huawei][Huawei]vlan batch 11 21 22 2 3Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei]interface vlanif 11[Huawei-Vlanif11]ip address 28[Huawei-Vlanif11]vrrp vrid 1 virtual-ip vrid 1 priority 200[Huawei-Vlanif11]vrrp vrid 1 track interface ethernet 0/0/5 reduced 150 [Huawei-Vlanif11]q[Huawei]interface vlanif 21[Huawei-Vlanif21]ip address 24[Huawei-Vlanif21]vrrp vrid 2 virtual-ip vrid 2 priority 200[Huawei-Vlanif21]vrrp vrid 2 track interface ethernet 0/0/5 reduced 150 [Huawei-Vlanif21]q[Huawei]interface vlanif 22[Huawei-Vlanif22]ip address 24[Huawei-Vlanif22]vrrp vrid 3 virtual-ip vrid 3 priority 80[Huawei-Vlanif22]q[Huawei]interface ethernet 0/0/1[Huawei-Ethernet0/0/1]port link-type trunk[Huawei-Ethernet0/0/1]port trunk allow-pass vlan 11 21[Huawei-Ethernet0/0/1]interface ethernet 0/0/2[Huawei-Ethernet0/0/2]port link-type trunk[Huawei-Ethernet0/0/2]port trunk allow-pass vlan 11 22[Huawei-Ethernet0/0/2]interface ethernet 0/0/3[Huawei-Ethernet0/0/3]port link-type trunk[Huawei-Ethernet0/0/3]port trunk allow-pass vlan 11 21 22[Huawei-Ethernet0/0/3]q[Huawei]stp enable[Huawei]stp mode mstp[Huawei]stp region-configuration[Huawei-mst-region]region-name 001[Huawei-mst-region]instance 1 vlan 11[Huawei-mst-region]instance 2 vlan 21[Huawei-mst-region]instance 3 vlan 22[Huawei-mst-region]active region-configurationInfo: This operation may take a few seconds. Please wait for a moment...done. [Huawei-mst-region]q[Huawei]stp instance 1 root primary[Huawei]stp instance 2 root primary[Huawei]stp instance 3 root secondary[Huawei]q<Huawei>sysEnter system view, return user view with Ctrl+Z.[Huawei]interface vlanif 2[Huawei-Vlanif2]ip address 30[Huawei-Vlanif2]interface ethernet 0/0/5[Huawei-Ethernet0/0/5]port link-type access[Huawei-Ethernet0/0/5]port default vlan 2[Huawei-Ethernet0/0/5]interface vlanif 3[Huawei-Vlanif3]ip address 30[Huawei-Vlanif3]interface ethernet0/0/4[Huawei-Ethernet0/0/4]port link-type access[Huawei-Ethernet0/0/4]port default vlan 3[Huawei-Ethernet0/0/4][Huawei-Ethernet0/0/4][Huawei-Ethernet0/0/4]q[Huawei]ip route-static 32 route-static 0 User interface con0 is availablePlease Press ENTER.<Huawei><Huawei><Huawei><Huawei><Huawei>dis vrrp briVRID State Interface Type Virtual IP----------------------------------------------------------------1 Master Vlanif11 Normal2 Master Vlanif21 Normal3 Backup Vlanif22 Normal----------------------------------------------------------------Total:3 Master:2 Backup:1 Non-active:0<Huawei>Lsw1The device is running!<Huawei>undo terminal monitorInfo: Current terminal monitor is off.<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei]vlan batch 11 21 22 2 3Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei]interface vlanif 11[Huawei-Vlanif11]ip address 28[Huawei-Vlanif11]vrrp vrid 1 virtual-ip vlanif 21[Huawei-Vlanif21]ip address 24[Huawei-Vlanif21]vrrp vrid 2 virtual-ip vlanif 22[Huawei-Vlanif22]ip address 24[Huawei-Vlanif22]vrrp vrid 2 virtual-ip vrid 2 priority 200[Huawei-Vlanif22]dis this#interface Vlanif22ip address vrrp vrid 2 virtual-ip vrrp vrid 2 priority 200#return[Huawei-Vlanif22]undo vrrp vrid 2 priority 200^Error:Too many parameters found at '^' position.[Huawei-Vlanif22][Huawei-Vlanif22]undo vrrp vrid 2[Huawei-Vlanif22]disthis^Error: Unrecognized command found at '^' position.[Huawei-Vlanif22]dis this#interface Vlanif22ip address vrid 3 virtual-ip vrid 3 priority 200[Huawei-Vlanif22]vrrp vrid 3 track interface ethernet0/0/5 reduced 150 [Huawei-Vlanif22]q[Huawei]interface ethernet 0/0/1[Huawei-Ethernet0/0/1]port link-type trunk[Huawei-Ethernet0/0/1]port trunk allow-pass vlan 11 21[Huawei-Ethernet0/0/1]interface ethernet 0/0/2[Huawei-Ethernet0/0/2]port link-type trunk[Huawei-Ethernet0/0/2]port trunk allow-pass vlan 11 22[Huawei-Ethernet0/0/2]interface ethernet0/0/3[Huawei-Ethernet0/0/3]port link-type trunk[Huawei-Ethernet0/0/3]port trunk allow-pass vlan 11 21 22[Huawei-Ethernet0/0/3]q[Huawei]stp enable[Huawei]stp mode mstp[Huawei]stp region-configuration[Huawei-mst-region]region-name 001[Huawei-mst-region]instance 1 vlan 11[Huawei-mst-region]instance 2 vlan 21[Huawei-mst-region]instance 3 vlan 22[Huawei-mst-region]active region-configurationInfo: This operation may take a few seconds. Please wait for a moment...done. [Huawei-mst-region]q[Huawei]stp instance 1 root secondary[Huawei]stp instance 2 root secondary[Huawei]stp instance 3 root primary[Huawei]q<Huawei>sysEnter system view, return user view with Ctrl+Z.[Huawei]interface vlanif 2[Huawei-Vlanif2]ip address 30[Huawei-Vlanif2]interface ethernet 0/0/5[Huawei-Ethernet0/0/5]port link-type access[Huawei-Ethernet0/0/5]port default vlan 2[Huawei-Ethernet0/0/5]interface vlanif 3[Huawei-Vlanif3]ip address 30[Huawei-Vlanif3]interface ethernet0/0/4[Huawei-Ethernet0/0/4]po li a[Huawei-Ethernet0/0/4]po de vl 3[Huawei-Ethernet0/0/4][Huawei-Ethernet0/0/4][Huawei-Ethernet0/0/4]q[Huawei]ip route-static 32 route-static 0 vrrp bri[Huawei]dis vrrp briefVRID State Interface Type Virtual IP----------------------------------------------------------------1 Backup Vlanif11 Normal2 Backup Vlanif21 Normal3 Master Vlanif22 Normal----------------------------------------------------------------Total:3 Master:1 Backup:2 Non-active:0[Huawei]LSW3The device is running!<Huawei>undo terminal monitorInfo: Current terminal monitor is off.<Huawei>system-vew^Error: Unrecognized command found at '^' position.<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei]vlan batch 11 22Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei]interface vlanif 11[Huawei-Vlanif11]ip address 28[Huawei-Vlanif11]q[Huawei]interface ethernet 0/0/3[Huawei-Ethernet0/0/3]port link-type access[Huawei-Ethernet0/0/3]port default vlan 22[Huawei-Ethernet0/0/3]interface ethernet 0/0/1[Huawei-Ethernet0/0/1]port link-type trunk[Huawei-Ethernet0/0/1]port trunk allow-pass vlan 11 22[Huawei-Ethernet0/0/1]interface ethernet 0/0/2[Huawei-Ethernet0/0/2]port link-type trunk[Huawei-Ethernet0/0/2]port trunk allow-pass vlan 11 22[Huawei-Ethernet0/0/2]User interface con0 is availablePlease Press ENTER.LSW4Please press enter to start cmd line!<Huawei>undo terminal monitorInfo: Current terminal monitor is off.<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei]vlan batch 11 21Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei]interface vlanif 11[Huawei-Vlanif11]ip address 28[Huawei-Vlanif11]q[Huawei]interface ethernet0/0/3[Huawei-Ethernet0/0/3]port link-type access[Huawei-Ethernet0/0/3]port default vlan 21[Huawei-Ethernet0/0/3]interface ethernet 0/0/1[Huawei-Ethernet0/0/1]port link-type trunk[Huawei-Ethernet0/0/1]port trunk allow-pass vlan 11 21[Huawei-Ethernet0/0/1]interface ethernet0/0/2[Huawei-Ethernet0/0/2]port link-type trunk[Huawei-Ethernet0/0/2]port trunk allow-pass vlan 11 21[Huawei-Ethernet0/0/2]q[Huawei]vlan 11[Huawei-vlan11]description Guanli[Huawei-vlan11]dis this#vlan 11description Guanli#return[Huawei-vlan11] User interface con0 is availablePlease Press ENTER.。