Procedure
Step1 Configure Layer 3 interface. VRRP can be enabled on a VLAN interface or a routed interface.
- Configure a VLAN interface.
a) Configure VLAN ID.
set vlans vlan-id <vlan-id>
b) Configure the interface to VLAN.
set interface gigabit-ethernet <port> family ethernet-switching native-vlan-id <vlan-id>
c) Configure the IP address of the VLAN.
set l3-interface vlan-interface <interface-name> address <address> prefix-length <number>
d) Associate a Layer 3 interface with a VLAN.
set vlans vlan-id <vlan-id> l3-interface <interface-name>
- Configure a routed interface.
a) Enable routed interface.
set interface gigabit-ethernet <interface-name> routed-interface enable <true | false>
set interface gigabit-ethernet <interface-name> routed-interface name <string>
b) Configure reserved-vlan for the routed interface.
set vlans reserved-vlan <reserved-vlan>
c) (Optional) Create the sub-interface and add it into a VLAN.
set interface aggregate-ethernet <interface-name> routed-interface sub-interface <sub-interface-name> vlan-id <vlan-id>
d) Configure the IP address of the routed interface.
set l3-interface routed-interface <interface-name> address <ip-address> prefix-length <prefix-number>
Step2 Create a VRRP group.
set protocols vrrp interface <interface-name> vrid <virtual-router-id>
NOTE:
|
Step3 Configure the VRRP version number.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> version <2 | 3>
By default, the system uses VRRPv2.
Step4 Enable the VRRP function.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> disable <true | false>
By default, the VRRP function is enabled. Currently, VRRP can be configured on the VLAN interfaces or routed interfaces.
Step5 Enable the Active-Active VRRP function.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> load-balance disable <true | false>
NOTE:
|
Step6 Configure a virtual IP address for the VRRP group.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> ip <ipv4-address>
NOTE:
|
Step7 (Optional) Configure the interval of sending VRRP advertisement packets.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> interval <interval-value>
NOTE:
|
Step8 (Optional) Configure VRRP preemptive mode.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> preempt enable <true | false>
By default, preemptive mode is enabled.
Step9 (Optional) Configure the interval of updating the virtual MAC.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> load-balance virtual-MAC time-interval <interval-value>
Step10 (Optional) Configure the priority of the device in a VRRP group.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> priority <priority-value>
By default, the priority of the device in a VRRP group is 100.
Step11 (Optional) Configure an authentication mode and authentication key for a VRRP group. Note that VRRP authentication is only supported by VRRPv2, which is not supported by VRRPv3.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> authentication type <none | md5 | simple>
set protocols vrrp interface <interface-name> vrid <virtual-router-id> authentication simple-key <simple-key>
set protocols vrrp interface <interface-name> vrid <virtual-router-id> authentication md5-key <md5-key>
Step12 (Optional) Enable accept mode.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> accept disable <true | false>
NOTE:
|
Step13 (Optional) Configure the paremeters for sending router advertisement messages.
set protocols vrrp interface <interface-name> vrid <virtual-router-id> ipv6-nd xx