Configuring Anycast where NICs share a VIP - User Guide - BlueCat Edge

BlueCat Edge User Guide

ft:locale
en-US
Product name
BlueCat Edge

In the following Anycast configuration example, BGP Anycast is configured and the eth0 and eth1 NIC interfaces are combined under a single VIP address; and eth2 and eth3 are combined under a second VIP address.

Example configuration

Attention: The following example is for explanation purposes and is not guaranteed to work as-is.
!
! Zebra configuration
!
hostname bgp-test
password abc123
enable password abc123
log file /var/log/sdp/frr/frr.log
log syslog
!
interface lo:1
 ip address 192.168.0.96/32
! 
interface lo:2
 ip address 192.168.0.97/32
!
router bgp 65001
 bgp router-id 203.0.113.10
!
!--- Announce the Anycast prefixes to BGP (but filtered later)
 network 192.168.0.96/32
 network 192.168.0.97/32
!
!--- Neighbor reachable on eth0
 neighbor 192.0.0.2 remote-as 65002
 neighbor 192.0.0.2 description "BGP peer on eth0"
!
 address-family ipv4 unicast
  neighbor 192.0.0.2 prefix-list ANYCAST-1 out
 exit-address-family
!
!--- Neighbor reachable on eth1
 neighbor 192.0.1.2 remote-as 65002
 neighbor 192.0.1.2 description "BGP peer on eth1"
!
 address-family ipv4 unicast
  neighbor 192.0.1.2 prefix-list ANYCAST-1 out
 exit-address-family
!
!--- Neighbor reachable on eth2
 neighbor 192.0.2.2 remote-as 65002
 neighbor 192.0.2.2 description "BGP peer on eth2"
!
 address-family ipv4 unicast
  neighbor 192.0.2.2 prefix-list ANYCAST-2 out
 exit-address-family
!
!--- Neighbor reachable on eth3
 neighbor 192.0.3.2 remote-as 65002
 neighbor 192.0.3.2 description "BGP peer on eth3"
!
 address-family ipv4 unicast
  neighbor 192.0.3.2 prefix-list ANYCAST-2 out
 exit-address-family
!
 ip prefix-list ANYCAST-1 seq 5 permit 192.168.0.96/32
 ip prefix-list ANYCAST-1 seq 100 deny any
!
 ip prefix-list ANYCAST-2 seq 5 permit 192.168.0.97/32
 ip prefix-list ANYCAST-2 seq 100 deny any