3-4 Aruba交换机实用配置-VRRP 2020

Aruba交换机VRRP配置命令介绍

实例拓扑如下:
3-4 Aruba交换机实用配置-VRRP 2020

开启路由

Core-1

  1. Access the Core-1 CLI and move to the global configuration model context.
    Core-1# config
  2. Enable IP routing.
    Core-1(config)# ip routing
    Core-2
  3. Access the Core-2 CLI and move to the global configuration model context.
    Core-2# config
  4. Enable IP routing.
    Core-2(config)# ip routing
    2, Core-1
  5. Access the Core-1 CLI.

Configure VRRP

a. Configure the switch’s own IP address on the VLAN.
Core-1(config)# vlan 10
Core-1(vlan-10)# ip address 10.101.10.3/24

b. Create VRRP VRID 10 on VLAN 10.
Core-1(vlan-10)# vrrp vrid 10

c. Set the virtual IP address.
Core-1(vlan-10-vrid-10)# virtual-ip-address 10.101.10.1

d. Set the priority so that Core-1 becomes Master in this VLAN.
Core-1(vlan-10-vrid-10)# priority 254

e. Enable the VRRP instance.
Core-1(vlan-10-vrid-10)# enable
Core-1(vlan-10-vrid-10)# exit
Core-1(vlan-10)# exit

Enable VRRP globally.
Core-1(config)# router vrrp ipv4 enable

Core-2

Core-2# config
Core-2(config)# vlan 10
Core-2(vlan-10)# ip address 10.101.10.2/24
Core-2(vlan-10)# vrrp vrid 10
Core-2(vlan-10-vrid-10)# virtual-ip-address 10.101.10.1
Core-2(vlan-10-vrid-10)# enable
Core-2(vlan-10-vrid-10)# exit
Core-2(vlan-10)# exit
Core-2(config)# router vrrp ipv4 enable

确认配置

Core-2(config)# show vrrp vlan 10
VRRP Virtual Router Statistics Information
Vlan ID : 10
Virtual Router ID : 10
Protocol Version : 2
State : Backup
Up Time : 4 mins
Virtual MAC Address : 00005e-00010a
Master’s IP Address : 10.101.10.3