华为VRRP和浮动路由配置与应用

VRRP:
虚拟 路由器 冗余 协议
virtual router redundancy protocol

VRRP :(公有协议)
在多个路由器之间运行,
可以虚拟出一个或者多个网关IP地址(虚拟路由器);
从而实现内网不同网段之间的互通;

VRRP的工作过程:
1、运行VRRP的“多个”路由器之间通过 VRRP 报文的交互,从而选择
出一个最牛的路由器,作为 Master 路由器 ,以后就用来这个设备
来转发数据包;
2、Master 路由器,仅仅只有一个;其他的路由器称之为 backup 路由器;
3、同时,Master 和 Backup 路由器,会产生一个虚拟的路由器,也就是一个
虚拟的IP地址;

 拓扑图:

     配置步骤:
 SW2:
 vlan batch 10 20 30 40 50
interface Vlanif10
ip address 192.168.10.253 255.255.255.0
vrrp vrid 10 virtual-ip 192.168.10.250
vrrp vrid 10 priority 120 vrrp vrid 10 track interface GigabitEthernet0/0/2 reduced 40
 interface Vlanif20
ip address 192.168.20.253 255.255.255.0
vrrp vrid 20 virtual-ip 192.168.20.250
vrrp vrid 20 priority 120
vrrp vrid 20 track interface GigabitEthernet0/0/2 reduced 40
interface Vlanif30
ip address 192.168.30.253 255.255.255.0
vrrp vrid 30 virtual-ip 192.168.30.250
interface Vlanif40
ip address 192.168.40.253 255.255.255.0
vrrp vrid 40 virtual-ip 192.168.40.250
interface Vlanif50
ip address 192.168.50.1 255.255.255.0
 interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 30 40
interface GigabitEthernet0/0/2
port link-type access
port default vlan 50
 LSW3:
vlan batch 10 20 30 40 50
 interface Vlanif10
ip address 192.168.10.254 255.255.255.0
vrrp vrid 10 virtual-ip 192.168.10.250
interface Vlanif20
ip address 192.168.20.254 255.255.255.0
vrrp vrid 20 virtual-ip 192.168.20.250
interface Vlanif30
ip address 192.168.30.254 255.255.255.0
vrrp vrid 30 virtual-ip 192.168.30.250
vrrp vrid 30 priority 120
vrrp vrid 30 track interface GigabitEthernet0/0/2 reduced 30
interface Vlanif40
ip address 192.168.40.254 255.255.255.0
vrrp vrid 40 virtual-ip 192.168.40.250
vrrp vrid 40 priority 120
vrrp vrid 40 track interface GigabitEthernet0/0/2 reduced 30
interface Vlanif50
ip address 192.168.60.1 255.255.255.0
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 30 40
interface GigabitEthernet0/0/2
port link-type access
port default vlan 50
LSW4:
vlan batch 10 20 30 40
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
interface GigabitEthernet0/0/3
port link-type access
port default vlan 30
interface GigabitEthernet0/0/4
port link-type access
port default vlan 40
interface GigabitEthernet0/0/5
port link-type trunk
port trunk allow-pass vlan 10 20 30 40
interface GigabitEthernet0/0/6
port link-type trunk
port trunk allow-pass vlan 10 20 30 40
 AR1:
interface GigabitEthernet0/0/0
ip address 192.168.50.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.60.2 255.255.255.0
浮动路由:
ip route-static 192.168.10.0 255.255.255.0 192.168.50.1
ip route-static 192.168.10.0 255.255.255.0 192.168.60.1 preference 100
ip route-static 192.168.20.0 255.255.255.0 192.168.50.1
ip route-static 192.168.20.0 255.255.255.0 192.168.60.1 preference 100
ip route-static 192.168.30.0 255.255.255.0 192.168.50.1 preference 100
ip route-static 192.168.30.0 255.255.255.0 192.168.60.1
ip route-static 192.168.40.0 255.255.255.0 192.168.50.1 preference 100
ip route-static 192.168.40.0 255.255.255.0 192.168.60.1
测试:
  display vrrp
  查看mster路由和backup路由

LSW2:

LSW3:

原文地址:https://blog.51cto.com/13566951/2469716

时间: 2024-10-09 05:49:06

华为VRRP和浮动路由配置与应用的相关文章

浮动路由配置

实验报告 实验名称:浮动路由 实验拓扑: 实验步骤: 1.  设置PCip地址和默认网关 2.  配置路由器接口ip地址 3.  添加静态路由: 4.  添加接口.配置浮动路由 实验结果: 浮动路由配置

企业浮动路由配置实例

浮动路由配置实验:企业浮动路由可以增加企业网络的可靠性,当一条线路出现故障时,隐藏的浮动路由便会出现在路由条目中,保证网络的可靠性.如上图所示R1上配置如下:[R1]interface g0/0/1 [R1-GigabitEthernet0/0/1]ip address 192.168.2.1 24[R1]interface g0/0/2 [R1-GigabitEthernet0/0/2]ip address 192.168.3.1 24[R1]interface g0/0/0 [R1-Giga

华为VRRP浮动路由配置实战

VRRP浮动路由 eNSP中拓扑: LSW3: [SW3]vlan batch 10 20 [SW3]int e0/0/1 [SW3-Ethernet0/0/1]port link-type access [SW3-Ethernet0/0/1]port default vlan 10 [SW3-Ethernet0/0/1]un sh Info: Interface Ethernet0/0/1 is not shutdown. [SW3-Ethernet0/0/1]int e0/0/2 [SW3-

【基础】华为设备浮动路由配置实战

一.实验拓扑 使用ENSP模拟器(版本V100R002C00 1.2.00.350)                               二.实验需求: 实现当一条链路出现问题,另一条链路自动出现代替原来链路,起到备份作用 三.实验步骤: 1.Ip规划: R1的g0/0/2的ip地址是202.106.14.1 30 R 4的g0/0/2的ip地址是202.106.14.2 30 R4的g0/0/1的ip地址是202.106.34.2 30 R3的g0/0/1的ip地址是202.106.3

华为交换之间静态路由配置实例

拓扑图 左边交换机配置: <Huawei>dis cu # sysname Huawei # vlan batch 10 100 # cluster enable ntdp enable ndp enable # drop illegal-mac alarm # diffserv domain default # drop-profile default # aaa  authentication-scheme default  authorization-scheme default  ac

华为 三层交换机VLAN间路由配置详解

实验拓扑 实验需求 1.C1与C3属于VLAN10,C2与C4属于VLAN20,在SW1上创建VLAN100做上行VLAN 2.在SW1上终结所有VLAN 3.在所有VLAN成员使用DHCP获取IP 4.全网互通 IP规划 VLAN10 :192.168.10.0/24 VLAN20 :192.168.20.0/24 VLAN100:192.168.100.10/24 R1 G0/0/0:192.168.100.1/24 SW1配置: <SW1>system-view            

热备份路由协议中思科HSRP与华为VRRP的配置实例及区别

首先用思科的HSRP热备份路由协议配置. 首先在为这个拓扑配置命令前先分析一下这个拓扑图,了解它的实验目的及要求与想要达成的效果. 然后在看需要为这拓扑配置的命令. 分析拓扑图:(不论配置协议实现全网互通是首要条件) R1路由 端口配置地址并激活, 添加loopback口配置地址, 配置到C1机的静态路由. R2活跃路由 端口配置地址并激活, 接交换机的口配置双工, 配置到loopback口的默认路由或到loopback口的静态路由(只要一个就行), 做HSRP热备份路由改路由为活跃路由. R3

企业浮动路由应用实例

实验拓扑图如下图所示:浮动路由配置命令R1上配置:[R1]interface g0/0/1 [R1-GigabitEthernet0/0/1]ip address 192.168.2.1 24[R1]interface g0/0/2 [R1-GigabitEthernet0/0/2]ip address 192.168.3.1 24[R1]interface g0/0/0 [R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24[R1]ip rou

华为设备VRRP浮动路由实战

华为设备浮动路由实战 实验拓扑 sw3 <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sys sw3 [sw3]vlan bat 10 20 [sw3]int e 0/0/1 [sw3-Ethernet0/0/1]p l a #创建access链路 [sw3-Ethernet0/0/1]p d v 10 [sw3-Ethernet0/0/1]un sh Info: Interface Ethernet0