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 OS9 交換器上設定虛擬路由器冗餘通訊協定 (VRRP)

Summary: 如何在 Dell Networking OS9 交換器上設定虛擬路由器冗餘通訊協定 (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

本文說明如何在 Dell Networking OS9 交換器上設定虛擬路由器冗餘通訊協定 (VRRP)。

概觀

VRRP 允許多個路由器為廣播域中設備使用的路由IP位址提供主動/被動冗餘。

  • 主要 VRRP - 回應虛擬 IP 位址
  • VRRP 備份 - 如果不再偵測到來自主 IP 位址的廣告,並開始回應虛擬 IP 位址,則選擇為主
  • 虛擬路由器識別符 (VRID) – 設定為在 VRRP 路由器之間符合

組態概述

  1. 設定 VRRP 群組,並在已指派 IP 位址的 L3 模式介面 (實體或 VLAN) 上指定 VRID。
  2. 設定 VRRP 群組的虛擬 IP 位址。
  3. 選用 - 設定 VRRP 優先順序。

組態

路由器 1
命令 用途
R1# configure
進入組態模式。
R1(conf)# interface VLAN 10
輸入介面 (實體或 VLAN)。
R1(conf-if-vl-10)#  ip address 10.10.10.2 /24
R1(conf-if-vl-10)#  no shutdown
在介面上設定 IP 位址,並啟用 L3 模式。
R1(conf-if-vl-10)#  vrrp-group 10
設定 VRRP 群組 ID (VRID)。
R1(conf-if-vl-10-vrid-10)#  virtual-address 10.10.10.1
設定 VRRP 路由器的虛擬 IP 位址。 
R1(conf-if-vl-10-vrid-10)#  priority 200
(選擇性)設置初選的優先順序,預設值為100,較高的數位優先,範圍1-255。

路由器 2
命令 用途
R2# configure
進入組態模式。
R2(conf)# interface VLAN 10
輸入介面 (實體或 VLAN)。
R2(conf-if-vl-10)#  ip address 10.10.10.3 /24
R2(conf-if-vl-10)#  no shutdown
在介面上設定 IP 位址,並啟用 L3 模式。
R2(conf-if-vl-10)#  vrrp-group 10
設定 VRRP 群組 ID (VRID)
R2(conf-if-vl-10-vrid-10)#  virtual-address 10.10.10.1
設定 VRRP 路由器的虛擬 IP 位址。 
R2(conf-if-vl-10-vrid-10)#  priority 150
(選擇性)設置初選的優先順序,預設值為100,較高的數位優先,範圍1-255。

如果 VRRP 組中的兩個路由器同時出現並具有相同的優先順序值,則介面的物理 IP 位址將用作決勝局,以確定哪個是主路由器。具有較高IP位址的路由器將成為主路由器。

驗證組態

R1# show vrrp
Vlan 10, IPv4 VRID: 10, Version: 2, Net: 10.10.10.2
VRF: 0 default
State: Primary, Priority: 200, Primary: 10.10.10.3
Hold Down: 0 sec, Preempt: TRUE, AdvInt: 1 sec
Adv rcvd: 0, Bad pkts rcvd: 0, Adv sent: 2434, Gratuitous ARP sent: 24
Virtual MAC address:
 00:00:5e:00:01:0a
Virtual IP address:
 10.10.10.1
Authentication: (none)
 

R2# show vrrp

Vlan 10, IPv4 VRID: 10, Version: 2, Net: 10.10.10.3
VRF: 0 default
State: Backup, Priority: 150, Primary: 10.10.10.3
Hold Down: 0 sec, Preempt: TRUE, AdvInt: 1 sec
Adv rcvd: 0, Bad pkts rcvd: 0, Adv sent: 2434, Gratuitous ARP sent: 24
Virtual MAC address:
 00:00:5e:00:01:0a
Virtual IP address:
 10.10.10.1
Authentication: (none)

Affected Products

OS9, Force10 S25N-S50N, Force10 S25-01-GE-24T, Force10 S25-01-GE-24V, Force10 S50-01-GE-48T-V, Force10 S50-01-GE-48T, PowerSwitch S3048-ON, PowerSwitch S4048-ON, PowerSwitch S4810P, PowerSwitch S4810-ON, Force10 S50P, PowerSwitch S6000 , PowerSwitch S6000 ON, Force10 Z9000, Dell Networking Z9500, PowerSwitch S4048T-ON, PowerSwitch S6010-ON, PowerSwitch S6100-ON, PowerSwitch Z9100-ON ...
Article Properties
Article Number: 000121369
Article Type: How To
Last Modified: 29 Apr 2024
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.