-
Neighbor
-
neighbor {ip-address | ipv6-address | peer-group-name} send-community [both | standard | extended]
- To specify that a communities attribute should be sent to a BGP neighbor,
-
neighbor {ip-address | peer-group-name | ipv6-address [%]} route-map map-name {in | out}
- To apply a route map to incoming or outgoing routes.
- neighbor {ip-address | ipv6-address[%] | peer-group-name} update-source interface-type interface-number
-
network ip-address backdoor
- To specify a backdoor route to a BGP-learned prefix that provides better information about the network.
- Works by giving the BGP-learned route an administrative distance of 200.
- Applies to routes advertised to this router, not routes advertised by this router.
-
neighbor ip-address advertise-map map-name {exist-map map-name | non-exist-map map-name}
- Installs a Border Gateway Protocol (BGP) route as a locally originated route in the BGP routing table for conditional advertisement.
-
exist-map
- When configuring an exist map, the condition is met when the prefix exists in both the advertise map and the exist map.
-
non-exist-map
- When configuring a nonexist map, the condition is met when the prefix exists in the advertise map but does not exist in the nonexist map.
- If a match occurs, then the condition is NOT met and the route is withdrawn.
-
neighbor {ip-address | peer-group-name} unsuppress-map route-map-name
- To selectively advertise routes previously suppressed by the aggregate-address command, use the neighbor unsuppress-map command in address family or router configuration mode.
- neighbor {ip-address | ipv6-address | peer-group-name} ebgp-multihop [ttl]
-
Advertisement
-
bgp inject-map inject-map exist-map exist-map [copy-attributes]
- To configure conditional route injection to inject more specific routes into a Border Gateway Protocol (BGP) routing table.
- The exist-map specifies the name of the route map containing the prefixes that the BGP speaker will track.
- The copy-attributes keyword configures the injected route to inherit attributes of the aggregate route.
-
aggregate-address address mask [as-set] [as-confed-set] [summary-only] [suppress-map map-name] [advertise-map map-name] [attribute-map map-name]
- The base command will display the specific routes along with the aggregated route.
- The summary-only keyword suppresses the specific routes.
- The as-set command is a list of all the ASNs of each of the routes being aggregated, in no particular order, to help prevent routing loops.
- The advertise-map specifies the name of the route map used to select the routes to create AS_SET origin communities.
- The attribute-map specifies the name of the route map used to set the attribute of the aggregate route.
- The suppress-map specifies the name of the route map used to select the routes to be suppressed.
-
network {network-number [mask network-mask]} [route-map map-tag]
- The route-map can be used to filter or set attributes on routes as they are advertised.
- The network-number without the mask will result on a match based on the major network boundary.
- The mask is used to match a network that doesn't fall on the major network boundary.
- In order for BGP to advertise a network number it must already be in the routing table, and does not have to be a directly connected route.
-
Verification
-
show ip bgp [ip-address [mask ]]
- The aggregated attribute displays from which ASN the prefix was aggregated, and the router-id of the BGP neighbor who did the aggregation.
- The atomic-aggregate signals that certain information may be hidden.
This attribute is assigned automatically if the "as-set" argument is not used.
- show ip bgp dampening parameters
-
show ip bgp neighbors [ip-address [advertised-routes | routes]]
- The advertised-routes keyword displays the routes being advertised to the neighbor.
- The routes keyword is the routes that are accepted by the neighbor and are in the BGP routing table.
-
General
- ip community-list {standard | standard list-name} {deny | permit} [community-number] [AA:NN] [internet] [local-AS] [no-advertise] [no-export]
- ip extcommunity-list {expanded-list [permit | deny] [regular-expression] | expanded list-name [permit | deny] [regular-expression] | standard-list [permit | deny] [rt value] [soo value] | standard list-name [permit | deny] [rt value] [soo value]}
- ip as-path access-list acl-number {permit | deny} regexp
- router bgp autonomous-system-number
-
Attributes
- Attributes can be set for a route using a route-map.
-
set extcommunity cost [igp | pre-bestpath] community-id cost-value
- The community-id is the ID for the configured extended community. The range is from 0 to 255.
- The cost-value is the configured cost that is set for matching paths in the route map. The range is from 0 to 4294967295.
-
set community {community-number [additive] [well-known-community] | none}
-
well-known-community
- internet
- no-advertise
- local-AS
- no-export
-
Dampening
-
bgp dampening [half-life reuse suppress max-suppress-time | route-map map-name]
-
half-life
- Once the route has been assigned a penalty, the penalty is decreased by half after the half-life period.
- The process of reducing the penalty happens every 5 seconds.
- The range of the half-life period is 1 to 45 minutes.
- The default is 15 minutes.
-
reuse
- If the penalty for a flapping route decreases enough to fall below this value, the route is unsuppressed.
- If the penalty for a flapping route decreases enough to fall below this value, the route is unsuppressed.
- The process of unsuppressing routes occurs at 10-second increments.
- The range of the reuse value is from 1 to 20000.
- The default is 750.
-
suppress
- A route is suppressed when its penalty exceeds this limit.
- The range is from 1 to 20000.
- The default is 2000.
-
max-suppress-time
- Maximum time (in minutes) a route can be suppressed.
- If the half-life value is allowed to default, the maximum suppress time defaults to 60 minutes.
- When the max-suppress-time is configured, the maximum penalty will never be exceeded, regardless of the number of times that the prefix dampens.
- The maximum penalty is computed with the following formula:
Maximum penalty = reuse-limit *2^(maximum suppress time/half time)
-
route-map
- Specified the name of the route map that controls where BGP route dampening is enabled.
-
Load Balancing
- maximum-paths eibgp number-of-paths [import number-of-import-paths]
- maximum-paths ibgp number-of-paths
-
bgp dmzlink-bw
- Configure BGP to distribute traffic proportionally over external links with unequal bandwidth when multipath load balancing is enabled.
-
neighbor ip-address dmzlink-bw
- Configure Border Gateway Protocol (BGP) to advertise the bandwidth of links that are used to exit an autonomous system.