The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS Border Gateway Protocol (BGP) commands that begin with C.
To clear Border Gateway Protocol (BGP) routes from the BGP table, use the clear bgp command.
clear bgp {ipv4 {multicast | unicast} | all} {neighbor | * | as-number | peer-template name | prefix} [vrf vrf-name]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear all BGP entries:
switch# clear bgp all *
To clear Border Gateway Protocol (BGP) route flap dampening information, use the clear bgp dampening command.
clear bgp {ipv4 {unicast | multicast} | all} dampening [neighbor | prefix] [vrf vrf-name | all | default | management]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear BGP route flap dampening information:
switch# clear bgp all dampening
To clear Border Gateway Protocol (BGP) route flap statistics, use the clear bgp flap-statistics command.
clear bgp {ipv4 {multicast | unicast} | all} flap-statistics [neighbor | prefix] [vrf vrf-name | all | default | management]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear BGP route flap statistics:
switch# clear bgp ipv4 multicast flap-statistics
To clear policy statistics for the Border Gateway Protocol (BGP) topology table, use the clear bgp policy statistics aggregate address command.
clear bgp policy statistics aggregate-address prefix {advertise-map | suppress-map}
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear policy statistics for an aggregate address:
switch# clear bgp policy statistics aggregate-address 192.0.2.0/8
|
|
---|---|
show bgp policy statistics |
Displays BGP policy statistics. |
To clear policy statistics for the Border Gateway Protocol (BGP) dampening, use the clear bgp policy statistics dampening command.
clear bgp policy statistics dampening
This command has no arguments or keywords.
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear policy statistics for dampening:
switch# clear bgp policy statistics dampening
|
|
---|---|
show bgp policy statistics |
Displays BGP policy statistics. |
To clear policy statistics for the Border Gateway Protocol (BGP) neighbor, use the clear bgp policy statistics neighbor command.
clear bgp policy statistics neighbor prefix [default-originate | {filter-list | prefix-list | route-map} {in | out}]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear policy statistics for an aggregate address:
switch# clear bgp policy statistics neighbor 192.0.2.1 filter-list in
|
|
---|---|
show bgp policy statistics |
Displays BGP policy statistics. |
To clear policy statistics for the Border Gateway Protocol (BGP) topology table, use the clear bgp policy statistics redistribute command.
clear bgp policy statistics redistribute {direct | eigrp id | ospf id | rip id | static} [vrf {vrf-name | all | default | management}]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear policy statistics for RIP:
switch# clear bgp policy statistics redistribute rip 201
|
|
---|---|
show bgp policy statistics |
Displays BGP policy statistics. |
To clear Border Gateway Protocol (BGP) routes from the BGP table, use the clear ip bgp command.
clear ip bgp {ipv4 {unicast | multicast} | all} {neighbor | * | as-number | peer-template name | prefix} [vrf vrf-name | all | default | management]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear all BGP entries for the IPv4 address family:
switch# clear ip bgp *
To clear Border Gateway Protocol (BGP) route flap dampening information, use the clear ip bgp dampening command.
clear ip bgp [ipv4 {unicast | multicast} | all] dampening [neighbor | prefix]
[vrf vrf-name | all | default | management]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear BGP route flap dampening information:
switch# clear ip bgp dampening
To clear Border Gateway Protocol (BGP) route flap statistics, use the clear ip bgp flap-statistics command.
clear ip bgp flap-statistics [neighbor | prefix] [vrf vrf-name | all | default | management]
None
Any command mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to clear BGP route flap statistics:
switch# clear ip bgp flap-statistics
To enable or restore route reflection from a Border Gateway Protocol (BGP) route reflector to clients, use the client-to-client reflection command. To disable client-to-client route reflection, use the no form of this command.
client-to-client reflection
no client-to-client reflection
This command has no arguments or keywords.
Client-to-client route reflection is enabled by default; when a route reflector is configured, the route reflector reflects routes from a client to other clients.
Router address-family configuration mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
By default, the clients of a route reflector are not required to be fully meshed and the routes from a client are reflected to other clients. However, if the clients are fully meshed, route reflection is not required. In this case, use the no client-to-client reflection command to disable client-to-client reflection.
This example shows how to configure a router as a route reflector:
switch(config)# router bgp 50000
switch(config-router)# address-family ipv4 multicast
switch(config-router-af)# client-to-client reflection
switch(config-router-af)#
To configure the confederation parameters for the Border Gateway Protocol (BGP), use the confederation command.
confederation {identifier | peers} as-number
None
Router configuration mode
VRF configuration mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
This command requires the LAN Enterprise Services license.
This example shows how to configure the confederation identifier:
switch# configure terminal
switch(config)# router bgp 65536.33
switch(config-router)# confederation identifier 65536.33
|
|
---|---|
show bgp |
Displays information about BGP. |