组网需求:

楼层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设计模式

    工厂模式 目录 何为工厂模式 工厂方法与抽象工厂 如何在Java EE中通过@Producers与@Inject注解实现工厂模式 如何创建自定义注解以及通过@Qualifier消除具体实现之间的歧义 ...

  2. WPF中Grid的行的Height和列的Width根据内容自适应

    Grid中RowDefinition的Height和ColumnDefinition的设置都有三种: 1. 具体数值,固定不变: 2. * 星号,如: 2*,5*,8*: 分母为(2+5+8=15), ...

  3. 【学习笔记】浅析Promise函数

    一.Promise是什么? 在JavaScript中,所有的代码都是单线程执行,所以javaScript的所有网络操作(“GET”/"POST"/"PUT"/& ...

  4. 【译】如何更好的使用javascript数组

    赶紧阅读读此文,我保证,在过去的几个月里我,我确定我在数组问题上犯过4次错误.于是我写下这篇文章,阅读这篇文章可以让你更准确的使用javascript数组的一些方法 使用Array.includes替 ...

  5. 深入出不来nodejs源码-events模块

    这一节内容超级简单,纯JS,就当给自己放个假了,V8引擎和node的C++代码看得有点脑阔疼. 学过DOM的应该都知道一个API,叫addeventlistener,即事件绑定.这个东西贯穿了整个JS ...

  6. 使用Ajax的Time实现倒计时功能

    网上有网友想实现一个功能,就是倒计时的功能.以某时间点与当前时间比较,还剩余时间,进行实时显示.这个问题,让Insus.NET想起以前有做过一个实时时钟有点相似.http://zzk.cnblogs. ...

  7. node.js遇到的问题

    1.cann't find module 'request'   不能找到’request' 模块 解决方法:找到项目的根路径,cd到该路径,运行命令 npm install request 2.no ...

  8. 第20课-数据库开发及ado.net 可空值类型,资料管理器,多条件查询,Case

    第20课-数据库开发及ado.net 可空值类型,资料管理器,多条件查询,Case SqlHelper using System; using System.Collections.Generic; ...

  9. WebFrom与MVC异同

    一.共同点 它们共用一套管道机制. 二.不同点: 1.开发方式: webform开发方式 第一步:前台页面(*.aspx)+后置代码类(*.cs) 第二步:前台页面(*.aspx)+一般处理程序(*h ...

  10. [转载]常用 SQL Server 规范集锦

    转载者注:据说是某公司(携程)内部规范. 常见的字段类型选择 1.字符类型建议采用varchar/nvarchar数据类型 2.金额货币建议采用money数据类型 3.科学计数建议采用numeric数 ...