HCL simulator configuration using vrrp

Single VRRP Group Configuration Example

  1. Network requirements
    • • Host A needs to access Host B on the Internet, the default gateway of Host A is 10.1.1.111/24;
    • • When Switch A normal working hours, Host A sends packets to Host B are forwarded through Switch A ; Switch a occurs when the
    failure, Host a to Host B transmits packets are forwarded by Switch B.
  2. 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-of Vlan-interface2] VRRP vrid-MODE. 1 preempt 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
(3) 配置 Switch C

Configuring VLAN2.

<SwitchC> system-view
[SwitchC] inter g 1/0/13
[SwitchC-GigabitEthernet1/0/13]port link-mode route
[SwitchC-GigabitEthernet1/0/13]ip add 10.1.3.2 24
[SwitchC-GigabitEthernet1/0/13]undo shut
[SwitchC-GigabitEthernet1/0/13]quit

[SwitchC] inter g 1/0/14
[SwitchC-GigabitEthernet1/0/14]port link-mode route
[SwitchC-GigabitEthernet1/0/14]ip add 10.1.4.2 24
[SwitchC-GigabitEthernet1/0/14]undo shut
[SwitchC-GigabitEthernet1/0/14]quit

[SwitchC] vlan 2
[SwitchC-Vlan2] port gigabitethernet 1/0/1
[SwitchC-vlan2] quit
[SwitchC] interface vlan-interface 2
[SwitchC-Vlan-interface2] ip address 10.1.2.2 255.255.255.0
[SwitchC-Vlan-interface2]quit

[SwitchC]ip route 10.1.1.0 24 10.1.3.1
[SwitchC]ip route 10.1.1.0 24 10.1.4.1

  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/14228246/2413220