Appendix A. BGP Command Reference

The commands listed in Table A-1 of this appendix are the commands used to configure and monitor Border Gateway Protocol (BGP). For full documentation on complete command syntax (arguments, parameters, and so on), command default settings, command modes, command history, usage guidelines, configuration examples, and lists of related commands, consult the CCO document at http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121cgcr/ip_r/iprprt2/1rdbgp.htm#xtocid141910.

Table A-1. BGP Commands
CommandDescription
aggregate-addressTo create an aggregate entry in a BGP routing table, use the aggregate-address router configuration command. To disable this function, use the no form of this command.
auto-summary (BGP)To restore the default behavior of automatic summarization of subnet routes into network-level routes, use the auto-summary router configuration command. To disable this feature and send subprefix routing information across classful network boundaries, use the no form of this command.
bgp always-compare-medTo allow the comparison of the Multi Exit Discriminator (MED) for paths from neighbors in different autonomous systems, use the bgp always-compare-med router configuration command. To disallow the comparison, use the no form of this command.
bgp bestpath as-path ignoreTo prevent the router from considering as-path as a factor in the algorithm for choosing a route, use the bgp bestpath as-path ignore router configuration command. To allow the router to consider as-path in choosing a route, use the no form of this command.
bgp bestpath med-confedTo enable MED comparison among paths learned from confederation peers, use the bgp bestpath med-confed router configuration command. To prevent the software from considering the MED attribute in comparing paths, use the no form of this command.
bgp bestpath missing-as-worstTo have Cisco IOS software consider a missing MED attribute in a path as having a value of infinity, making the path without a MED value the least desirable path, use the bgp bestpath missing-as-worst router configuration command. To return the router to the default (assign a value of 0 to the missing MED), use the no form of this command.
bgp client-to-client reflectionTo restore route reflection from a BGP route reflector to clients, use the bgp client-to-client reflection router configuration command. To disable client-to-client reflection, use the no form of this command.
bgp cluster-idTo configure the cluster ID if the BGP cluster has more than one route reflector, use the bgp cluster-id router configuration command. To remove the cluster ID, use the no form of this command.
bgp confederation identifierTo specify a BGP confederation identifier, use the bgp confederation identifier router configuration command. To remove the confederation identifier, use the no form of this command.
bgp confederation peersTo configure the autonomous systems that belong to the confederation, use the bgp confederation peers router configuration command. To remove an autonomous system from the confederation, use the no form of this command.
bgp dampeningTo enable BGP route dampening or change various BGP route-dampening factors, use the bgp dampening global configuration command. To disable the function or restore the default values, use the no form of this command.
bgp default local-preferenceTo change the default local preference value, use the bgp default local-preference router configuration command. To return to the default setting, use the no form of this command.
bgp deterministic medTo have Cisco IOS software compare the MED variable when choosing from among routes advertised by the same subautonomous system within a confederation, use the bgp deterministic med router configuration command. To disallow the comparison, use the no form of this command.
bgp fast-external-falloverTo immediately reset the BGP sessions of any directly adjacent external peers if the link used to reach them goes down, use the bgp fast-external-fallover router configuration command. To disable this function, use the no form of this command.
bgp log-neighbor-changesTo enable logging of BGP neighbor resets, use the bgp log-neighbor-changes router configuration command. To disable the logging of changes in BGP neighbor adjacencies, use the no form of this command.
clear ip bgpTo reset a BGP connection using BGP soft reconfiguration, use the clear ip bgp EXEC command at the system prompt.
clear ip bgp dampeningTo clear BGP route dampening information and unsuppress the suppressed routes, use the clear ip bgp dampening EXEC command.
clear ip bgp flap-statisticsTo clear BGP flap statistics, use the clear ip bgp flap-statistics EXEC command.
clear ip bgp peer-groupTo remove all the members of a BGP peer group, use the clear ip bgp peer-group EXEC command.
clear ip prefix-listTo reset the hit count of the prefix list entries, use the clear ip prefix-list router configuration command.
default-information originate (BGP)To allow the redistribution of network 0.0.0.0 into the BGP, use the default-information originate router configuration command. To disable this function, use the no form of this command.
default-metric (BGP)To set default metric values for the Border Gateway Protocol BGP routing protocol, use the default-metric router configuration command. To return to the default state, use the no form of this command.
distance bgpTo allow the use of external, internal, and local administrative distances that could be a better route to a node, use the distance bgp router configuration command. To return to the default values, use the no form of this command.
distribute-list inTo filter networks received in updates, use the distribute-list in router configuration command. To disable this function, use the no form of this command.
distribute-list outTo suppress networks from being advertised in updates, use the distribute-list out router configuration command. To disable this function, use the no form of this command.
ip as-path access-listTo define a BGP-related access list, use the ip as-path access-list global configuration command. To disable use of the access list, use the no form of this command.
ip bgp-community new-formatTo display BGP communities in the format AA:NN (autonomous system-community number/2-byte number), use the ip bgp-community new-format global configuration command. To reenable the previous display format for BGP communities (NN:AA), use the no form of this command.
ip community-listTo create a community list for BGP and control access to it, use the ip community-list global configuration command. To delete the community-list, use the no form of this command.
ip prefix-listTo create an entry in a prefix list, use the ip prefix-list global configuration command. To delete the entry, use the no form of this command.
ip prefix-list descriptionTo add a text description of a prefix list, use the ip prefix-list description global configuration command. To remove the text description, use the no form of this command.
ip prefix-list sequence-numberTo enable the generation of sequence numbers for entries in a prefix list, use the ip prefix-list sequence-number global configuration command.
match as-pathTo match a BGP autonomous system path access list, use the match as-path route-map configuration command. To remove a path list entry, use the no form of this command.
match community-listTo match a BGP community, use the match community-list route-map configuration command. To remove the community list entry, use the no form of this command.
neighbor advertisement-intervalTo set the minimum interval between the sending of BGP routing updates, use the neighbor advertisement-interval router configuration command. To remove an entry, use the no form of this command.
neighbor default-originateTo allow a BGP speaker (the local router) to send the default route 0.0.0.0 to a neighbor for use as a default route, use the neighbor default-originate router configuration command. To send no route as a default, use the no form of this command.
neighbor descriptionTo associate a description with a neighbor, use the neighbor description router configuration command. To remove the description, use the no form of this command.
neighbor distribute-listTo distribute BGP neighbor information as specified in an access list, use the neighbor distribute-list router configuration command. To remove an entry, use the no form of this command.
neighbor ebgp-multihopTo accept and attempt BGP connections to external peers residing on networks that are not directly connected, use the neighbor ebgp-multihop router configuration command. To return to the default, use the no form of this command.
neighbor filter-listTo set up a BGP filter, use the neighbor filter-list router configuration command. To disable this function, use the no form of this command.
neighbor maximum-prefixTo control how many prefixes can be received from a neighbor, use the neighbor maximum-prefix router configuration command. To disable this function, use the no form of this command.
neighbor next-hop-selfTo disable next hop processing of BGP updates on the router, use the neighbor next-hop-self router configuration command. To disable this feature, use the no form of this command.
neighbor passwordTo enable Message Digest 5 (MD5) authentication on a TCP connection between two BGP peers, use the neighbor password router configuration command. To disable this function, use the no form of this command.
neighbor peer-group (assigning members)To configure a BGP neighbor to be a member of a peer group, use the neighbor peer-group router configuration command. To remove the neighbor from the peer group, use the no form of this command.
neighbor peer-group (creating)To create a BGP peer group, use the neighbor peer-group router configuration command. To remove the peer group and all of its members, use the no form of this command.
neighbor prefix-listTo distribute BGP neighbor information as specified in a prefix list, use the neighbor prefix-list router configuration command. To remove an entry, use the no form of this command.
neighbor remote-asTo add an entry to the BGP neighbor table, use the neighbor remote-as router configuration command. To remove an entry from the table, use the no form of this command.
neighbor route-mapTo apply a route map to incoming or outgoing routes, use the neighbor route-map router configuration command. To remove a route map, use the no form of this command.
neighbor route-reflector-clientTo configure the router as a BGP route reflector and configure the specified neighbor as its client, use the neighbor route-reflector-client router configuration command. To indicate that the neighbor is not a client, use the no form of this command. When all the clients are disabled, the local router is no longer a route reflector.
neighbor send-communityTo specify that a "communities" attribute should be sent to a BGP neighbor, use the neighbor send-community router configuration command. To remove the entry, use the no form of this command.
neighbor shutdownTo disable a neighbor or peer group, use the neighbor shutdown router configuration command. To reenable the neighbor or peer group, use the no form of this command.
neighbor soft-reconfigurationTo configure the Cisco IOS software to start storing updates, use the neighbor soft-reconfiguration router configuration command. To not store received updates, use the no form of this command.
neighbor timersTo set the timers for a specific BGP peer or peer group, use the neighbor timers router configuration command. To clear the timers for a specific BGP peer or peer group, use the no form of this command.
neighbor update-sourceTo have the Cisco IOS software allow internal BGP sessions to use any operational interface for TCP connections, use the neighbor update-source router configuration command. To restore the interface assignment to the closest interface, which is called the best local address, use the no form of this command.
neighbor versionTo configure the Cisco IOS software to accept only a particular BGP version, use the neighbor version router configuration command. To use the default version level of a neighbor, use the no form of this command.
neighbor weightTo assign a weight to a neighbor connection, use the neighbor weight router configuration command. To remove a weight assignment, use the no form of this command.
network (BGP)To specify the list of networks for the BGP routing process, use the network router configuration command. To remove an entry, use the no form of this command.
network backdoorTo specify a backdoor route to a BGP border router that will provide better information about the network, use the network backdoor router configuration command. To remove an address from the list, use the no form of this command.
network weightTo assign an absolute weight to a BGP network, use the network weight router configuration command. To delete an entry, use the no form of the command.
router bgpTo configure the BGP routing process, use the router bgp global configuration command. To remove a routing process, use the no form of this command.
set as-pathTo modify an autonomous system path for BGP routes, use the set as-path route-map configuration command. To not modify the autonomous system path, use the no form of this command.
set comm-list deleteTo remove communities from the community attribute of an inbound or outbound update, use the set comm-list delete router configuration command. To negate a previous set comm-list delete command, use the no form of this command.
set communityTo set the BGP COMMUNITIES attribute, use the set community route-map configuration command. To delete the entry, use the no form of this command.
set dampeningTo set the BGP route dampening factors, use the set dampening route-map configuration command. To disable this function, use the no form of this command.
set ip next-hop (BGP)To indicate where to output packets that pass a match clause of a route map for policy routing, use the set ip next-hop route-map configuration command. To delete an entry, use the no form of this command.
set metric-type internalTo set the MED value on prefixes advertised to External Border Gateway Protocol (EBGP) neighbors to match the Interior Gateway Protocol (IGP) metric of the next hop, use the set metric-type internal route-map configuration command. To return to the default, use the no form of this command.
set origin (BGP)To set the BGP origin code, use the set origin route-map configuration command. To delete an entry, use the no form of this command.
set weightTo specify the BGP weight for the routing table, use the set weight route-map configuration command. To delete an entry, use the no form of this command.
show ip bgpTo display entries in the BGP routing table, use the show ip bgp EXEC command.
show ip bgp cidr-onlyTo display routes with nonnatural network masks (that is, classless interdomain routing, or CIDR), use the show ip bgp cidr-only privileged EXEC command.
show ip bgp communityTo display routes that belong to specified BGP communities, use the show ip bgp community EXEC command.
show ip bgp community-listTo display routes that are permitted by the BGP community list, use the show ip bgp community-list EXEC command.
show ip bgp dampened-pathsTo display BGP dampened routes, use the show ip bgp dampened-paths EXEC command.
show ip bgp filter-listTo display routes that conform to a specified filter list, use the show ip bgp filter-list privileged EXEC command.
show ip bgp flap-statisticsTo display BGP flap statistics, use the show ip bgp flap-statistics EXEC command.
show ip bgp inconsistent-asTo display routes with inconsistent originating autonomous systems, use the show ip bgp inconsistent-as privileged EXEC command.
show ip bgp neighborsTo display information about the TCP and BGP connections to neighbors, use the show ip bgp neighbors EXEC command.
show ip bgp pathsTo display all the BGP paths in the database, use the show ip bgp paths EXEC command.
show ip bgp peer-groupTo display information about BGP peer groups, use the show ip bgp peer-group EXEC command.
show ip bgp regexpTo display routes matching the regular expression, use the show ip bgp regexp privileged EXEC command.
show ip bgp summaryTo display the status of all BGP connections, use the show ip bgp summary EXEC command.
show ip prefix-listTo display information about a prefix list or prefix list entries, use the show ip prefix-list EXEC command.
synchronizationTo enable the synchronization between BGP and your Interior Gateway Protocol (IGP) system, use the synchronization router configuration command. To enable the Cisco IOS software to advertise a network route without waiting for the IGP, use the no form of this command.
table-mapTo modify metric and tag values when the IP routing table is updated with BGP learned routes, use the table-map router configuration command. To disable this function, use the no form of the command.
timers bgpTo adjust BGP network timers, use the timers bgp router configuration command. To reset the BGP timing defaults, use the no form of this command.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset