API Guide

Identifier GUID-04F65BB8-5CDE-47AB-8250-A6534BD17FC1
Version 5
Status Translation approved
配置虚拟 IP 地址
配置虚拟 IP 地址 主要 IP 地址和虚拟 IP 地址必须位于同一子网中。
1. INTERFACE 模式下配置 VRRP 1 255
vrrp-group vrrp-id
2. INTERFACE VRRP 模式下为此 VRRP ID 配置虚拟 IP 地址。最多 10 IP 地址。
virtual-address ip-address1 [...ip-address10]
配置虚拟 IP 地址
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# no switchport
OS10(conf-if-eth1/1/1)# ip address 10.1.1.1/24
OS10(conf-if-eth1/1/1)# vrrp-group 10
OS10(conf-eth1/1/1-vrid-10)# virtual-address 10.1.1.8
验证虚拟 IP 地址
OS10# show running-configuration
! Version 10.1.9999P.2281
! Last configuration change at Jul 26 12:01:58 2016
!
aaa authentication system:local
!
interface ethernet1/1/1
ip address 10.1.1.1/24
no switchport
no shutdown
!
vrrp-group 10
virtual-address 10.1.1.8
!
interface ethernet1/1/2
switchport access vlan 1
no shutdown
!
interface ethernet1/1/3
switchport access vlan 1
no shutdown
!
interface ethernet1/1/4
switchport access vlan 1
--more--
查看 VRRP 信息
VRRP 进程完成初始化时State”字段将包含 master backup
OS10# show vrrp brief
Interface Group Priority Preemption State Master-addr Virtual addr(s)
----------------------------------------------------------------------------
ethernet1/1/1 IPv4 10 100 true master 10.1.1.8 10.1.1.8
查看 VRRP 1
OS10# show vrrp 1
Interface : ethernet1/1/1 IPv4 VRID : 1
Primary IP Address : 10.1.1.1 State : master-state
Virtual MAC Address : 00:00:5e:00:01:01
Version : version-3 Priority : 100
Preempt : Hold-time :
Authentication : no-authentication
Virtual IP address :
3 713