H3C Technologies H3C S12500 Series Switches User Manual

Page 195

Advertising
background image

184

# Set the priority of Switch B in VRRP group 1 to 110, which is higher than that of Switch C (100)

so that Switch B can become the master when Switch A fails.

[SwitchB-Vlan-interface2] vrrp ipv6 vrid 1 priority 110

# Set Switch B to operate in preemptive mode and set the preemption delay to 5 seconds.

[SwitchB-Vlan-interface2] vrrp ipv6 vrid 1 preempt-mode timer delay 5

# Enable Switch B to send RA messages so that hosts on network segment 1::/64 can learn the

default gateway address.

[SwitchB-Vlan-interface2] undo ipv6 nd ra halt

[SwitchB-Vlan-interface2] quit

# Create track entry 1 to associate with the physical status of VLAN-interface 3 on Switch B. When
the track entry becomes negative, it means that the interface fails.

[SwitchB] track 1 interface vlan-interface 3

# Configure VF tracking to monitor track entry 1 and specify the value by which the weight

decreases, making the weight of Switch B decrease by more than 245 (250 in this example) when
track entry 1 turns to negative. In such a case, another router with a higher weight can take over.

[SwitchB] interface vlan-interface 2

[SwitchB-Vlan-interface2] vrrp ipv6 vrid 1 weight track 1 reduced 250

3.

Configure Switch C:
# Configure VLAN 2.

<SwitchC> system-view

[SwitchC] vlan 2

[SwitchC-vlan2] port gigabitethernet 3/0/5

[SwitchC-vlan2] quit

# Configure VRRP to operate in load balancing mode.

[SwitchC] vrrp mode load-balance

# Create VRRP group 1 and configure its virtual IPv6 addresses as FE80::10 and 1::10.

[SwitchC] interface vlan-interface 2

[SwitchC-Vlan-interface2] ipv6 address fe80::3 link-local

[SwitchC-Vlan-interface2] ipv6 address 1::3 64

[SwitchC-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::10 link-local

[SwitchC-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip 1::10

# Set Switch C to operate in preemptive mode and set the preemption delay to 5 seconds.

[SwitchC-Vlan-interface2] vrrp ipv6 vrid 1 preempt-mode timer delay 5

# Enable Switch C to send RA messages, so that hosts on network segment 1::/64 can learn the
default gateway address.

[SwitchC-Vlan-interface2] undo ipv6 nd ra halt

[SwitchC-Vlan-interface2] quit

# Create track entry 1 to associate with the physical status of VLAN-interface 3 on Switch C. When

the track entry becomes negative, it means that the interface fails.

[SwitchC] track 1 interface vlan-interface 3

# Configure VF tracking to monitor track entry 1 and specify the value by which the weight
decreases, making the weight of Switch C decrease by more than 245 (250 in this example) when

track entry 1 turns to negative. In such a case, another router with a higher weight can take over.

[SwitchC] interface vlan-interface 2

[SwitchC-Vlan-interface2] vrrp ipv6 vrid 1 weight track 1 reduced 250

4.

Verify the configuration:

Advertising
This manual is related to the following products: