Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

如何在Dell Networking PowerConnect交换机上配置虚拟路由器冗余协议(VRRP)

Summary: 本文介绍了如何在具有固件4.0 和更高版本交换机的 Dell Networking PowerConnect 上配置虚拟路由器冗余协议(VRRP)。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

目标
 
  1. 概述
  2. 配置
  3. 验证配置
 

概述

 
VRRP允许多个路由器为广播域上的设备所使用的路由IP地址提供主动/被动冗余。
 
  • VRRP主机-积极地响应虚拟IP地址
  • VRRP备份-被选择为主机(如果不再检测到出自主机的广告),并且开始响应虚拟IP地址
  • 虚拟路由器标识符(VRID) -已配置为在VRRP路由器之间保持一致

 
配置 

 
 
您将需要在为VRRP安装所选择的两个物理设备上完成配置。
 

   

在交换机上配置端口之前,建立一个允许在两个交换机之间传递 VLAN 流量的干线。

 

您将需要确保从两个交换机均可访问 IP 接口/VLAN。如果不是,这两个交换机都将作为主交换机。通过 Mulicast 发送 VRRP hellos,并使用 IP 多播数据报执行所有协议消息传递。

 


路由器1

 
命令 用途
R1 (config) # ip 路由
R1 (config) # ip vrrp
使用 ip 路由命令启用交换机上的路由,并使用 ip vrrp 命令启用交换机上的 VRRP 路由协议。
R1 (config) # interface vlan 10
R1 (config-vlan10) # ip address 10.10.10.2/24
输入所选 VLAN 接口并分配 IP 地址。
R1 (config-vlan10) # vrrp 1 设置组的 VRID。
R1 (config-vlan10) # vrrp 1 10.10.10。1 为VRRP路由器设置虚拟IP地址。
R1 (config-if-vlan10) # vrrp 1 mode
R1 (config-if-vlan10) # vrrp 1 priority 20
使用 vrrp 1 模式命令激活 VRRP 路由器。  使用 vrrp 1 优先级命令为主选举设置优先级。  范围1-254.
 
 


路由器2

 
命令 用途
R2 (config) # ip 路由
R2 (config) # ip vrrp
使用 ip 路由命令启用交换机上的路由,并使用 ip vrrp 命令启用交换机上的 VRRP 路由协议。
R2 (config) # interface vlan 10
R2 (config-vlan10) # ip address 10.10.10.3/24
输入所选 VLAN 接口并分配 IP 地址。
R2 (config — if-vlan10) # vrrp 1 设置组的 VRID。
R2 (config-vlan10) # vrrp 1 10.10.10。1 为VRRP路由器设置虚拟IP地址。
R2 (config-if-vlan10) # vrrp 1 mode
R2 (config-if-vlan10) # vrrp 1 priority 200
使用 vrrp 1 模式命令激活 VRRP 路由器。  使用 vrrp 1 优先级命令为主选举设置优先级。  范围1-254.
 

   

如果VRRP组中的两个路由器同时出现,并且具有相同的优先级值,则您可将接口的物理IP地址用作线路中断器,以决定哪个是主机。具有更高IP地址的路由器成为主机。

 


验证配置
 
 
 
控制台 # 显示 vrrp 接口简述
 
接口 VRID IP 地址模式状态
-----------------------------------------------
vlan 10 1 10.10.10.1 启用主节点
 

Affected Products

PowerConnect 7024, PowerConnect 7024F, PowerConnect 7024P, PowerConnect 7048, PowerConnect 7048P, PowerConnect 7048R, PowerConnect 8024, PowerConnect 8024F, PowerConnect 8100 Series
Article Properties
Article Number: 000120182
Article Type: How To
Last Modified: 26 Apr 2021
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.