Connectivity Guide

Table Of Contents
allowas-in
Congures 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-number—Enter the number of occurrences for a local AS number, from 1 to 10.
Default Disabled
Command Mode ROUTER-BPG-TEMPLATE-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 specied number of times. This conguration does not apply to updates received from a BGP peer in
a peer group. A BGP peer cannot be assigned to a peer group that is congured with an AS number. The no
version of this command resets the value to the default.
Example ((IPv4)
OS10(conf-router-template)# address-family ipv4 unicast
OS10(conf-router-bgp-template-af)# allowas-in 5
Example (IPv6)
OS10(conf-router-template)# address-family ipv6 unicast
OS10(conf-router-bgp-template-af)# allowas-in 5
Supported Releases 10.3.0E or later
always-compare-med
Compares MULTI_EXIT_DISC (MED) attributes in the paths received from dierent 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 congure these settings for a non-default VRF instance, rst 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
Supported Releases 10.2.0E or later
as-notation
Changes the AS number notation format and requires four-octet-assupport.
Syntax
as-format {asdot | asdot+ | asplain}
Layer 3 355