Configuring BGP Decision Attributes To configure BGP decision attributes, perform this procedure: Before you begin On the Cisco Catalyst 9300 Series Switches, the hardware-supported maximum-path is 8. Procedure Configuring BGP Configuring BGP Decision Attributes Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 router bgp autonomous-system Example: Device(config)# router bgp 4500 Enables a BGP routing process, assign it an AS number, and enter router configuration mode. Step 4 bgp best-path as-path ignore Example:
Device(config-router)# bgp bestpath as-path ignore (Optional) Configures the router to ignore AS path length in selecting a route. Step 5 neighbor {ip-address | peer-group-name} next-hop-self Example: Device(config-router)# neighbor 10.108.1.1 next-hop-self (Optional) Disables next-hop processing on BGP updates to a neighbor by entering a specific IP address to be used instead of the next-hop address. Step 6 neighbor {ip-address | peer-group-name} weight weight Example: Device(config-router)# neighbor 172.16.12.1 weight 50 (Optional) Assign a weight to a neighbor connection. Acceptable values are from 0 to 65535; the largest weight is the preferred route.
Routes that are learned through another BGP peer have a default weight of 0; routes that are sourced by the local router have a default weight of 32768. Configuring BGP 19