Single VRRP Group Configuration Example

Configuration procedure
NOTE: IntranetSwitch only play the role of the exchange, in this case do not Configuration
(1) Configuration Switch A

Configuring VLAN2.

<SwitchA> system-view
[SwitchA] vlan 2
[SwitchA-vlan2] port gigabitethernet 1/0/11
[SwitchA-vlan2] quit
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 10.1.1.1 255.255.255.0
[SwitchA-Vlan-interface2]quit

[SwitchA] vlan 3
[SwitchA-vlan3] port gigabitethernet 1/0/13
[SwitchA-vlan3] quit
[SwitchA] interface vlan-interface 3
[SwitchA-Vlan-interface3] ip address 10.1.3.1 255.255.255.0
[SwitchA-Vlan-interface3]quit

[SwitchA]ip route-static 0.0.0.0 0 10.1.3.2

Create backup group 1 and configure virtual IP address of the backup group 1 is 10.1.1.111.

[SwitchA]inter vlan 2
[SwitchA-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.111

Switch A is provided in the backup group 1 priority 110, is higher than the priority of Switch B 100, in order to ensure that Switch A

Master is responsible for forwarding traffic.
[SwitchA-Vlan-interface2] vrrp vrid 1 priority 110

Set Switch A to work in preemptive mode, in order to ensure that the Switch A recovers, it preempts to become Master once again, that as long as

Switch A to work, traffic is forwarded by the Switch A is responsible. In order to avoid frequent switching state, arranged preemption delay
between five seconds.
[SwitchA-Vlan-interface2] vrrp vrid 1 preempt-mode delay 500

(2) Configuration Switch B

Configuring VLAN2.

<SwitchB> system-view
[SwitchB] vlan 2
[SwitchB-Vlan2] port gigabitethernet 1/0/12
[SwitchB-vlan2] quit
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ip address 10.1.1.2 255.255.255.0
[SwitchB-Vlan-interface2]quit

[SwitchB] vlan 3
[SwitchB-vlan3] port gigabitethernet 1/0/14
[SwitchB-vlan3] quit
[SwitchB] interface vlan-interface 3
[SwitchB-Vlan-interface3] ip address 10.1.4.1 255.255.255.0
[SwitchB-Vlan-interface3]quit

[SwitchB]ip route-static 0.0.0.0 0 10.1.4.2

Create backup group 1 and configure virtual IP address of the backup group 1 is 10.1.1.111.

[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.111

Setting priority of Switch B in VRRP group 1 to 100.

[SwitchB-Vlan-interface2] vrrp vrid 1 priority 100

Switch B is provided to work in preemptive embodiment, preemption delay to five seconds.

[SwitchB-Vlan-interface2] vrrp vrid 1 preempt-mode delay 500

  1. Verify the configuration
    After the configuration on Host A can ping Host B. See the results after the configuration of the display vrrp verbose command.

    For more information on the display 1 VRRP group Switch A.

Guess you like

Origin blog.51cto.com/14224935/2405636