华为交换机VRRP配置实例收集(转)
示例图:

其实说白了就是做线路冗余,达到热备切换。
组网需求:
楼层1和楼层2分别通过两条线路做冗余接入交换机(本示例只考虑vrrp,暂不考虑其他方面)。当其中一段链路故障时,能通过另外一条链路传输。
配置信息:
<lsw9>dis cu # sysname lsw9 # vlan batch 10 20 # stp mode stp # interface Ethernet0/0/2 port link-type access port default vlan 10 # interface Ethernet0/0/3 port link-type access port default vlan 20 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 # interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 20 stp instance 0 cost 200000000 # return <lsw9>
--------------------------
<lsw11>dis cu # sysname lsw11 # vlan batch 30 # stp mode stp # interface Ethernet0/0/2 port link-type access port default vlan 30 # interface Ethernet0/0/3 port link-type access port default vlan 30 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 30 stp instance 0 cost 200000000 # interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 30 # return <lsw11>
-------------------------
<lsw7>dis cu # sysname lsw7 # vlan batch 10 20 30 100 # stp mode stp # interface Vlanif1 # interface Vlanif10 description to 1 L ip address 10.155.10.254 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.10.252 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20 # interface Vlanif20 ip address 10.155.20.254 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.20.252 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20 # interface Vlanif30 description to 5 L ip address 10.156.40.254 255.255.255.0 ip address 10.156.30.254 255.255.255.0 sub vrrp vrid 1 virtual-ip 10.156.30.252 vrrp vrid 2 virtual-ip 10.156.40.252 vrrp vrid 2 priority 120 vrrp vrid 2 preempt-mode timer delay 20 # interface Vlanif100 ip address 10.10.10.1 255.255.255.0 # interface MEth0/0/1 # interface GigabitEthernet0/0/1 port link-type access port default vlan 100 # interface GigabitEthernet0/0/11 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 2 to 4094 # interface GigabitEthernet0/0/21 port link-type trunk port trunk allow-pass vlan 30 # ospf 1 area 0.0.0.0 network 10.10.10.0 0.0.0.255 network 10.155.0.0 0.0.255.255 network 10.156.0.0 0.0.255.255 # return
--------------------------------------
<lsw8>dis cu # sysname lsw8 # vlan batch 10 20 30 200 # stp mode stp # interface Vlanif1 # interface Vlanif10 description to 1 L ip address 10.155.10.253 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.10.252 # interface Vlanif20 description to 1 L ip address 10.155.20.253 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.20.252 # interface Vlanif30 description to 5 L ip address 10.156.30.253 255.255.255.0 ip address 10.156.40.253 255.255.255.0 sub vrrp vrid 1 virtual-ip 10.156.30.252 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20 vrrp vrid 2 virtual-ip 10.156.40.252 # interface Vlanif200 ip address 10.10.20.1 255.255.255.0 # interface MEth0/0/1 # interface GigabitEthernet0/0/1 # interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 20 # interface GigabitEthernet0/0/12 port hybrid pvid vlan 200 port hybrid tagged vlan 1 to 4094 # interface GigabitEthernet0/0/22 port link-type trunk port trunk allow-pass vlan 30 # ospf 1 area 0.0.0.0 network 10.155.0.0 0.0.255.255 network 10.156.0.0 0.0.255.255 network 10.10.20.0 0.0.0.255 # return <lsw8>
-----------------
<R4>dis cu # sysname R4 # stp instance 0 root primary stp enable # interface GigabitEthernet0/0/1 ip address 10.10.10.254 255.255.255.0 stp enable # interface GigabitEthernet0/0/2 ip address 10.10.20.254 255.255.255.0 stp enable # interface GigabitEthernet0/0/3 ip address 61.128.128.6 255.255.255.0 # return <R4>
参考:
http://www.023wg.com/kkxpz/85.html(以上内容转自此篇文章)
华为交换机VRRP配置实例收集(转)的更多相关文章
- 华为交换机MSTP+VRRP配置实例说明文档
华为交换机MSTP+VRRP配置实例说明文档 拓扑图 IP地址规划表 设备名称 设备接口 对端设备 对端接口 VLAN VLAN /接口地址 备注 SW0 GE0/0/23 SW2 GE0/0/23 ...
- 华为交换机sflow配置
华为交换机sflow功能配置 1.配置交换机的sflow流发送 [系统视图]sflow agen ip x.x.x.x 设置sflow输出源 [系统视图]sflow ...
- 华为交换机-SNMP配置
1.1 SNMP基础配置 <switch>system-view 进入交换机的配置模式 [switch]snmp-agent 使能snmp服务 [switch]snmp-agent ...
- 华为交换机VRRP 综合配置示例
组网需求: 楼层1和楼层2分别通过两条线路做冗余接入交换机(本示例只考虑vrrp,暂不考虑其他方面).当其中一段链路故障时,能通过另外一条链路传输. 配置信息: <lsw9>dis cu ...
- 华为交换机netstream配置
1.配置交换机的流发送 [系统视图]ip netstream timeout active 100 流活跃时间 [系统视图]ip netstream timeout inactive ...
- 华为交换机telnet配置
1.在路由器上和交换机相连的借口上配置一个IP地址:比如192.168.1.1 24 2.在交换机上配置如下:<switch>system-view[switch]vlan 10[swit ...
- 华为交换机如何配置SSH远程登录,一分钟秒学会
从事网络运维工作的小伙伴们都知道,在交换机正式上线时,必须完成配置SSH远程登录,这样做目的是为了日后,维护方便,不需要每次登录设备都要跑到机房,这样既不现实,又费事. 远程登录方式 目前网络设备中主 ...
- 华为交换机SSH配置
设备:S5700 一.在本地设备服务端生成秘钥对 [Huawei]rsa local-key-pair create 二.配置VTY [Huawei]user-interface vty 0 4进入虚 ...
- MSTP+ VRRP 交换机的 配置过程
配置思路采用以下思路配置: 1.在处于环形网络中的交换设备上配置MSTP基本功能,包括:a.配置MST域并创建多实例,配置VLAN2映射到MSTI1,VLAN3映射到MSTI2,实现流量的负载分担. ...
随机推荐
- 20155203 2016-2017-4 《Java程序设计》第6周学习总结
20155203 2016-2017-4 <Java程序设计>第6周学习总结 教材学习内容总结 重载和覆盖:重载是将函数的名称和方法不变(名称可以有一些变动),只改变参数列表,相当于和原来 ...
- JQuery对CheckBox的一些相关操作
一.通过选择器选取CheckBox: 1.给CheckBox设置一个id属性,通过id选择器选取: <input type="checkbox" name="myB ...
- UI渲染回顾简单笔记
UI渲染的简单过程: CPU,GPU,显示器协同工作,CPU 中计算显示内容,比如视图的创建.布局计算.图片解码.文本绘制等,然后将计算结果提交给GPU,由 GPU 进行变换.合成.渲染.随后 GPU ...
- sql server查询某年某月有多少天
sql语句如下: ),) date from (),,)+'-01' day) t1, ( ) t2 ),) ),,)+'%' 查询结果如下: 2017年2月共有28天,查询出28条记录.
- py-faster-rcnn代码阅读1-train_net.py & train.py
# train_net.py#!/usr/bin/env python # -------------------------------------------------------- # Fas ...
- git 入门常用命令(转)
Git工作流程:D:\projects\Setup2\Setup2\Setup2\Express\SingleImage\DiskImages\DISK1 git clone工作开始之初,可通过git ...
- com.alibaba.fastjson.JSONException: autoType is not support.
解决办法:https://github.com/alibaba/fastjson/wiki/enable_autotype 文摘如下: 一.添加autotype白名单 添加白名单有三种方式,三选一,如 ...
- 启动tomcat时报错Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use.
[报错] Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use ...
- Coursera台大机器学习技法课程笔记08-Adaptive Boosting
将分类器组合的过程中,将重点逐渐聚焦于那些被错分的样本点,这种做法背后的数学原因,就是这讲的内容. 在用bootstraping生成g的过程中,由于抽样对不同的g就生成了不同的u,接下来就是不断的调整 ...
- aria2
在之前我们已经介绍了通过uGet使用aria2来进行下载,但是这样只是使用aria2最简单的功能,现在我们来介绍一下aria2的常用命令 简单篇: 一般使用使用 aria2 下载文件,只需在命令后附加 ...