BGP Commands

Set metrictype internal

To set the MED value on prefixes advertised to EBGP neighbors to match the IGP metric of the next hop, use the set metric internal command in route-map configuration mode. To return to the default, use the no form of this command. no set ip next-hop ip-address ip-address peer-address Syntax Description This command has no arguments or keywords. Defaults This command is disabled by default. Command Modes Route-map configuration Command History Release Modification 10.3 This command was...

Neighbor distributelist

To distribute BGP neighbor information as specified in an access list, use the neighbor distribute-list command in router configuration mode. To remove an entry, use the no form of this command. neighbor ip-address peer-group-name distribute-list access-list-number expanded-list-number access-list-name prefix-list-name in out no neighbor ip-address peer-group-name distribute-list access-list-number expanded-list-number access-list-name prefix-list-name in out Syntax Description ip-address IP...

Neighbor filterlist

To set up a BGP filter, use the neighbor filter-list command in router configuration mode. To disable this function, use the no form of this command. neighbor ip-address peer-group-name filter-list access-list-number in out weight weight no neighbor ip-address peer-group-name filter-list access-list-number in out weight weight Syntax Description ip-address IP address of the neighbor. Syntax Description ip-address IP address of the neighbor. Number of an autonomous system path access list. You...

Set dampening

To set the BGP route dampening factors, use the set dampening command in route-map configuration mode. To disable this function, use the no form of this command. set dampening half-life reuse suppress max-suppress-time Time (in minutes) after which a penalty is decreased. Once the route has been assigned a penalty, the penalty is decreased by half after the half-life period (which is 15 minutes by default). The process of reducing the penalty happens every 5 seconds. The range of the half-life...

Show ip bgp neighbors

To display information about the TCP and BGP connections to neighbors, use the show ip bgp neighbors command in EXEC mode. show ip bgp neighbors address received-routes routes advertised-routes paths regular-expression dampened-routes Syntax Description address (Optional) Address of the neighbor whose routes you have learned from. If you omit this argument, all neighbors are displayed. received-routes (Optional) Displays all received routes (both accepted and rejected) routes (Optional)...

Set commlist delete

To remove communities from the community attribute of an inbound or outbound update, use the set comm-list delete configuration command. To negate a previous set comm-list delete command, use the no form of this command. Syntax Description list-num A standard or extended community list number. Defaults No communities are removed. Command History Release Modification 12.0 This command was introduced. Usage Guidelines This route-map set command removes communities from the community attribute of...

Command History Release Modification

Usage Guidelines You can implement aggregate routing in BGP either by redistributing an aggregate route into BGP or by using this conditional aggregate routing feature. Using the aggregate-address command with no keywords will create an aggregate entry in the BGP routing table if there are any more-specific BGP routes available that fall in the specified range.

Show ip bgp summary

To display the status of all BGP connections, use the show ip bgp summary command in EXEC mode. show ip bgp summary Syntax Description This command has no arguments or keywords. Command History Release Modification 10.0 This command was introduced. 12.0 The PfxRcd and Admin entries were Examples The following is sample output from the show ip bgp summary command BGP table version is 717029, main routing table version 717029 19073 network entries (37544 paths) using 3542756 bytes of memory 691...

Set ip nexthop 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 ip next-hop ip-address ip-address peer-address no set ip next-hop ip-address ip-address peer-address IP address of the next hop to which packets are output. The next hop must be an adjacent router. (Optional) Sets the next hop to be the BGP peering address. This command is disabled by...

Show ip bgp

To display entries in the BGP routing table, use the show ip bgp command in EXEC mode. show ip bgp network network-mask longer-prefixes network (Optional) Network number, entered to display a particular network in (Optional) Displays all BGP routes matching the address mask pair. (Optional) Displays route and more specific routes. The display of prefix advertisement statistics was added. Examples The following is sample output from the show ip bgp command BGP table version is 716977, local...

Show ip bgp paths

To display all the BGP paths in the database, use the show ip bgp paths command in EXEC mode. show ip bgp paths Syntax Description This command has no arguments or keywords. Command History Release Modification 10.0 This command was introduced. Examples The following is sample output from the show ip bgp paths command Address Hash Refcount Metric Path 0x6 0E5C6C0 11 3 0 10 0x6 0E577B0 35 2 40 10 Table 48 describes significant fields shown in the display. Table 48 show ip bgp paths Field...

Network backdoor

To specify a backdoor route to a BGP-learned prefix that provides better information about the network, use the network backdoor command in router configuration mode. To remove an address from the list, use the no form of this command. Syntax Description address IP address of the network to which you want a backdoor route. Defaults No network is advertised. Command History Release Modification 10.0 This command was introduced. Usage Guidelines A backdoor network is assigned an administrative...

Neighbor timers

To set the timers for a specific BGP peer or peer group, use the neighbor timers command in router configuration mode. To clear the timers for a specific BGP peer or peer group, use the no form of this command. neighbor ip-address peer-group-name timers keepalive holdtime no neighbor ip-address peer-group-name timers keepalive holdtime Syntax Description ip-address (Optional) A BGP peer or peer group IP address. Syntax Description ip-address (Optional) A BGP peer or peer group IP address....

Set community

To set the BGP COMMUNITIES attribute, use the set community command in route-map configuration mode. To delete the entry, use the no form of this command. set community community-number additive none no set community community-number additive none Specifies that community number. Valid values are 1 to 4294967200, no-export, or no-advertise. (Optional) Adds the community to the already existing communities. (Optional) Removes the COMMUNITY attribute from the prefixes that pass the route-map. No...

Neighbor peergroup creating

To create a BGP peer group, use the neighbor peer-group command in router configuration mode. To remove the peer group and all of its members, use the no form of this command. no neighbor peer-group-name peer-group Syntax Description peer-group-name Name of the BGP peer group. Defaults There is no BGP peer group. Command History Release Modification 11.0 This command was introduced. Usage Guidelines Often in a BGP speaker, there are many neighbors configured with the same update policies (that...

Neighbor sendcommunity

To specify that a COMMUNITIES attribute should be sent to a BGP neighbor, use the neighbor send-community command in router configuration mode. To remove the entry, use the no form ofthis command. neighbor ip-address peer-group-name send-community both standard extended no neighbor ip-address peer-group-name send-community Syntax Description ip-address IP address of the neighbor. Syntax Description ip-address IP address of the neighbor. (Optional) Specifies that both standard and extended...

Neighbor password

To enable MD5 authentication on a TCP connection between two BGP peers, use the neighbor password command in router configuration mode. To disable this function, use the no form of this command. neighbor ip-address peer-group-name password string no neighbor ip-address peer-group-name password IP address of the BGP-speaking neighbor. peer-group-name Name of a BGP peer group. string Case-sensitive password of up to 80 characters. The first character cannot be a number. The string can contain any...