Configuration Guide Vol. 3


13.5.10 Configuration of BGP4 learned route limit

<Structure of this section>

(1) List of configuration commands

The following tables list the commands used to configure the limit on the number of learned BGP4 routes.

Table 13-24: List of configuration commands

Command name

Description

neighbor maximum-prefix

Limits the number of routes that can be learned from a specified peer.

(2) Setting BGP4 learned route limit

Points to note

The example below shows how to limit the number of BGP4 routes that can be learned from a peer by using the neighbor maximum-prefix command.

Command examples

  1. (config)# router bgp 65531

    (config-router)# bgp router-id 192.168.1.100

    (config-router)# neighbor 172.16.2.2 remote-as 65532

    (config-router)# neighbor 192.168.2.2 remote-as 65531

    Configure the BGP4 peers.

  2. (config-router)# neighbor 172.16.2.2 maximum-prefix 10000 80 restart 60

    Allows a maximum of 10000 routes to be learned from the external peer (remote peer address: 172.16.2.2). Sets a threshold of 80% for output of a warning message, and an interval of 60 minutes before reconnection of any peer that was disconnected because it exceeded the maximum.

  3. (config-router)# neighbor 192.168.2.2 maximum-prefix 1000 warning-only

    Allows a maximum of 1000 routes to be learned from the internal peer (remote peer address:172.16.2.2), and specifies that any peer exceeding this maximum will not be disconnected.