API Guide

not add the as-set parameter to the aggregate because the aggregate flaps to track changes in the
AS_PATH. The no version of this command disables the aggregate-address configuration.
Example
OS10(conf-router-bgpv4-af)# aggregate-address 6.1.0.0/16 summary-only
Supported
Releases
10.3.0E or later
allowas-in
Configures the number of times the local AS number can appear in the BGP AS_PATH path attribute before the switch rejects
the route.
Syntax
allowas-in as-number
Parameters as-numberEnter the number of occurrences for a local AS number, from 1 to 10.
Default Disabled
Command Mode ROUTER-BPG-NEIGHBOR-AF
Usage
Information
Use this command to enable the BGP speaker to accept a route with the local AS number in updates
received from a peer for the specified number of times. The no version of this command resets the value
to the default.
Example (IPv4)
OS10(config-router-neighbor)# address-family ipv4 unicast
OS10(conf-router-bgp-neighbor-af)# allowas-in 5
Example (IPv6)
OS10(conf-router-template)# address-family ipv6 unicast
OS10(conf-router-bgp-template-af)# allowas-in 5
Example (l2vpn)
OS10(config-router-neighbor)# address-family l2vpn evpn
OS10(config-router-bgp-neighbor-af)# allowas-in 3
Supported
Releases
10.3.0E or later
always-compare-med
Compares MULTI_EXIT_DISC (MED) attributes in the paths that are received from different neighbors.
Syntax
always-compare-med
Parameters None
Default Disabled
Command Mode ROUTER-BGP
Usage
Information
After you use this command, use the clear ip bgp * command to recompute the best path. The no
version of this command resets the value to the default.
NOTE: To configure these settings for a nondefault VRF instance, first enter the ROUTER-CONFIG-
VRF sub mode using the following commands:
1. Enter the ROUTER BGP mode using the router bgp as-number command.
2. From the ROUTER BGP mode, enter ROUTER BGP VRF mode using the vrf vrf-name
command.
Example
OS10(conf-router-bgp-10)# always-compare-med
Layer 3 619