API Guide

4. Clear all information or only specific details in EXEC mode.
clear ip bgp {neighbor-address | *} [soft in]
* Clears all peers.
neighbor-address Clears the neighbor with this IP address.
Soft-reconfiguration of IPv4 neighbor
OS10(conf-router-neighbor)# address-family ipv4 unicast
OS10(conf-router-bgp-neighbor-af)# soft-reconfiguration inbound
OS10(conf-router-bgp-neighbor-af)# end
OS10# clear ip bgp 10.2.1.2
Soft-reconfiguration of IPv6 neighbor
OS10(conf-router-neighbor)# address-family ipv6 unicast
OS10(conf-router-bgp-neighbor-af)# soft-reconfiguration inbound
OS10(conf-router-bgp-neighbor-af)# end
OS10# clear ip bgp 2001:0000:3221:DFE8:63::FEAB
Redistribute iBGP route to OSPF
When you configure the system redistribute BGP routes to OSPF, by default, the system redistributes only the eBGP routes. To
redistribute iBGP routes to OSPF, configure a route-map and apply it to the redistribute command under the OSPF
configuration.
Sample configuration
The following sample topology has two switches, Core 1 and Core 2, that are connected to each other and share routes using
OSPF. A border router BR is connected to Core 1 and shares routes using internal BGP. Core 1 redistributes the routes that are
learned by iBGP to OSPF to Core 2.
Configuration on BR
BR has BGP configured which forms BGP neighbor adjacency with Core 1.
interface Loopback0
ip address 192.168.100.1/24
!
interface ethernet1/1/1
no shutdown
no switchport
ip address 10.10.9.1
!
router bgp 20
network 192.168.100.0
neighbor 10.10.9.2 remote-as 20
address-family ipv4 unicast
Configuration on Core 1
Layer 3
603