29.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 BGP4 + learned routes limit.
Command name |
Description |
---|---|
neighbor maximum-prefix |
Limits the number of routes that can be learned from a specified peer. |
(2) Setting the limit on the number of BGP4 + learned routes
- 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
-
(config)# router bgp 65531
(config-router)# bgp router-id 192.168.1.100
(config-router)# neighbor 3ffe:172:16:2::2 remote-as 65532
(config-router)# neighbor 3ffe:192:168:2::2 remote-as 65531
Configure the BGP4+ peers.
-
(config-router)# address-family ipv6
Places the router in config-router-af (ipv6) mode.
-
(config-router-af)# neighbor 3ffe:172:16:2::2 maximum-prefix 1000 80 restart 60
Allows a maximum of 10000 routes to be learned from the external peer (remote peer address:3ffe: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.
-
(config-router-af)# neighbor 3ffe:192:168:2::2 maximum-prefix 100 warning-only
Allows a maximum of 1000 routes to be learned from the internal peer (remote peer address:3ffe:172:16:2::2), and specifies that any peer exceeding this maximum will not be disconnected.
-
(config-router-af)# neighbor 3ffe:172:16:2::2 activate
(config-router-af)# neighbor 3ffe:192:168:2::2 activate
Enables the IPv6 address family.