关闭

VRRP的基本配置(以H3C模拟器为例)

标签: 网络通信h3c
4340人阅读 评论(0) 收藏 举报
分类:

VRRP的基本配置:

 

S1:

<H3C>sys

[H3C]sys S1

[S1]vlan 10

[S1-vlan10]port g1/0/1

[S1-vlan10]vlan 20

[S1-vlan20]port g1/0/2

[S1-vlan20]vlan 30

[S1-vlan30]port g1/0/3

[S1-vlan30]vlan 40

[S1-vlan40]port g1/0/4

[S1-vlan40]int range g1/0/5 to g1/0/6

[S1-if-range]port link-type trunk

[S1-if-range]port trunk permit vlan all

[S1-if-range]qu

S2:

[S2]vlan 10

[S2-vlan10]vlan 20

[S2-vlan20]vlan 30

[S2-vlan30]vlan 40

[S2-vlan40]int vlan 10

[S2-Vlan-interface10]ip ad 192.168.10.1 24

[S2-Vlan-interface10]vrrp vrid 10 virtual-ip 192.169.10.254

[S2-Vlan-interface10]vrrp vrid 10 priority 110

[S2-Vlan-interface10]vrrp vrid 10 preempt-mode delay 5

[S2-Vlan-interface10]int vlan 20

[S2-Vlan-interface20]ip ad 192.168.20.1 24

This subnet overlaps with another interface!

[S2-Vlan-interface20]vrrp vrid 10 virtual-ip 192.169.20.254

[S2-Vlan-interface20]vrrp vrid 10 priority 110

[S2-Vlan-interface20]vrrp vrid 10 preempt-mode delay 5

[S2-Vlan-interface20]int vlan 30

[S2-Vlan-interface30]ip ad 192.168.30.1 24

[S2-Vlan-interface30]vrrp vrid 10 virtual-ip 192.169.30.254

[S2-Vlan-interface30]vrrp vrid 10 priority 100

[S2-Vlan-interface30]vrrp vrid 10 preempt-mode delay 5

[S2-Vlan-interface30]int vlan 40

[S2-Vlan-interface40]ip ad 192.168.40.1 24

[S2-Vlan-interface40]vrrp vrid 10 virtual-ip 192.169.40.254

[S2-Vlan-interface40]vrrp vrid 10 priority 100

[S2-Vlan-interface40]vrrp vrid 10 preempt-mode delay 5

[S2-Vlan-interface40]qu

验证vrrp冗余网关是否配置成功

[S2]dis vrrp

IPv4 Virtual Router Information:

 Running mode      : Standard

 Total number of virtual routers : 4

 Interface          VRID  State        Running Adver   Auth     Virtual

                                       Pri     Timer   Type        IP

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

 Vlan10             10    Initialize   110     100     None     192.169.10.254

 Vlan20             10    Initialize   110     100     None     192.169.20.254

 Vlan30             10    Initialize   100     100     None     192.169.30.254

 Vlan40             10    Initialize   100     100     None     192.169.40.254

S3:

<H3C>sys

[H3C]sys S3

[S3]vlan 10

[S3-vlan10]vlan 20

[S3-vlan20]vlan 30

[S3-vlan30]vlan 40

[S3-vlan40]int vlan 10

[S3-Vlan-interface10]ip ad 192.168.10.2 24

[S3-Vlan-interface10]vrrp vrid 10 virtual-ip 192.169.10.254

[S3-Vlan-interface10]vrrp vrid 10 priority 100

[S3-Vlan-interface10]vrrp vrid 10 preempt-mode delay 5

[S3-Vlan-interface10]int vlan 20

[S3-Vlan-interface20]ip ad 192.168.20.2 24

[S3-Vlan-interface20]vrrp vrid 10 virtual-ip 192.169.20.254

[S3-Vlan-interface20]vrrp vrid 10 priority 100

[S3-Vlan-interface20]vrrp vrid 10 preempt-mode delay 5

[S3-Vlan-interface20]int vlan 30

[S3-Vlan-interface30]ip ad 192.168.30.2 24

[S3-Vlan-interface30]vrrp vrid 10 virtual-ip 192.169.30.254

[S3-Vlan-interface30]vrrp vrid 10 priority 110

[S3-Vlan-interface30]vrrp vrid 10 preempt-mode delay 5

[S3-Vlan-interface30]int vlan 40

[S3-Vlan-interface40]ip ad 192.168.40.2 24

[S3-Vlan-interface40]vrrp vrid 10 virtual-ip 192.169.40.254

[S3-Vlan-interface40]vrrp vrid 10 priority 110

[S3-Vlan-interface40]vrrp vrid 10 preempt-mode delay 5

[S3-Vlan-interface40]qu

[S3]dis vrrp

IPv4 Virtual Router Information:

 Running mode      : Standard

 Total number of virtual routers : 4

 Interface          VRID  State        Running Adver   Auth     Virtual

                                       Pri     Timer   Type        IP

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

 Vlan10             10    Initialize   100     100     None     192.169.10.254

 Vlan20             10    Initialize   100     100     None     192.169.20.254

 Vlan30             10    Initialize   110     100     None     192.169.30.254

 Vlan40             10    Initialize   110     100     None     192.169.40.254

 

0
1
查看评论
发表评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场

VRRP

HSRP是思科私有协议,VRRP(Virtual Router Redundancy Protocol 虚拟路由器冗余协议)是IEEE的标准协议,和HSRP理论都是一样的,只有一些小区别。
  • hongse_zxl
  • hongse_zxl
  • 2016-02-14 11:25
  • 1786

VRRP协议详解

转帖:http://blog.chinaunix.net/space.php?uid=11654074&do=blog&id=2857384 Contents
  • fanlu319
  • fanlu319
  • 2011-11-25 20:47
  • 44796

VRRP--RFC5798

名词解释 VRRP                                        V...
  • hhh_yang
  • hhh_yang
  • 2013-09-20 13:21
  • 1113

VRRP技术详解

1  概述 1.1  产生背景 随着Internet的发展,人们对网络可靠性的要求越来越高。特别是对于终端用户来说,能够实时与网络其他部分保持联系是非常重要的。一般来说,主机通过设置默认网关来与外...
  • u013982161
  • u013982161
  • 2016-04-19 17:21
  • 1550

VRRP的基本配置(以H3C模拟器为例)

VRRP的基本配置:   S1: sys [H3C]sys S1 [S1]vlan 10 [S1-vlan10]port g1/0/1 [S1-vlan10]...
  • xiaolinyouni
  • xiaolinyouni
  • 2017-06-03 22:02
  • 1106

可靠性配置与管理——VRRP配置与管理1

VRRP(虚拟路由冗余协议)就是指将多个路由设备(可以是路由器,也可以是三层交换机)组成一台虚拟路由设备,并指定其中一台成员路由设备作为主用(Master)设备,其他成员设备作为主用设备不可用时的备用...
  • kaoa000
  • kaoa000
  • 2016-09-23 12:58
  • 1327

可靠性配置与管理——VRRP配置与管理2

VRRP联动功能配置与管理 VRRP备份组监控功能存在一些不足:一是仅能感知VRRP接口状态的变化,无法感知VRRP设备直连或非直连上行链路状态;二是当Master出现故障,Backup需等待Mas...
  • kaoa000
  • kaoa000
  • 2016-09-23 13:16
  • 901

VRRP详解

本文介绍了VRRP的基本原理、特点和应用 VRRP概述  随着Internet的发展,人们对网络的可靠性的要求越来越高。对于局域网用户来说,能够时刻与外部网络保持联系是非常重要的。 通常...
  • yiluyangguang1234
  • yiluyangguang1234
  • 2015-11-22 21:25
  • 4000

华为路由器实现VRRP简单应用

session 1 VRRP VRRP(Virtual Router Redundancy Protocol):虚拟路由冗余协议 跟HSRP的区别 1、公有标准网关冗余协议 2、虚拟ip地址可...
  • alone_map
  • alone_map
  • 2016-07-21 14:00
  • 6391

交换机 vrrp+mstp配置实例

交换机 vrrp+mstp配置实例锐捷tac贾文宇 一、        组网需求 1、switch a 、switch b选用两台锐捷的s5750 ;switch c 、shwich d 选用锐捷的 ...
  • quanshengaa
  • quanshengaa
  • 2008-07-03 13:58
  • 7612
    个人资料
    • 访问:27746次
    • 积分:434
    • 等级:
    • 排名:千里之外
    • 原创:16篇
    • 转载:0篇
    • 译文:0篇
    • 评论:0条
    文章分类