Mikrotik VRRP and Load Sharing
Mikrotik VRRP and Load Sharing
Mikrotik VRRP and Load Sharing
GO
HOME
ABOUT
POSTS
ROUTING PROTOCOLS
IPV6
MULTICAST
IP SERVICES
BGP
ANIMATION
SECURITY
TROUBLESHOOTING
COMMENTS
FRAME RELAY
1 COMMENT
3 Votes
VRRP is the IEEE standard equivalent of HSRP, Cisco proprietary.
Categories
Select Category
SEARCH
Recent Posts
IPv6 multicast over IPv6 IPSec VTI
Lets 6rd!
WCCPv2 and Squid-cache v3.1, a nice couple.
BGP
The skew time is inversely proportional to the priority, the hypothetical topology depicted in figure 1 better illustrates
the utility that lurks behind the concept.
autonomous system
BGP attribute
Bidirectional Boot-Strap Router BSR CBAC CGMP
DHCPv6
IPv6 IPv6
rapid-commit redistribution
relay Rendez-vous Point RIB RIP
Service
The hold time allows backup routers to be aware of a failure of the master for them to be able to send their
advertisements and participate to the election of the new master, but with many routers as backup with different
priorities it is clear that only the backup router with the highest priority will become the Master, so there is no need
for the others to participate to the masquerade : ); thereby, using the skew time, only the backup router with the next
highest priority will send its advertisements, become the Master and inform all others, if for any reason it is also not
available, The next highest priority backup router will claim the master state.
VRF-lite VRRP
Email Subscription
This lab (Figure2) shows how to configure multiple VRRP groups to implement load sharing
converted by Web2PDFConvert.com
Sign me up!
Meta
Register
Log in
Entries RSS
Comments RSS
WordPress.com
Pages
About
AJ NOURI on
The layer2 switch connects VLAN10 and VLAN20 to the group of Layer3 devices router R2 and multilayer switch
MLS that participate in VRRP.
R2 will be Master router for group20 (VLAN20 group) and MLS the backup gateway and vice versa, MLS will be the
Master gateway for VLAN10 and R2 the backup gateway.
This is implemented in R2 using different sub-interfaces for each VLAN entering the router through Fa1/0 with dot1q
encapsulation.
In MLS the upstream interface is a routed interface (disabled switching) and SVI VLAN10 and VLAN20 are used to
receive traffic from each VLAN on the trunk interface Fa0/1.
The Lab is organized as follow:
August 2008
M
- VRRP configuration
- VRRP Verification
- Testing
- MLS failure
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Jul
Sep
- MLS recovery
- R2 tracked interface failure
- R2 tracked interface recovery
VRRP CONFIGURATION
MLS:
interface Vlan10
ip address 192.168.10.3 255.255.255.0
vrrp 10 ip 192.168.10.1
vrrp 10 preempt delay minimum 60
Archives
October 2013
May 2013
April 2013
March 2013
January 2013
converted by Web2PDFConvert.com
December 2012
November 2012
interface Vlan20
September 2012
January 2012
vrrp 20 ip 192.168.20.1
December 2011
October 2011
no vrrp 20 preempt
September 2011
July 2011
April 2011
R2:
February 2011
November 2010
July 2010
interface FastEthernet1/0.10
June 2010
March 2010
encapsulation dot1Q 10
January 2010
November 2009
vrrp 10 ip 192.168.10.1
July 2009
February 2009
January 2009
December 2008
interface FastEthernet1/0.20
encapsulation dot1Q 20
November 2008
October 2008
September 2008
August 2008
vrrp 20 ip 192.168.20.1
July 2008
June 2008
May 2008
March 2008
All First Hop Redundancy protocols like HSRP, VRRP and GLBP allow the use of object tracking which provides
enhanced capability to track different object like:
- Interface.
- Line protocol state.
- Reachability of IP route.
- Threshold of IP routing metric.
- IP SLAoperations.
- List of boolean expression and threshold weight.
For the purpose of the lab we track only the line protocol status.
VRRP VERIFICATION
NetworkedBlogs
Blog:
CCIE, the beginning!
Topics:
Ccie, Cisco, Ipv6
Follow my blog
192.168.10.3
192.168.10.1
Vl20
20
150 3414 Backup
192.168.20.2
192.168.20.1
MLS#
MLS#sh vrrp
Vlan10 Group 10
State is Master
Virtual IP address is 192.168.10.1
Virtual MAC address is 0000.5e00.010a
Advertisement interval is 1.000 sec
Preemption enabled, delay min 60 secs
Priority is 200
Track object 1 state Up decrement 100
Master Router is 192.168.10.3 (local), priority is 200
Master Advertisement interval is 1.000 sec
Master Down interval is 3.218 sec
Vlan20 Group 20
State is Backup
Virtual IP address is 192.168.20.1
Virtual MAC address is 0000.5e00.0114
Advertisement interval is 1.000 sec
Preemption disabled
Priority is 150
Master Router is 192.168.20.2, priority is 200
Master Advertisement interval is 1.000 sec
Master Down interval is 3.414 sec (expires in 2.406 sec)
MLS#
MLS VLAN10 SVI is the master gateway interface for VLAN10 with the highest priority of 200 and MLS VLAN20 SVI is
the backup gateway interface for VLAN20 (<R2 Fa1/0.20 interface priority).
R2:
R2#sh vrrp
Mar 1 01:26:54.243: %SYS-5-CONFIG_I: Configured from console by admin on
console brief
Interface Grp Pri Time Own Pre State Master addr Group addr
converted by Web2PDFConvert.com
Fa1/0.10
10
150 3414 Y Backup
192.168.10.3
192.168.10.1
Fa1/0.20
20
200 3218 Y Master
192.168.20.2
192.168.20.1
R2#
R2#sh vrrp
FastEthernet1/0.10 Group 10
State is Backup
Virtual IP address is 192.168.10.1
Virtual MAC address is 0000.5e00.010a
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 150
Master Router is 192.168.10.3, priority is 200
Master Advertisement interval is 1.000 sec
Master Down interval is 3.414 sec (expires in 2.538 sec)
FastEthernet1/0.20 Group 20
State is Master
Virtual IP address is 192.168.20.1
Virtual MAC address is 0000.5e00.0114
Advertisement interval is 1.000 sec
Preemption enabled, delay min 60 secs
Priority is 200
Track object 1 state Up decrement 100
Master Router is 192.168.20.2 (local), priority is 200
Master Advertisement interval is 1.000 sec
Master Down interval is 3.218 sec
R2#
R2 Fa1/0.20 is the master gateway interface for VLAN20 with the highest priority of 200 and intfa1/0.10 is the backup
gateway interface for VLAN20 with priority of 150 (< MLS SVI VLAN10 priority).
Connectivity
converted by Web2PDFConvert.com
R10(VLAN10):
R10#sh arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.10.2 8 cc01.154c.0010 ARPA FastEthernet0/0
Internet 192.168.10.3 52 cc02.1714.0000 ARPA FastEthernet0/0
Internet 192.168.10.1 26 0000.0c07.ac0a ARPA FastEthernet0/0
Internet 192.168.10.10 cc04.1714.0000 ARPA FastEthernet0/0
R10#
Using ARP for the default gateway IP 192.168.10.1, R10 has resolved the virtual MAC defined by VRRP group.
R10#trace 10.10.10.1
According to the initial VRRP state, MLS should be the Master VRRP router for the group 10 which is confirmed by
result of trace command.
R20(VLAN20):
R20#trace 10.10.10.1
According to the initial VRRP state, R2 should be the Master VRRP router for the group 20 which is confirmed by
result of trace command.
R20#sh arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.20.20 cc05.1714.0000 ARPA FastEthernet0/0
Internet 192.168.20.1 15 0000.5e00.0114 ARPA FastEthernet0/0
Internet 192.168.20.2 14 cc01.154c.0010 ARPA FastEthernet0/0
Internet 192.168.20.3 56 cc02.1714.0000 ARPA FastEthernet0/0
R20#
converted by Web2PDFConvert.com
Using ARP for the default gateway IP 192.168.20.1, R20 has resolved the virual MAC defined by VRRP group.
TESTING
MLS failure:
In this case MLS is shutdown to simulate a router failure.
R2:
R2#
Mar 1 01:57:20.039: VRRP: Grp 10 Event Master down timer expired
Mar 1 01:57:20.039: %VRRP-6-STATECHANGE: Fa1/0.10 Grp 10 state Backup ->
Master
Mar 1 01:57:30.439: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 192.168.20.3
(FastEthernet1/0.20) is down: holding time expired
Mar 1 01:57:30.551: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 192.168.10.3
(FastEthernet1/0.10) is down: holding time expired
R2#
After the hold timer expires for VRRP group 10, MLS is considered down and R2 interface fa1/0.10 take over the
Master status and become the forwarder, this is confirmed by the traffic that VLAN10 takes to reach the upstream
destination:
R10#trace 10.10.10.1
R10#sh arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.10.2 44 cc01.154c.0010 ARPA FastEthernet0/0
Internet 192.168.10.3 7 cc02.1714.0000 ARPA FastEthernet0/0
Internet 192.168.10.1 7 0000.5e00.010a ARPA FastEthernet0/0
converted by Web2PDFConvert.com
Note that the virtual MAC has not changed, because the operation is transparent to the clients.
Nothing changed for VLAN 20, traffic is still forwarded to R2:
R20#trace 10.10.10.1
MLS recovery:
Now MLS is back to live and because of the preempt feature it will claim its master status back, however, this is
done after a configured 60 seconds, this additional time is given to the downstream Layer 2 distribution swiches to
converge STP so the optimal layer 3 path is consistent with layer 2 STP path.
R2:
R2#
Mar 1 02:16:53.344: %VRRP-6-STATECHANGE: Fa1/0.10 Grp 10 state Master ->
Backup
Mar 1 02:16:54.088: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 192.168.20.3
(FastEthernet1/0.20) is up: new adjacency
Mar 1 02:16:56.044: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 192.168.10.3
(FastEthernet1/0.10) is up: new adjacency
R2#
R10#trace 10.10.10.1
1 *
192.168.10.3 36 msec 28 msec
converted by Web2PDFConvert.com
R2(config-subif)#int fa 0/0
R2(config-if)#sh
R2(config-if)#
Mar 1 02:35:30.203: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 192.168.12.1
(FastEthernet0/0) is down: interface down
Mar 1 02:35:32.043: %LINK-5-CHANGED: Interface FastEthernet0/0, changed
state to administratively down
Mar 1 02:35:33.043: %LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to down
R2(config-if)#
R2(config-if)#
R2(config-if)#
Mar 1 02:36:30.535: %VRRP-6-STATECHANGE: Fa1/0.20 Grp 20 state Master ->
Backup
R2(config-if)#
Avenality of 100 is subtracted from the interface Fa1/0.20 VRRP group 20 and after 60 sec MLS VRRP group 20 take
over the master status and become the default gateway for VLAN20.
MLS:
MLS(config-if)#
*Mar 1 00:20:37.323: VRRP: Grp 20 Event Master down timer expired
*Mar 1 00:20:37.327: %VRRP-6-STATECHANGE: Vl20 Grp 20 state Backup -> Master
MLS(config-if)#
R20#trace 10.10.10.1
R2(config-if)#int fa0/0
R2(config-if)#no sh
Now The tracked interface is UP so VRRP will call back the penality and R2 VRRP group 20 can claim back its
mater state with a higher priority (60 sec after):
R3:
MLS(config-if)#do sh vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr
Vl10 10 200 3218 Y Master 192.168.10.3 192.168.10.1
Vl20
20 150 3414 Y Backup 192.168.20.2 192.168.20.1
converted by Web2PDFConvert.com
MLS(config-if)#
R20:
R20#trace 10.10.10.1
For more global picture about differences between VRRP, HSRP and GLBP take a look at the post entitled Fir s t
H o p R e d und a nc y p r o to c o l c o m p a r is o n ( H SR P , V R R P , G LB P )
About these ads
Share this:
Like this:
Be the first to like this.
FILED UNDER IP SERVICES
Leave a Reply
Enter your comment here...
Blog at WordPress.com.
converted by Web2PDFConvert.com
converted by Web2PDFConvert.com