Configure Allowed Networks

Configure network addresses to determine the network addresses that BGP advertises. The allowed addresses determine the BGP networks that originate from the switch.

Before you begin

  • You configure BGP on a VRF instance the same way you configure the GlobalRouter, except that you must use VRF Router Configuration mode and the prefix ip bgp. The VRF must have an RP Trigger of BGP.

Procedure

  1. Enter BGP Router Configuration mode:

    enable

    configure terminal

    router bgp

  2. Specify IGP network prefixes for BGP to advertise:

    network <WORD 1–256> [metric <0-65535>]

Example

Specify IGP network prefixes for BGP to advertise:

Switch(router-bgp)# network 2001:DB8::/32 metric 32

Variable Definitions

The following table defines parameters for the network command.

Variable

Value

WORD <1–256>

Specifies an IP address and its length in the appropriate form.

metric <0-65535>

Specifies the metric to use when the system sends an update for the routes in the network table. The metric configures the MED for the routes advertised to eBGP peers. The range is 0–65535.