Users Guide

Layer 3 Routing Commands 1308
The router replaces the global AS of the router with the configured local-as
when advertising the routes to the peer on which this command is
configured.
As well the local-as is not prepended to the routes received from the
neighbor on which this command is configured.
This command is allowed only on external BGP neighbors. A neighbor can
inherit this configuration from a peer template.
When the local-as is configured for a peer, the BGP peer adjacency gets reset.
Command History
Introduced in version 6.3.0.1 firmware. Command updated in version 6.6
firmware.
Example
console(config)#router bgp 65000
console(config-router)# neighbor 172.20.1.2 remote-as 65001
console(config-router)# neighbor 172.20.1.2 local-as 65002 no-prepend
replace-as
console(config-router)# neighbor 2001::2 remote-as 65003
console(config-router)# neighbor 2001::2 local-as 65002 no-prepend replace-
as
neighbor maximum-prefix (BGP Router
Configuration)
Use the neighbor maximum-prefix command to configure the maximum
number of IPv4 prefixes that BGP will accept from a specified neighbor.
Syntax
neighbor { ip-address | ipv6-address [ interface interface-id ]} maximum-
prefix { maximum [threshold] [warning-only] | unlimited }
no neighbor { ip-address | ipv6-address [ interface interface-id ]} maximum-
prefix
ip-addressThe neighbor’s IP address.
ipv6-addressThe neighbor’s IPv6 address. If the neighbor’s IPv6 address
is a link local address, the local interface must also be specified.