8-35. neighbor {ip-address | peer-group-name} weight default-weight

Syntax Description:

  • ip-address— Neighbor's IP address.

  • peer-group-name— Name of the peer group. See section 8-19.

  • default-weight— 1 to 65535.

Purpose: The weight attribute has meaning only to the local router. By default, advertisements received from BGP neighbors have their weight attribute set to 0. This command sets all routes learned from a particular neighbor to the default weight used in the command.

Cisco IOS Software Release: 10.0. Peer group support was added in Release 11.0.

Configuration Example: Setting the Route Weight for the Local Router

The following configuration sets the weight of all routes learned from neighbor 10.1.1.2 to 451:

Router A
interface Serial0
 

Get Cisco® BGP-4 Command and Configuration Handbook (CCIE Professional Development) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.