Configure symmetric routing with VRRP and BGP
An example of how to set up symmetric routing with BGP and VRRP.
If you are upgrading the vRouter to the 4.0 release from any previous release, make sure that you use unique VRRP group IDs across interfaces. This is to avoid conflicts between configurations of the interfaces. Also, use only the following command and use unique VRRP group IDs for the VRRP groups that are tracked by BGP.
protocols bgp asn neighbor id interface interface-name vrrp-failover vrrp-group vrrp-group-id
VRRP groups that are not tracked do not require unique IDs within the vRouter. - Components of this topology
Vyatta01
andVyatta02
are the two routers in the local internal LAN network that are running VRRP.Vyatta01
is the master router andVyatta02
is the backup router.CE01
andCE02
are the ISP gateway routers that are running BGP.
Both the VRRP master and backup routers, Vyatta01
and Vyatta02
, are connected to an ISP gateway router, through use of BGP. This topology provides two possible outgoing and incoming paths for the traffic.
For example, the HTTP traffic passes from CE01
to the master router, Vyatta01
. To make routing symmetric, the data sent from Vyatta01
must pass through CE01
.
When VRRP failover occurs, the flow of northbound traffic switches to the backup router, Vyatta02
which becomes the new master router.
After the switchover, the southbound traffic coming from the ISP network to the LAN network should pass traffic through Vyatta02
to achieve symmetric routing.
BGP recognizes the multiple paths to send traffic. BGP uses the path selection algorithm to determine the best path to send traffic.
You can modify the BGP path selection process in ISP routers through the following parameters:
- Multi-exit discriminator (MED)
- AS PATH Length
- BGP route map for VRRP failover
For both Vyatta01
and Vyatta02
, configure as follows: