vrrp practical operation

Basic Concepts VRRP
a group of routers VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) will assume the backup gateway function is added to the group, to form a virtual router, and set the gateway host virtual gateway, redundancy can be achieved Yu.
Principle VRRP
VRRP combines a group of routers within the LAN into a backup group called. Backup Master group consisting of a router and a plurality of routers Backup, corresponding to a virtual router function. ? VRRP backup group has the following features:
• Virtual router has an IP address, known as a virtual IP address. Host on the LAN only needs to know the IP address of the virtual router, and set it to the next hop of the default route.
• hosts in the network communicate through the virtual router and external networks.
• router in the backup group according to priority, elected Master router, act as network gateways. Backup other router as a router, the router fails when the Master, Master substituted continue to perform the gateway functions, hosts in the network uninterrupted communication with an external network.
Single VRRP group configuration example
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 • • When normal operation, transmits Host A to Host B packets are forwarded by Switch a; Switch a occurs when the
failure, Host a Host B packets sent by Switch B forwarded.
vrrp practical operation
Note: IntranetSwitch only play the role of the exchange, in this case do not have to configure
(1) Configure 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-of Vlan-interface2] IP address 10.1.1.1 255.255 .255.0
[SwitchA-of Vlan-interface2] quit
[SwitchA] VLAN. 3
[SwitchA-VLAN3] Port GigabitEthernet 1/0/13
[SwitchA-VLAN3] quit
[SwitchA] interface VLAN-interface. 3
[SwitchA-of Vlan-interface3] IP address 255.255.255.0 10.1.3.1
[SwitchA-Implementation Methods of 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-of Vlan-interface2] VRRP Virtual-IP 10.1.1.111. 1 vrid
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
to Master is responsible for forwarding traffic.
[SwitchA-Vlan-interface2] vrrp vrid 1 priority 110
Configure Switch A to work in preemptive mode, in order to ensure that the Switch A recovers, it preempts again become Master, that is, as long as
Switch A normal work, forwarded by Switch A is responsible for traffic. In order to avoid frequent switching state, arranged preemption delay
between five seconds.
[SwitchA-of Vlan-interface2] VRRP vrid-MODE. 1 preempt Delay 500
vrrp practical operation
(2) Configuration Switch B
configuration VLAN2.
<SwitchB> System-View
[SwitchB] VLAN 2
[SwitchB-Vlan2] Port GigabitEthernet 1/0/12
[SwitchB-VLAN2] quit
[SwitchB] interface VLAN-interface 2
[SwitchB-of Vlan-interface2] IP address 10.1.1.2 255.255 .255.0
[SwitchB-of Vlan-interface2] quit
[SwitchB] VLAN. 3
[SwitchB-VLAN3] Port GigabitEthernet 1/0/14
[SwitchB-VLAN3] quit
[SwitchB] interface VLAN-interface. 3
[SwitchB-of Vlan-interface3] 255.255.255.0 IP address 10.1.4.1
[SwitchB-of Vlan-interface3] quit
[SwitchB] IP-route static 0.0.0.0 0 10.1. 4.2
create backup group 1, and configure the virtual IP address group 1 is 10.1.1.111.
[SwitchB] interface VLAN-interface 2
[SwitchB-of Vlan-interface2] 1 VRRP vrid Virtual-IP 10.1.1.111
disposed Switch B backup group 1 priority 100.
[SwitchB-Vlan-interface2] vrrp vrid 1 priority 100
disposed Switch B work in preemptive mode, preemption delay to five seconds.
[SwitchB-of Vlan-interface2] VRRP vrid-MODE. 1 preempt Delay 500
vrrp practical operation
vrrp practical operation
(. 3) Configuration Switch C
configuration VLAN2.
<SwitchC> System-View
[SwitchC] Inter G 1/0/13
[SwitchC-GigabitEthernet / 0/13 is] 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
vrrp practical operation

  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.
    vrrp practical operation
    vrrp practical operation

Guess you like

Origin blog.51cto.com/14228404/2414621