Configuring BGP

BGP Configuration Examples

Added or Deleted Prefix List Entries Examples

You can add or delete individual entries in a prefix list if a prefix list has the following initial configuration:

ip prefix-list abc deny 0.0.0.0/0 le 7 ip prefix-list abc deny 0.0.0.0/0 ge 25 ip prefix-list abc permit 35.0.0.0/8 ip prefix-list abc permit 204.70.0.0/15

The following example shows how to delete an entry from the prefix list so that 204.70.0.0 is not permitted, and add a new entry that permits 198.0.0.0/8:

no ip prefix-list abc permit 204.70.0.0/15 ip prefix-list abc permit 198.0.0.0/8

The new configuration is as follows:

ip prefix-list abc deny 0.0.0.0/0 le 7 ip prefix-list abc deny 0.0.0.0/0 ge 25 ip prefix-list abc permit 35.0.0.0/8 ip prefix-list abc permit 198.0.0.0/8

BGP Soft Reset Examples

The following examples show two ways to reset the connection for BGP peer 131.108.1.1.

Dynamic Inbound Soft Reset Example

The following examples shows the clear ip bgp 131.108.1.1 soft in EXEC command used to initiate a dynamic soft reconfiguration in the BGP peer 131.108.1.1. This command requires that the peer support the route refresh capability.

clear ip bgp 131.108.1.1 soft in

Inbound Soft Reset Using Stored Information Example

The following example shows how to enable inbound soft reconfiguration for the neighbor 131.108.1.1. All the updates received from this neighbor will be stored unmodified, regardless of the inbound policy. When inbound soft reconfiguration is performed later, the stored information will be used to generate a new set of inbound updates.

router bgp 100

neighbor 131.108.1.1 remote-as 200

neighbor 131.108.1.1 soft-reconfiguration inbound

The following example clears the session with the neighbor 131.108.1.1.

clear ip bgp 131.108.1.1 soft in

Cisco IOS IP Configuration Guide

IPC-339

Page 385
Image 385
Cisco Systems 78-11741-02 manual BGP Soft Reset Examples, Added or Deleted Prefix List Entries Examples, IPC-339