华为交换机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,实现流量的负载分担. ...
随机推荐
- js和jquery使按钮失效为不可用状态的方法
设置disabled属性为true即为不可用状态. html代码: <input type="button" value="提交" id="bt ...
- Zookeeper笔记之quota
一.节点配额概述 zookeeper中可以往节点存放数据,但是一般来说存放数据总是要有个度量的对吧,不然空间就那么大,如果某个节点将空间全占用了其它节点没得用了,所以zookeeper提供了一个对节点 ...
- Madgwick IMU Filter
论文链接:http://202.114.96.204/cache/13/03/x-io.co.uk/35c82431852f2aa7d0feede9dc138626/madgwick_internal ...
- Java 连接远程Linux 服务器执行 shell 脚本查看 CPU、内存、硬盘信息
pom.xml jar 包支持 <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch& ...
- 07 Go 1.7 Release Notes
Go 1.7 Release Notes Introduction to Go 1.7 Changes to the language Ports Known Issues Tools Assembl ...
- PGP工作原理及其安全体制
现代信息社会里,当电子邮件广受欢迎的同时,其安全性问题也很突出.实际上,电子邮件的传递过程是邮件在网络上反复复制的过程,其网络传输路径不确定,很容易遭到不明身份者的窃取.篡改.冒用甚至恶意破坏,给收发 ...
- shell加密
如何保护自己编写的shell程序要保护自己编写的shell脚本程序,方法有很多,最简单的方法有两种:1.加密 2.设定过期时间,下面以shc工具为例说明: 一.下载安装shc工具shc是一个加密she ...
- 线上SQL优化
最近在线上发现很多性能有问题的sql,开发写sql语句的时候,没充分考虑是否用上索引了,所以这个坑得DBA来填,好了,废话不多说,把一些线上的优化经验跟大家分享. 由于是线上的表,所以就不公开具体的表 ...
- Python学习笔记:算法的重要性
今日看了一个基础的教程<8分钟学会一个算法>,偶然间看到一个很简单的例子,仅当记录一下. 题目:已知a+b+c=1000,且a^2+b^2=c^2,求a,b,c的所有自然数解? #### ...
- 一份可以发布jar包到MAVEN中央仓库的POM
[2017-01-03 更新]将基础的pom抽离成一个项目无关的parent pom,euler-framework的pom继承这个parent pom 今天在家折腾了一下怎么把Jar包发布到Mave ...