组网需求:

楼层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. Tomcat8源码编译及导入Eclipse中研究

    最近因为需求需要修改Tomcat中的某些功能,无奈只能研究那部分源码然后稍作修改. 目前Tomcat最新版是8.0,下载了源码包,编译并导入Eclipse中研究比较方便. 1. Tomcat8源码编译 ...

  2. [开源项目]Shell4Win,一个在Windows下执行shell命令的解释器

    背景 顺利拿到心目中的理想offer之后,心里的负担一下减轻了很多,希望利用还没毕业之前这段难得的悠闲时间做一点有意义的事情.于是希望能做一个长久以来都想做的开源项目,就是题中提到的Windows下的 ...

  3. 关于Mybatis与Spring整合之后SqlSession与mapper对象之间数量的问题。

    1,sqlsession的真实类型和数量 由于使用spring管理bean,当我们在代码中需要使用这个bean的时候,会首先去容器中找,第一次需要调用MapperFactoryBean的getObje ...

  4. Tomcat学习总结(5)——Tomcat容器管理安全的几种验证方式

    当访问服务器中受保护的资源时,容器管理的验证方法可以控制确认用户身份的方式.Tomcat支持四种容器管理的安全防护,它们是: BASIC (基本验证):通过HTTP验证,需要提供base64编码文本的 ...

  5. Tomcat学习总结(2)——Tomcat使用详解

    一.Tomcat服务器端口的配置 Tomcat的所有配置都放在conf文件夹之中,里面的server.xml文件是配置的核心文件. 如果想修改Tomcat服务器的启动端口,则可以在server.xml ...

  6. 【IT笔试面试题整理】堆栈和队列

    如何准备: Whether you are asked to implement a simple stack / queue, or you are asked to implementa modi ...

  7. 第一次项目上Linux服务器(六:Nginx安装及相关命令(转))

    1.下载nginx 方法一 wget http://nginx.org/download/nginx-1.11.6.tar.gz 方法二 http://nginx.org/en/download.ht ...

  8. [总结]多项式求逆代替分治 $\text{FFT}$

    目录 问题提出 求逆代替分治 代码实现 由于我懒得不想学蠢得学不会分治 \(\text{FFT}\) ,发现可以用多项式求逆来完整地代替... 文章节选自分治 FFT 与多项式求逆,转载方便自己查看. ...

  9. vue-cli中配置屏幕自适应(px2rem)

    在vue-cli中配置屏幕自适应的方法 首先,我们需要安装flexible库. npm i lib-flexible --save 在index.html文件当中配置meta标签, <meta ...

  10. Java JDBC的基础知识(二)

    在我的上一篇Java JDBC的基础知识(一)中,最后演示的代码在关闭资源的时候,仅仅用了try/catch语句,这里是有很大的隐患的.在程序创建连接之后,如果不进行关闭,会消耗更多的资源.创建连接之 ...