组网需求:

楼层1和楼层2分别通过两条线路做冗余接入交换机(本示例只考虑vrrp,暂不考虑其他方面)。当其中一段链路故障时,能通过另外一条链路传输。

配置信息:

<lsw9>dis cu

#

sysname lsw9

#

vlan batch  

#

stp mode stp

#

interface Ethernet0//

 port link-type access

 port default vlan 

#

interface Ethernet0//

 port link-type access

 port default vlan 

#

interface GigabitEthernet0//

 port link-type trunk

 port trunk allow-pass vlan  

#

interface GigabitEthernet0//

 port link-type trunk

 port trunk allow-pass vlan  

 stp instance  cost 

#

return

<lsw9>

--------------------------

<lsw11>dis cu

#

sysname lsw11

#

vlan batch 

#

stp mode stp

#

interface Ethernet0//

 port link-type access

 port default vlan 

#

interface Ethernet0//

 port link-type access

 port default vlan 

#

interface GigabitEthernet0//

 port link-type trunk

 port trunk allow-pass vlan 

 stp instance  cost 

#

interface GigabitEthernet0//

 port link-type trunk

 port trunk allow-pass vlan 

#

return

<lsw11>

-------------------------

<lsw7>dis cu

#

sysname lsw7

#

vlan batch    

#

stp mode stp

#

interface Vlanif1

#

interface Vlanif10

 description to  L

 ip address 10.155.10.254 255.255.255.0

 vrrp vrid  virtual-ip 10.155.10.252

 vrrp vrid  priority 

 vrrp vrid  preempt-mode timer delay 

#

interface Vlanif20

 ip address 10.155.20.254 255.255.255.0

 vrrp vrid  virtual-ip 10.155.20.252

 vrrp vrid  priority 

 vrrp vrid  preempt-mode timer delay 

#

interface Vlanif30

 description to  L

 ip address 10.156.40.254 255.255.255.0

 ip address 10.156.30.254 255.255.255.0 sub

 vrrp vrid  virtual-ip 10.156.30.252

 vrrp vrid  virtual-ip 10.156.40.252

 vrrp vrid  priority 

 vrrp vrid  preempt-mode timer delay 

#

interface Vlanif100

 ip address 10.10.10.1 255.255.255.0

#

interface MEth0//

#

interface GigabitEthernet0//

 port link-type access

 port default vlan 

#

interface GigabitEthernet0//

 port link-type trunk

 port trunk pvid vlan 

 port trunk allow-pass vlan  to 

#

interface GigabitEthernet0//

 port link-type trunk

 port trunk allow-pass vlan 

#

ospf 

 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    

#

stp mode stp

#

interface Vlanif1

#

interface Vlanif10

 description to  L

 ip address 10.155.10.253 255.255.255.0

 vrrp vrid  virtual-ip 10.155.10.252

#

interface Vlanif20

 description to  L

 ip address 10.155.20.253 255.255.255.0

 vrrp vrid  virtual-ip 10.155.20.252

#

interface Vlanif30

 description to  L

 ip address 10.156.30.253 255.255.255.0

 ip address 10.156.40.253 255.255.255.0 sub

 vrrp vrid  virtual-ip 10.156.30.252

 vrrp vrid  priority 

 vrrp vrid  preempt-mode timer delay 

 vrrp vrid  virtual-ip 10.156.40.252

#

interface Vlanif200

 ip address 10.10.20.1 255.255.255.0

#

interface MEth0//

#

interface GigabitEthernet0//

#

interface GigabitEthernet0//

 port link-type trunk

 port trunk allow-pass vlan  

#

interface GigabitEthernet0//

 port hybrid pvid vlan 

 port hybrid tagged vlan  to 

#

interface GigabitEthernet0//

 port link-type trunk

 port trunk allow-pass vlan 

#

ospf 

 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>

-----------------

<Huawei>dis cu

#

sysname Huawei

#

stp instance  root primary

stp enable

#

interface GigabitEthernet0//

 ip address 10.10.10.254 255.255.255.0

 stp enable

#

interface GigabitEthernet0//

 ip address 10.10.20.254 255.255.255.0

 stp enable

#

interface GigabitEthernet0//

 ip address 61.128.128.6 255.255.255.0

#

return

<Huawei>

华为交换机VRRP 综合配置示例的更多相关文章

  1. 全互联结构DVPN综合配置示例

    以下内容摘自正在全面热销的最新网络设备图书“豪华四件套”之一<H3C路由器配置与管理完全手册>(第二版)(其余三本分别是:<Cisco交换机配置与管理完全手册>(第二版).&l ...

  2. 华为MSTP负载均衡配置示例

    以下内容摘自由华为公司授权并审核通过,今年元月刚刚出版上市的<华为交换机学习指南>一书:http://item.jd.com/11355972.html,http://product.da ...

  3. 华为交换机VRRP配置实例收集(转)

    示例图: 其实说白了就是做线路冗余,达到热备切换. 组网需求: 楼层1和楼层2分别通过两条线路做冗余接入交换机(本示例只考虑vrrp,暂不考虑其他方面).当其中一段链路故障时,能通过另外一条链路传输. ...

  4. 华为交换机S5700系列配置通过STelnet登录设备示例

    配置通过STelnet登录设备示例 组网图形 图1 配置用户通过STelnet登录设备组网图 在服务器端生成本地密钥对 <HUAWEI> system-view [HUAWEI] sysn ...

  5. 华为交换机VRP用户界面配置及Telnet登录实验

    user privilege level level 设置使用以上用户界面登录后的用户级别 5 acl acl-number { inbound | outbound } (可选)在用户界面上应用AC ...

  6. 华为交换机GVRP基础配置

    GVRP基础配置 int G0/0/1 port link-type trunk 配置接口类型为trunk port trunk allow-pass vlan all 允许所有VLAN通过 int ...

  7. 华为交换机S5700系列配置镜像端口(M:N)

    配置本地端口镜像组网图(M:N) 组网需求 如图所示,某公司研发一部.研发二部和市场部通过Switch与外部Internet通信,监控设备Server1.Server2与Switch直连. 现在希望将 ...

  8. 华为交换机S5700系列配置镜像端口(1:1)

    配置本地镜像口(1:1) 组网需求 如图一所示,某公司行政部通过Switch与外部Internet通信,监控设备Server与Switch直连. 现在希望通过Server对行政部访问Internet的 ...

  9. 华为交换机sflow配置

    华为交换机sflow功能配置 1.配置交换机的sflow流发送 [系统视图]sflow agen ip  x.x.x.x                 设置sflow输出源 [系统视图]sflow ...

随机推荐

  1. java命令行指定log4j2

    java -Dlog4j.configurationFile=directory/file.xml

  2. 基于Hadoop2.6.5(HA)的HBase2.0.5配置

    1.配置 在CentOS7Three上配置,注意:一定要安装bin包,不能安装src包 /usr/local/hbase/hbase-2.0.5/conf 编辑hbase-env.sh,替换成如下配置 ...

  3. springboot+cloud 学习(一)高可用服务注册中心(Eureka)

    先说说Eureka Eureka是Netflix开发的服务发现框架,本身是一个基于REST的服务,主要用于定位运行在AWS域中的中间层服务,以达到负载均衡和中间层服务故障转移的目的.SpringClo ...

  4. vector向量容器(常用的使用方法总结)

    关于STL中vector容器的学习,编译运行后边看代码,边看执行结果效果更佳,还是想说看别人的代码一百遍,不如自己动手写一遍. vector向量容器不但能像数组一样对元素进行随机访问,还能随时在尾部插 ...

  5. [转]SQL Server 2008 如何配置报表管理器

    本文转自:https://docs.microsoft.com/zh-cn/previous-versions/sql/sql-server-2008/cc281384%28v%3dsql.100%2 ...

  6. 新建hadoop用户以及用户组,给予sudo权限

    1.首先新建用户,adduser命令 sudo adduser hadoop passwd hadoop 输入密码之后,一路 y 确定. 2.添加用户组 在创建hadoop用户的同时也创建了hadoo ...

  7. SpringBoot -- 事件(Application Event)

    Spring的事件为Bean与Bean之间的消息通信提供了支持,当一个Bean处理完一个任务之后,希望另外一个Bean知道并能做相应的处理,这时我们就需要让一个Bean监听当前Bean所发送的事件. ...

  8. 利用LOCK机制来定位前缀劫持者

    一.文章信息 作者:Tongqing Qiu, Lusheng Ji, Dan Pei等 单位:佐治亚理工学院.美国电话电报公司实验室.康奈尔大学等 来源:Conference on Usenix S ...

  9. Velocity快速入门

    Velocity 介绍 Velocity是一个基于java的模板引擎.它允许任何人使用简单但功能强大的模板语言引用Java代码中定义的对象. 当Velocity用于web开发时,web设计人员可以与J ...

  10. ubuntu16.04 linux 编译安装apache2.4.33

    下载软件包: wget http://mirror.bit.edu.cn/apache//httpd/httpd-2.4.33.tar.gz wget http://mirrors.tuna.tsin ...