2.2.1.2.257 BGP_ROUTER_CONFIG

The BGP_ROUTER_CONFIG structure<186> is used to get or set the BGP speaker configuration of a RAS server.

 typedef struct _BGP_ROUTER_CONFIG {
   DWORD dwFlags;
   DWORD dwBGPIdentifier;
   DWORD dwLocalASN;
   BOOL bCompareMedAcrossASN;
   BOOL bUseDefaultGateway;
   BOOL bIPv6Routing;
   in6_addr localIPv6Address;
 } BGP_ROUTER_CONFIG,
  *PBGP_ROUTER_CONFIG;

dwFlags: Specifies the attributes of this structure that are modified. This field is used while modifying the BGP configuration. This value MUST be a bitwise OR combination of one or more of the following values.

Value

Meaning

0x00000001

The BGP identifier is modified.

0x00000002

The local autonomous system number (ASN) is modified.

0x00000004

The bCompareMedAcrossASN value is modified.

0x00000008

The default gateway configuration is changed.

0x00000010

The configuration regarding whether the IPv6 routing state is modified.

0x00000020

The default next hop IPv6 address is modified.

dwBGPIdentifier: Specifies the unique BGP identifier that the BGP speaker uses while communicating with BGP peers.

dwLocalASN: Specifies the local autonomous system number (ASN) to be used for peering. This value MUST be between 1 and 65534.

bCompareMedAcrossASN: Specifies if the BGP speaker compares the multi exit discriminator (MED) attribute in a BGP route received from BGP peers across an autonomous system. This value MUST be one of the following values.

Value

Meaning

0x00000000

The BGP speaker MUST NOT compare the MED attribute in a BGP route received from BGP peers across an autonomous system.

0x00000001

The BGP speaker MUST compare the MED attribute in a BGP route received from BGP peers across an autonomous system.

bUseDefaultGateway: Specifies whether the default route would be used to recursively resolve a route. This value MUST be one of the following values.

Value

Meaning

0x00000000

The BGP speaker MUST NOT use the default route while recursively resolving a route.

0x00000001

The BGP speaker MUST use the default route while recursively resolving a route.

bIPv6Routing: Specifies whether the BGP speaker would advertise the IPv6 MultiProtocol Extension capability as specified in [RFC 2545]. This value MUST be one of the following values.

Value

Meaning

0x00000000

The BGP speaker MUST NOT advertise the IPv6 MultiProtocol Extension capability.

0x00000001

The BGP speaker MUST advertise the IPv6 MultiProtocol Extension capability.

localIPv6Address: Species the default IPv6 address that the BGP server would use as next hop while advertising IPv6 routes to peers. This configuration is used only when the IPv6 addresses are advertised over peering done using IPv4 address or link-local IPv6 address.