![Cisco Nexus 3548 series Command Reference Manual Download Page 91](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162091.webp)
71
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
clear ip bgp
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
Command Default
None
Command Modes
Any command mode
Command History
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 *
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.
Release
Modification
5.0(3)A1(1)
This command was introduced.