组网需求:

楼层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. MVC返回文件

    上一篇 介绍了Action 返回View, 顺便也看到了返回Json的处理, 这一篇并不看文件返回的源码, 此篇是为了应用. 1. Response返回文件 在MVC的项目中, 还是能看到很多同事, ...

  2. POJ 2607 Fire Station(Floyd打表+枚举更新最优)

    题目链接: http://poj.org/problem?id=2607 Description A city is served by a number of fire stations. Some ...

  3. [转]Reporting Services 中的身份验证类型

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

  4. MFC宏—DECLARE_DYNCREATE

    DECLARE_DYNCREATE( class_name ) 参数: class_name 类的实际名字(不用引号括起来). 说明: 使用DECLARE_DYNCREATE宏可以使每个CObject ...

  5. 第17课-数据库开发及ado.net 聚合函数,模糊查询like,通配符.空值处理.order by排序.分组group by-having.类型转换-cast,Convert.union all; Select 列 into 新表;字符串函数;日期函数

    第17课-数据库开发及ado.net 聚合函数,模糊查询like,通配符.空值处理.order by排序.分组group by-having.类型转换-cast,Convert.union all;  ...

  6. oracle创建表的方法和一些常用命令

    1.主键和外键主键:关系型数据库中的一条记录中有若干个属性,若其中的某一个属性组(注意是组,可以是一个,也可以是多个)能唯一标识一条记录,那么该属性组就是主键外键:关系型数据库表中的一列或者某几列的组 ...

  7. 表达式树(Expression Trees)

    [翻译]表达式树(Expression Trees) 原文地址:https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/con ...

  8. 15.C++-操作符重载、并实现复数类

    首先回忆下以前学的函数重载 函数重载 函数重载的本质为相互独立的不同函数 通过函数名和函数参数来确定函数调用 无法直接通过函数名得到重载函数的入口地址 函数重载必然发生在同一个作用域中 类中的函数重载 ...

  9. Graveyard(poj3154)

    Graveyard Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 1289   Accepted: 660   Specia ...

  10. js-权威指南学习笔记21

    第二十一章 多媒体和图形编程 1.为了强制让图片缓存起来,首先利用Image()构造函数来创建一个屏幕外的图片对象,之后将该对象的src属性设置成期望的URL. 2.由于各家浏览器制造商未能在对标准音 ...