![华为交换机VRRP配置_第1页](http://file3.renrendoc.com/fileroot_temp3/2022-2/10/7b3202a2-e916-46b8-9e17-fee217c4a727/7b3202a2-e916-46b8-9e17-fee217c4a7271.gif)
![华为交换机VRRP配置_第2页](http://file3.renrendoc.com/fileroot_temp3/2022-2/10/7b3202a2-e916-46b8-9e17-fee217c4a727/7b3202a2-e916-46b8-9e17-fee217c4a7272.gif)
![华为交换机VRRP配置_第3页](http://file3.renrendoc.com/fileroot_temp3/2022-2/10/7b3202a2-e916-46b8-9e17-fee217c4a727/7b3202a2-e916-46b8-9e17-fee217c4a7273.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、图3-128 配置VRRF主备备份组网图VRRP VRID 1Virtual IP Address;SwitchAGE 1/0/1witchSwitchCHostA GE1O2GE 1/0/1 盟釦闘2/24fc_GEW/3_lFl72J6dd/2+GE 1/0/2192 J GE 1/0/2伪 32A SwitchB192.168,2.1/24SwitchA-GigabitEthernet1/0/1SwitchA-GigabitEthernet1/0/1SwitchA-GigabitEthernet1/0/1SwitchA-GigabitEthernet1/0/1SwitchAport li
2、n k-type hybridport hybrid pvid vlan 300port hybrid untagged vlan 300quitin terface gigabitether net 1/0/2SwitchA-GigabitEthernet1/0/2SwitchA-GigabitEthernet1/0/2port lin k-type hybridport hybrid pvid vla n 100Backup配置思路采用VRRF主备备份实现网关冗余备份,配置思路如下:1. 配置各设备接口 IP地址及路由协议,使各设备间网络层连通。2. 在SwitchA和SwitchB上配置
3、VRR南份组。其中,SwitchA上配置较高优先级和 20秒 抢占延时,作为 Master设备承担流量转发;SwitchB上配置较低优先级,作为备用交 换机,实现网关冗余备份。操作步骤1.配置设备间的网络互连#配置设备各接口的 IP地址,以SwitchA 为例。SwitchB和SwitchC的配置与 SwitchA 类似,详见配置文件。<HUAWEI>system-viewHUAWEI sys name SwitchASwitchA vlan batch 100 300SwitchAin terface gigabitether net 1/0/12.SwitchA-Gigabit
4、Ethernet1/0/2port hybrid un tagged vlan 100SwitchA-GigabitEthernet1/0/2quitSwitchA in terface vla nif 100SwitchA-Vla nif100ip address10.1.1.124SwitchA-Vla nif100quitSwitchA in terface vla nif 300SwitchA-Vla nif300ip address192.168.1.1 24SwitchA-Vla nif300quit#配置Switch的二层转发功能。<HUAWEI>system-vie
5、w HUAWEI sys name Switch Switchvla n 100Switch-vla n100 quit Switchin terface gigabitether net 1/0/1Switch-GigabitEthernet1/0/1 Switch-GigabitEthernet1/0/1 Switch-GigabitEthernet1/0/1 Switch-GigabitEthernet1/0/1 Switchport lin k-type hybridport hybrid pvid vla n 100port hybrid un tagged vla n 100qui
6、tin terface gigabitether net 1/0/2Switch-GigabitEthernet1/0/2Switch-GigabitEthernet1/0/2Switch-GigabitEthernet1/0/2port lin k-type hybridport hybrid pvid vla n 100port hybrid un tagged vla n 100Switch-GigabitEthernet1/0/2quit# 配置 SwitchA、SwitchB和SwitchC间采用OSPF协议进行互连。以SwitchB和SwitchC的配置与SwitchA类似,详见配
7、置文件。SwitchA ospf 1SwitchA-ospf-1 area 0SwitchA-ospf-1-area-0.0.0.0SwitchA-ospf-1-area-0.0.0.0SwitchA-ospf-1-area-0.0.0.0quitSwitchA-ospf-1 quit配置VRRP备份组SwitchA 为例,#在SwitchA上创建VRRP备份组1,配置SwitchA在该备份组中的优先级为120,并配置抢占时间为20秒。SwitchAin terface vla nif 100SwitchA-VlaniflOOvrrp vrid 1 priority 120/设备在 VRRP备
8、份组中的优先级缺省为 100,修改Master设备的优先级大于Backup设备SwitchA-Vlanif100vrrp vrid 1 preempt-mode timer delay 20/ 设备在 VRRF备份组中缺省采用立即抢占方式。修改Master设备的延迟抢占时间,以避免在网络环境不稳定时,由于双方频繁抢占而导致流量中断的问题SwitchA-Vla nif100quit#在SwitchB上创建VRRP备份组1,其在该备份组中的优先级采用缺省值100 (不需要配置)。SwitchBin terface vla nif 100SwitchB-Vla nif100quit3. 验证配置结果
9、#完成上述配置以后,在SwitchA和SwitchB上分别执行display vrrp 命令,可以看到SwitchA在备份组中的状态为Master, SwitchB在备份组中的状态为Backup。SwitchA display vrrpVlanif100 | Virtual Router 1State : MasterVirtual IP : Master IP : PriorityRun : 120PriorityConfig : 120MasterPriority : 120Preempt : YES Delay Time : 20 sTimerRu n : 1 sTimerC onfig
10、 : 1 sAuth type : NONEVirtual MAC : 0000-5e00-0101Check TTL : YESConfig type : no rmal-vrrpBackup-forward : disabledCreate time : 2012-01-12 20:15:46Last change time : 2012-01-12 20:15:46SwitchB display vrrpVlanif100 | Virtual Router 1State : BackupVirtual IP : Master IP : PriorityRun : 100PriorityC
11、onfig : 100MasterPriority : 120Preempt : YES Delay Time : 0 sTimerRu n : 1 sTimerC onfig : 1 sAuth type : NONEVirtual MAC : 0000-5e00-0101Check TTL : YESConfig type : no rmal-vrrpBackup-forward : disabledCreate time : 2012-01-12 20:15:46Last change time : 2012-01-12 20:15:46# 在 SwitchA 和 SwitchB 上执行
12、 display ip routing-table命令,SwitchA 上可以看到路由表中有一条目的地址为虚拟IP地址的直连路由,而 SwitchB上该路由为OSPF路由。SwitchA和SwitchB上的显示信息如下。SwitchA display ip rout in g-tableRoute Flags: R - relay, D - dow nl oad to fibRouti ng Tables: PublicDest in atio ns : 9Routes : 10Dest in atio n/Mask Proto Pre CostFlags NextHopIn terfaceD
13、irect 00DVla nif100Direct 00DVla nif100Direct00DDirect 00DInLoopBack0Direct 00DInLoopBack0OSPF10 2Vlan if300Direct0 0D192.168.1.1Vlan if300Direct0 0DVla nif300OSPF10 2Vla nif100Vla nif100OSPF 10 2 D 192.168.1.2 Vian if300SwitchBdisplay ip routi ng-tableRoute Flags: R - relay, D - dow nl oad to fibRo
14、uti ng Tables: PublicDest in atio ns : 9Routes : 10Dest in atio n/Mask Proto Pre CostFlags NextHopIn terfaceDirect 00DVla nif100Direct 00DVla nif100OSPF102Vlan if100Direct 00DInLoopBack0Direct 0i0DInLoopBack0OSPF102D 192.168.2.2Vlan if200OSPF102Vlan if100OSPF 102DVla nif200Direct0 0D 192.168.2.1 Vla
15、n if200Direct0 0Vlan if200#在SwitchA的接口 GE1/0/2上执行shutdown命令,模拟 SwitchA出现故障。SwitchA in terface gigabitether net 1/0/2SwitchA-GigabitEthernet1/0/2shutdow nSwitchA-GigabitEthernet1/0/2quit#在SwitchB上执行display vrrp命令查看 VRRP犬态信息,可以看到 SwitchB的状态 是 Master。SwitchB display vrrpVlanif100 | Virtual Router 1Stat
16、e : MasterVirtual IP : Master IP : PriorityRun : 100PriorityConfig : 100MasterPriority : 100Preempt : YES Delay Time : 0 sTimerRu n : 1 sTimerC onfig : 1 sAuth type : NONEVirtual MAC : 0000-5e00-0101Check TTL : YESConfig type : no rmal-vrrpBackup-forward : disabledCreate time : 2012-01-12 20:15:46La
17、st change time : 2012-01-12 20:18:40# 在 SwitchA 的接口 GE1/0/2 上执行 undo shutdown 命令。SwitchA in terface gigabitether net 1/0/2SwitchA-GigabitEthernet1/0/2undo shutdow nSwitchA-GigabitEthernet1/0/2quit#等待20秒后,在SwitchA上执行display vrrp命令查看 VRRP犬态信息,可以看到SwitchA的状态恢复成 Master。SwitchA display vrrpVlanif100 | Vi
18、rtual Router 1State : MasterVirtual IP : Master IP : PriorityRun : 120PriorityConfig : 120MasterPriority : 120Preempt : YES Delay Time : 20 sTimerRu n : 1 sTimerC onfig : 1 sAuth type : NONEVirtual MAC : 0000-5e00-0101Check TTL : YESConfig type : no rmal-vrrpBackup-forward : disabledCreate time : 20
19、12-01-12 20:15:46Last change time : 2012-01-12 20:20:56配置文件? SwitchA的配置文件? #?sys name SwitchA#vlan batch 100 300# in terface Vla nif100vrrp vrid 1 priority 120vrrp vrid 1 preempt-mode timer delay 20#in terface Vla nif300#in terface GigabitEthernet1/0/1 port lin k-type hybridport hybrid pvid vlan 300
20、port hybrid untagged vlan 300#in terface GigabitEthernet1/0/2?port lin k-type hybrid?port hybrid pvid vlan 100? port hybrid un tagged vla n 100? #? ospf 1? #return? SwitchB的配置文件? #sys name SwitchB# vlan batch 100 200#in terface Vla nif100#in terface Vla nif200#in terface GigabitEthernet1/0/1port lin k-type hybridport hybrid pvid vlan 200port hybrid untagged vlan 200#in terface GigabitEthernet1/0/2?port lin k-type hybrid?port hybrid pvid vlan 100? port hybrid un tagged vla n 100? #? ospf 1? #return? SwitchC的配置文件sys name SwitchC#vlan batch 2
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 信息化教学田园风含内容
- 房屋装修清包工合同
- 第10课《小石潭记》教学课件2023-2024学年统编版语文八年级下册
- 移动通信用智能天线项目可行性报告
- 【高中物理】时间+位移+课件+高一上学期物理人教版(2019)必修第一册
- 2024年呼吸制氧项目可行性报告
- 课外书籍项目可行性报告
- 工程救险车项目可行性报告
- 2024年中、高档黑白超声诊断仪项目可行性报告
- 《画杨桃导学案-2023-2024学年语文统编版》
- Web前端框架应用之Vue路由之vue之router课件
- 石英砂的开采与加工
- 《如何调整心态》课件
- 惠州市开展关爱他人、关爱社会、关爱自然志愿服务活动工作方案
- 养老机构安全管理培训课件
- 资产清查培训课件
- 特色农产品电子商务营销策略研究-以云南野生菌为例
- 医疗器械公司合作协议医院合作
- 枪靶场管理制度
- 办公用品营销方案
- 《田间试验与统计分析》期末考试复习题库(含答案)
评论
0/150
提交评论