Configure a BGP Peer or Peer Group Password

Use this procedure to configure a BGP peer or peer group password for Transmission Control Protocol (TCP) MD5 authentication between two peers.

Note

Note

You configure BGP peer 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. Route refresh is not currently supported on non-default VRFs.

Procedure

  1. Enter BGP Router Configuration mode:

    enable

    configure terminal

    router bgp

  2. Assign a BGP peer or peer group password:

    neighbor password <nbr_ipaddr|peer-group=name> WORD <0–1536>

Example

Assign a BGP peer or peer group password:

Switch(router-bgp)# neighbor password peergroupa password1

Variable Definitions

The following table defines parameters for the neighbor password <nbr_ipaddr|peer-group-name> command.

Variable

Value

password <nbr_ipaddr|peer-group-name> WORD <0–1536>

Specifies a password for TCP MD5 authentication between two peers.

WORD <0–1536> is an alphanumeric string length from 0 to 1536 characters.

To disable this option, use no operator with the command.

To configure this option to the default value, use default operator with the command.