Cisco Nexus 6000 Series NX-OS Unicast Routing Command Reference
BGP C Commands
Downloads: This chapterpdf (PDF - 191.0KB) The complete bookPDF (PDF - 7.33MB) | Feedback

Table of Contents

C Commands

clear bgp

clear bgp dampening

clear bgp flap-statistics

cl ear bgp policy statistics aggregate-address

cl ear bgp policy statistics dampening

cl ear bgp policy statistics neighbor

cl ear bgp policy statistics redistribute

clear ip bgp

clear ip bgp dampening

clear ip bgp flap-statistics

client-to-client reflection

confederation

C Commands

This chapter describes the Cisco NX-OS Border Gateway Protocol (BGP) commands that begin with C.

clear bgp

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 ]

 
Syntax Description

ipv4

Clears the BGP information for the IPv4 address family.

multicast

Clears BGP information for the multicast address family.

unicast

Clears BGP information for the unicast address family.

all

Clears the BGP information for all address families.

neighbor

Network address. The format is A.B.C.D for IPv4.

*

Clears all neighbors.

as-number

Autonomous system number. The range is from 1 to 65535.

peer-template name

Specifies a BGP peer template. The name can be any case-sensitive, alphanumeric string up to 63 characters.

prefix

Prefix from the selected address family. The format is A.B.C.D/length for IPv4.

vrf vrf-name

(Optional) Specifies a particular virtual routing and forwarding (VRF) context name or all VRF instances. The VRF name can be any case-sensitive, alphanumeric string up to 32 characters.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear all BGP entries:

switch# clear bgp all *
 

clear bgp dampening

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 ]

 
Syntax Description

ipv4

Clears BGP information for the IPv4 address family.

unicast

Clears BGP information for the unicast address family.

multicast

Clears BGP information for the multicast address family.

all

Clears BGP information for all address families.

neighbor

(Optional) Neighbor from the selected address family. The format is A.B.C.D for IPv4.

prefix

(Optional) Prefix from the selected address family. The format is A.B.C.D/length for IPv4.

vrf vrf-name

(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name can be any case-sensitive, alphanumeric string up to 32 characters.

all

(Optional) Clears BGP information from all VRFs.

default

(Optional) Clears BGP information from the default VRF.

management

(Optional) Clears BGP information from the management VRF.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear BGP route flap dampening information:

switch# clear bgp all dampening
 

clear bgp flap-statistics

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 ]

 
Syntax Description

ipv4

Clears BGP information for the IPv4 address family.

unicast

Clears BGP information for the unicast address family.

multicast

Clears BGP information for the multicast address family.

all

Clears BGP information for all address families.

neighbor

(Optional) Neighbor from the selected address family. The format is A . B . C . D for IPv4.

prefix

(Optional) Prefix from the selected address family. The format is A . B . C . D / length for IPv4.

vrf vrf-name

(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name can be any case-sensitive, alphanumeric string up to 32 characters.

all

(Optional) Clears BGP information from all VRFs.

default

(Optional) Clears BGP information from the default VRF.

management

(Optional) Clears BGP information from the management VRF.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear BGP route flap statistics:

switch# clear bgp ipv4 multicast flap-statistics
 

clear bgp policy statistics aggregate-address

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 }

 
Syntax Description

prefix

Summary address. The format is x . x . x . x or x . x . x . x / length . The range is from 1 to 32.

advertise-map

Clears policy statistics for the advertise policy.

suppress-map

Clears policy statistics for the suppress policy.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear policy statistics for an aggregate address:

switch# clear bgp policy statistics aggregate-address 192.0.2.0/8
 

 
Related Commands

Command
Description

show bgp policy statistics

Displays BGP policy statistics.

clear bgp policy statistics dampening

To clear policy statistics for the Border Gateway Protocol (BGP) dampening, use the clear bgp policy statistics dampening command.

clear bgp policy statistics dampening

 
Syntax Description

This command has no arguments or keywords.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear policy statistics for dampening:

switch# clear bgp policy statistics dampening
 

 
Related Commands

Command
Description

show bgp policy statistics

Displays BGP policy statistics.

clear bgp policy statistics neighbor

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 }]

 
Syntax Description

prefix

Neighbor address. The format is x.x.x.x.

default-originate

(Optional) Clears policy statistics for the default originate policy.

filter-list

(Optional) Clears policy statistics for the neighbor filter list.

prefix-list

(Optional) Clears policy statistics for the neighbor prefix list.

route-map

(Optional) Clears policy statistics for the neighbor route map.

in

(Optional) Clears inbound policy statistics.

out

(Optional) Clears outbound policy statistics.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

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
 

 
Related Commands

Command
Description

show bgp policy statistics

Displays BGP policy statistics.

clear bgp policy statistics redistribute

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 }]

 
Syntax Description

direct

Clears policy statistics for directly connected routes only.

eigrp

Clears policy statistics for Enhanced Interior Gateway Routing Protocol (EIGRP).

ospf

Clears policy statistics for the Open Shortest Path First (OSPF) protocol.

rip

Clears policy statistics for the Routing Information Protocol (RIP).

static

Clears policy statistics for IP static routes.

id

For the eigrp keyword, an EIGRP instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco Nexus 6000 stores it internally as a string.

For the ospf keyword, an OSPF instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco Nexus 6000 stores it internally as a string.

vrf vrf-name

(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name is an alphanumeric string of up to 32 characters.

all

(Optional) Specifies the “all” VRF instance.

default

(Optional) Specifies the default VRF.

management

(Optional) Specifies the management VRF.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear policy statistics for RIP:

switch# clear bgp policy statistics redistribute rip 201
 

 
Related Commands

Command
Description

show bgp policy statistics

Displays BGP policy statistics.

clear ip bgp

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 ]

 
Syntax Description

ipv4

(Optional) Clears BGP information for the IPv4 address family.

unicast

Clears BGP information for the unicast address family.

multicast

Clears BGP information for the multicast address family.

all

Clears the BGP information for all address families.

neighbor

Network address. The format is A.B.C.D for IPv4.

*

Clears all BGP routes.

as-number

Autonomous system (AS) number. The range is from 1 to 65535.

peer-template name

Specifies a BGP peer template. The name can be any case-sensitive, alphanumeric string up to 63 characters.

prefix

Prefix from the selected address family. The format is A.B.C.D/length for IPv4.

vrf vrf-name

(Optional) Specifies a particular VPN routing and forwarding (VRF) instance. The VRF name can be any case-sensitive, alphanumeric string up to 32 characters.

all

(Optional) Clears the BGP information from all VRF entries.

default

(Optional) Clears the BGP information from the default VRF.

management

(Optional) Clears the BGP information from the management VRF.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear all BGP entries for the IPv4 address family:

switch# clear ip bgp *
 

clear ip bgp dampening

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 ]

 
Syntax Description

ipv4

(Optional) Clears BGP information for the IPv4 address family.

unicast

(Optional) Clears BGP information for the unicast address family.

multicast

(Optional) Clears BGP information for the multicast address family.

all

(Optional) Clears the BGP information for all address families.

neighbor

(Optional) Neighbor from the selected address family. The format is A.B.C.D for IPv4.

prefix

(Optional) Prefix from the selected address family. The format is A.B.C.D/length for IPv4.

vrf vrf-name

(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name can be any case-sensitive, alphanumeric string up to 32 characters.

all

(Optional) Clears the BGP information from all VRF entries.

default

(Optional) Clears the BGP information from the default VRF.

management

(Optional) Clears the BGP information from the management VRF.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Command History

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear BGP route flap dampening information:

switch# clear ip bgp dampening
 

clear ip bgp flap-statistics

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 ]

 
Syntax Description

neighbor

(Optional) Neighbor from the selected address family. The format is A.B.C.D for IPv4.

prefix

(Optional) Prefix from the selected address family. The format is A.B.C.D/length for IPv4.

vrf vrf-name

(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name can be any case-sensitive, alphanumeric string up to 32 characters.

all

(Optional) Clears the BGP information from all VRF entries.

default

(Optional) Clears the BGP information from the default VRF.

management

(Optional) Clears the BGP information from the management VRF.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to clear BGP route flap statistics:

switch# clear ip bgp flap-statistics
 

client-to-client reflection

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

 
Syntax Description

This command has no arguments or keywords.

 
Command Default

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.

 
Command Modes

Router address-family configuration mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

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.

Examples

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)#
 

 
Related Commands

Command
Description

address-family (BGP router)

Places the router in address family configuration mode for configuring routing sessions that use standard IPv4 address prefixes.

show ip bgp

Displays entries in the BGP routing table.

confederation

To configure the confederation parameters for the Border Gateway Protocol (BGP), use the confederation command.

confederation { identifier | peers } as-number

 
Syntax Description

identifier

Sets the routing domain confederation autonomous system (AS) number.

peers

Sets the peer AS numbers for a BGP confederation.

as-number

Autonomous system number. The AS number can be a 16-bit integer or a 32-bit integer in the form of <higher 16-bit decimal number>.<lower 16-bit decimal number>.

 
Command Default

None

 
Command Modes

Router configuration mode

VRF configuration mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

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
 

 
Related Commands

Command
Description

show bgp

Displays information about BGP.