clear ip bgp local routes

Clears BGP4 local routes from the IP route table and resets the routes.

Syntax

clear ip bgp local routes [ vrf vrf-name ]

Parameters

vrf vrf-name
Specifies the name of a VRF instance.

Modes

Privileged EXEC mode

Examples

This example clears all BGP4 local routes.

device# clear ip bgp local routes

This example clears BGP4 local routes for VRF "red".

device# clear ip bgp local routes vrf red