Configure Anycast over BGP on the VA

  1. Enter the Configuration Mode on the VA.
  2. Enable Anycast support on the VA. Enter config anycast bgp <options>

    Command returns an ASN for the VA.

    Options are:

    • enable < anycast_ip > < bgp_info >—Enable the anycast mode
      • < anycast_ip >—Anycast IP address
      • < bgp_info >—ASN:IPAddress:Hop count of the BGP router to publish. If a hop count is not specified, a default value of 255 is assumed, therefore, the router can be up to 255 hops away.
    • add <ASN:Router IP:Hop count>—Use this command to specify an additional router as a BGP peer for the VA. A maximum of 4 peers can be configured.
    • delete <Router IP>—Use this command to remove a BGP peer for the VA.
    • stats—Show statistics around the Anycast configuration
    • summary—Show summarized list of all BGP peers for this VA
    • disable—Disable anycast mode
    • status—Show status of anycast
    • test—test Anycast connectivity
    • help—Display this usage information
  3. Validate status. Enter config anycast bgp status
  4. On the router, add the VA's ASN from step 2 as the neighbor of the router.

Example:

In the following configuration, the VA needs to be configured with Anycast IP 192.168.1.22, the BGP router's ASN is 7105, and IP address is 10.1.0.1.