Configuration commands
Use these M4500 CLI commands to enable BGP, set the AS number and router ID, and configure aggregation, route reflection, path selection, and timers.
router bgp
Use this command to enable BGP, enter the Border Gateway Protocol (BGP) router mode, and identify the AS number of the router. Only a single instance of BGP can be run and the router can only belong to a single AS. no router bgp command disables BGP and resets all BGP configuration to default values. Alternatively, you can use no enable command in BGP router configuration mode to disable BGP globally without clearing the BGP configuration.
| Default | BGP inactive |
| Format |
|
| Mode | Global Config |
| Fields | Definition |
|---|---|
| autonomous-system-number | Number of an autonomous system that identifies the router to other BGP routers and tags the routing information that is passed along. Number in the range from 1 to 4294967295. |
enable
Use enable command resets the default administrative mode of BGP in the router (active). no enable command sets the administrative mode of BGP in the router to inactive. When you disable BGP, BGP retains its configuration.
| Default | Enabled |
| Format |
|
| Mode | Router BGP Config Mode |
aggregate-address
Use aggregate-address command to create an aggregate entry in a Border Gateway Protocol (BGP) database. Use no aggregate-address command to disable an aggregate entry in a Border Gateway Protocol (BGP) database.
To be considered a match for an aggregate address, a prefix must be more specific (i.e. have a longer prefix length) than the aggregate address. A prefix whose prefix lengh equals the length of the aggregate address is not considered a match. BGP accepts up to 128 summary addresses for each address family.
| Default |
None Unless the options are specified, the aggregate is advertised with the ATOMIC_AGGREGATE attribute and an empty AS path, and the more specific routes are advertised along with the aggregate. |
| Format | aggregate-address {<address> <mask> | <ipv6-prefix> <prefix-length>} [as-set] [summary-only] no aggregate-address {<address> <mask> | <ipv6-prefix> <prefix-length>} [as-set] [summary-only] |
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| Address | Summary IPv4 address. The default route cannot be configured as an aggregate address. |
| Mask | Summary IPv4 mask. The mask cannot be a 32-bit mask (255.255.255.255). The combination of address and mask must be a valid unicast destination prefix. |
| ipv6-prefix | Summary IPv6 prefix. Not support under IPv4 VRF address family mode. |
| prefix-length | Summary IPv6 prefix length. The range is from 1 to 127. Not support under IPv4 VRF address family mode. |
| as-set | if this option is set, the aggregate is advertised with a non-empty AS_PATH. If the AS_PATH of all contained routes is the same, the AS_PATH of the aggregate is the AS_PATH of the contained route. Otherwise, if the contained routes have different AS_PATHs, the AS_PATH attribute includes an AS_SET with each of the AS numbers listed in the AS_PATHs of the aggregate routes. |
| summary-only | Filters all more-specific routes within the aggregate address and not being advertised to neighbors. |
bgp aggregate-different-meds
Use bgp aggregate-different-meds command to allow aggregation of routes with different MED values. Use no bgp aggregate-different-meds command to disable this function. When this command is issued, the path for an active aggregate address is advertised without a MED attribute. When this command is not issued, if multiple routes match an aggregate address, but have different MEDs, the aggregate takes the MED of the first matching route. Any other matching prefix with the same MED is included in the aggregate. Matching prefixes with different MEDs, are not considered to be part of the aggregate and continue to be advertised as individual routes.
| Default |
Disable All the routes aggregated by a given aggrerate address must have the same MED value. |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
bgp always-compare-med
Use bgp always-compare-med command to compare MED values in paths received from peers in different ASs. Use no bgp always-compare-med command to disable this function.
| Default |
Disable MED values are only compared for paths received from peers in the same AS. |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
bgp bestpath as-path ignore
This command ignores the AS PATH length in the best path calculation during the decision process. For IPv6 routes, configure this command under the IPv6 Address Family Config mode.
To revert to the default behavior, where AS PATH length is not ignored in the BGP best path calculation, use the no form of this command.
| Default |
Disable AS PATH length is not ignored in the BGP best path calculation. |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
bgp client-to-client reflection
Use this command to reflect routes received from its client ot its other clients. To disable client-to-client reflection, use the no form of this command.
| Default | Enabled when a router is configured as a route reflector. |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
bgp cluster-id
Use this command to specify the cluster ID of a route reflector. The same cluster ID is used for both IPv4 and IPv6 route reflection. To revert the cluster ID to its default, use the no form of this command.
| Format | bgp cluster-id <cluster-id> |
no bgp cluster-id
| Fields | Definition |
|---|---|
| cluster-id | A non-zero 32-bit identifier that uniquely identifies a cluster of route reflectors and their clients. The cluster ID may be entered in dotted notation like IPv4 address or as an integer. The range is from 1 to 4294967295. |
| Default | Use BGP router ID as the cluster ID if a route reflector does not configure cluster ID. |
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
bgp default local-preference
This command changes the default local preference value. To return the local preference value to the default setting, use the no form of this command.
| Default | 100 |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| Number | Local preference value from 0 to 4294967295. |
bgp fast-external-failover
This command configures Border Gateway Protocol (BGP) routing process to immediately reset external BGP peering sessions if the link used to reach these peers goes down. no bgp fast-external-failover command disables this function.
| Default | Enabled |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
bgp fast-internal-failover
This command configures Border Gateway Protocol (BGP) routing process to immediately reset internal BGP peering sessions if the link used to reach these peers goes down. no bgp fast-internal-failover command disables fast failover for internal peers.
| Default | Enabled |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
bgp log-neighbor-changes
This command enables logging of BGP neighbor resets . To disable the logging of changes in BGP neighbor adjacencies, use the no form of this command.
Both backward and forward adjacency state changes are logged. Forward state changes, except for transitions to the Established state, are logged at the Informational severity level. Backward state changes and forward changes to Establish state are logged at the Notice serverity level.
| Format | bgp log-neighbor-changes |
no bgp log-neighbor-changes
| Default | Disabled |
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
bgp router-id
This command configures a valid IPv4 unicast address uniquely identifying the router bgp id. The <router-id> is a configured value. There is no default BGP router ID. The system does not select a router ID automatically and must configure one manually.
| Default | None |
| Format |
|
| Mode | Router BGP Config Mode |
| Fields | Definition |
|---|---|
| router-id | An IPv4 address for BGP to use as its router ID. Not required to be an address assigned to the router. Setting the router ID to 0.0.0.0 disables BGP. Changing the router ID disables and re-enables BGP, which causes all adjacencies to be reestablished. |
bgp maxas-limit
This command specifies Border Gateway Protocol (BGP) a limit on the length of AS PATHs that BGP accepts from its neighbors. If BGP receives a path whose AS PATH attribute is longer than the configured limit, BGP sends a NOTIFICATION and resets the adjacency. To return the router to default operation, use the no form of this command.
| Default | 75 |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| Number | Maximum number of autonomous system numbers in the AS PATH attribute of the BGP Update message, ranging from 1 to 100. |
bgp graceful-restart
The user is able to enable BGP graceful restart enabled mode by command bgp graceful-restart in BGP router configuration mode. To disable the BGP graceful restart enabled mode, use no form of this command.
| Default | Disable |
| Format |
|
| Mode | Router BGP Config Mode |
bgp graceful-restart-helper
The user is able enable BGP graceful restart helper mode by command bgp graceful-restart-helper in BGP router configuration mode. To disable the BGP graceful restart helper mode, use no form of this command.
| Default | Disable |
| Format |
|
| Mode | Router BGP Config Mode |
bgp graceful-restart restart-time <restart-time>
The user is able configure BGP graceful restart helper restart timer by command bgp graceful-restart restart-time in BGP router configuration mode. To reset BGP graceful restart helper restart timer to default value, use no form of this command..
| Default | 180 seconds |
| Format |
|
| Mode | Router BGP Config Mode |
| Fields | Definition |
|---|---|
| Restart-time | The setting of the restart timer ranged from 1 to 3600. The timer is used by BGP GR aware node to decide whether restart operation of neighbor BGP GR enabled node is successful. The restart operation is considered failed if the BGP Aware node does not received BGP OPEN message from BGP enabled node after the timer expires. |
bgp graceful-restart stalepath-time <stalepath-time>
The user is able configure BGP graceful restart helper stale path timer by command bgp graceful-restart stalepath-time in BGP router configuration mode. To reset BGP graceful restart helper restart timer to default value, use no form of this command.
| Default | 300 seconds |
| Format |
|
| Mode | Router BGP Config Mode |
| Fields | Definition |
|---|---|
| Stalepath-time | The setting of the stale path timer ranged from 1 to 3600. The timer is used by BGP GR aware node to remove state routes learned from neighboring BGP GR enabled node after the timer expires. |
bgp listen
The user is able to activate dynamic neighbors feature and specify the maximum number of IPv4/IPv6 neighbors that can be created, IPv4/IPv6 prefix for listening range, as well as the peer template inherited by command bgp listen in BGP router configuration mode. To de-activate dynamic neighbors feature, use no form of this command.
| Default | No subnets are associated with a BGP listen subnet range, and the BGP dynamic neighbor feature is not activated. |
| Format | bgp listen {limit <max-num>| range <prefix>/<prefix-length> [inherit peer <peer-template-name>] } no bgp listen {limit <max-num>| range <prefix>/<prefix-length> [inherit peer <peer-template-name>] } |
| Mode | Router BGP Config Mode |
| Fields | Definition |
|---|---|
| Maximum Peers | Maximum number of dynamic members in this VRF with specific address family. Number from 1 to 100. Default is 20. |
| Prefix/Length | Specify the listen range IP prefix and prefix length to be created. |
| Template | Specify the name of a BGP peer template that is to be associated with the specified listen subnet range and inherited with dynamically created neighbors. The template will be inherited with dynamically created neighbors. |
IPv6 Address Family Mode
exit
This command is used to exit bgp configuration mode.
| Default | None |
| Format | exit |
| Mode | Router BGP Config Mode |
timers bgp
This command is used to set the keepalive and holdtime timers. To return the router to default operation, use the no form of this command.
| Default |
The default value of keepalive is 60 seconds. The default value of holdtime is 180 seconds. |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| Keepalive | The number of seconds this BGP speaker waits for a keepalive message before deciding that the connection is down. We recommend you configure the keepalive parameter as 1/3 of the holdtime parameter. The range is from 0 to 65535. |
| Holdtime | The number of seconds this BGP speaker waits for a keepalive, update, or notification message before deciding that the connection is down. We recommend you configure the holdtime parameter as 3 times the keepalive parameter. The range is from 0 to 65535. |
neighbor default-originate route-map
This command is used to originate a default route to a specific neighbor. Use the option if-default-present to originate the default route only if the default route exists in the routing table. The global default-originate command is overridden by the default-originate setting for a neighbor if enabled.
A route map may be configured to set attributes on the default route sent to the neighbor. If the route map includes a match ip-address term, that term is ignored. If the route map includes match community or match as-path terms, the default route is not advertised. If there is no route map with the route map name given, the default route is not advertised.
To prevent BGP from originating a default route to a specific neighbor, use the no form of this command.
| Default | No default route is originated by default. |
| Format | neighbor {<ipv4-address> | <ipv6-address> [interface {<slot/port> | vlan {1-4093}}] | autodetect interface <slot/port>} default-originate [if-default-present] [route-map <route-map-name>] no neighbor {<ipv4-address> | <ipv6-address> [interface {<slot/port> | vlan {1-4093}}] | autodetect interface <slot/port>} default-originate [if-default-present] [route-map] |
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| route-map-name | A route map may be configured to set attributes on the default route advertised to the neighbor. |
neighbor inherit peer
This command is used to inherit neighbor configuration parameters from a peer template. Neighbor session and policy parameters can be configured once in a peer template and inherited by multiple neighbors, eliminating the need to configure the same parameters for each neighbor. A neighbor can inherit directly from only one peer template. To remove the inheritance, use the no form of this command.
| Default | None |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support under IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support under IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| Templatename | Name of the peer template whose peer configuration parameters are to be inherited by this neighbor. |
neighbor local-as
This command is used to advertise the configured local AS number instead of the router’s own AS in the routes advertised to the neighbor. This command is only allowed on the external BGP neighbors. To remove the local AS, use the no form of this command.
| Default | None |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support under IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support under IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| As-number | The AS number to advertise as the local AS in the AS PATH sent to the neighbor. |
| no-prepend | Do not prepend the local-AS in the AS PATH received in the updates from this neighbor. |
| replace-as | Replace the router’s own AS with the local-AS in the AS PATH sent to the neighbor. |
neighbor update-source
This command is used to configure BGP to use the IP address on the specific routing interface as the source address for the TCP connection with a neighbor. To use the primary IP address on the outgoing interface to the neighbor for the TCP connection, use the no form of this command.
| Default |
Disable Use the primary IP address on the outgoing interface to the neighbor. |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support under IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support under IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| slot/port | Valid slot and port number separated by forward slashes. |
| loop interface number | The valid value is from 0 to 63. |
| vlan id | The valid value is from 1 to 4093. |
neighbor description
This command is used to record a text description for a neighbor. This description is informational and has no functional impact. To remove the description, use the no form of this command.
| Default | None |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support under IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support under IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| Description | Text (up to 80 characters) that describes the neighbor. |
neighbor ebgp-multihop
This command is used to form neighborship with non-directly-connected external neighbor with configured maximum hop-count allowed to reach it. For internal BGP neighbors, the TTL value remains 64 and cannot be modified. To make the update-source config work for external BGP neighbors, ebgp-multihop should be configured to increase the TTL value instead of the default TTL of 1. To remove the neighborship, use the no form of this command.
| Default | 1 |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| hop-count | The maximum hop-count allowed to reach the neighbor. The allowed range is from 1 to 255. |
neighbor password
This command is used to enable Message Digest 5 (MD5) authentication on a TCP connection between two BGP peers and configures an authentication key. MD5 must either be enabled or disabled on both peers. The same password must be configured on both peers. To disable this function, use the no form of this command.
| Default | None |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not supported in the IPv4 VRF address family mode. |
| interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not supported in the IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is defined is auto-detected. |
| password | Use this option directly to set plain-text passwords with a maximum length of 25 characters. Use this option with the ‘<string> encrypted’ parameter to set passwords in encrypted form with a length of 128 hexadecimal digits. |
neighbor connect-retry-interval
This command is used to configure the initial connection retry time for a specific neighbor. If a neighbor does not response to an initial TCP connection attempt, BGP retries three times. The first retry is after the retry interval configured with neighbor connect-retry-interval. Each subsequence retry doubles the previous retry
interval. So by default, the TCP connection is retried after 2, 4, and 8 seconds. If none of the retries is successful, the adjacency is reset to IDLE state and the IDLE hold timer is started. BGP skips the retries and transitions to IDLE state if TCP returns an error, such as destination unreachable, on a connection attempt. To return the router to default initial connection retry time for a specific neighbor, use the no form of this command.
| Default | 2 seconds |
| Format |
|
| Mode |
Router BGP Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| connection-retry-interval | The valid range is 1 to 65535 seconds. |
neighbor maximum-prefix
This command is used to limit how many prefixes can be received from a neighbor. The prefix limit is compared against the number of prefixes received from neighbor, including prefixes that are rejected by inbound policy. A neighbor that exceeds the limit is shutdown unless the warning-log option is configured.
To revert to the default value for the maximum number of prefixes that BGP will accept from a specific neighbor, use the no form of this command.
| Default | Threshold: default is 75 |
| Format | neighbor {<ipv4-address> | <ipv6-address> [interface {<slot/port> | vlan {1-4093}}] | autodetect interface <slot/port>} maximum-prefix {<maximum> [<threshold>] [warning-only] | unlimited} no neighbor {<ipv4-address> | <ipv6-address> [interface {<slot/port> | vlan {1-4093}}] | autodetect interface <slot/port>} maximum-prefix |
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support under IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support under IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| Maximum | Maximum number of prefixes BGP will accept from this neighbor. Range is from 0 to 4294967295. |
| Unlimited | Don’t restric the number of prefixes from this neighbor. |
| Threshold | Integer specifying at what percentage of the maximum BGP starts to write log messages. The range is from 1 to 100. |
| warning-only | BGP only discards excess prefixes and writes a log message rather than shutting down the adjacency if BGP receives more than the maximum number of prefixes. |
neighbor next-hop-self
This command is used to configure BGP to set the next hop attribute to a local IP address when advertising a route to an internal peer.
Normally BGP retains the next hop attribute received from the external peer. When the next hop attribute in routes from external peers is retained, internal peer must have a route to the external peer’s IP address. This is commonly done by configuring the IGP on the boarder router to advertise the external subnet.
To disable this feature, use the no form of this command.
| Default | None |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support under IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support under IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
neighbor filter-list
This command is used to filter advertisements to or from a specific neighbor according to the advertisement’s AS path. Only a single AS path list can be configured in each direction for each neighbor. If you invoke the command a second time for a given neighbor, the new AS path list number replaces the previous AS path list number.
If you assign a neighbor filter list to a nonexisted AS path access list, all routes are filtered.
Filtering for IPv6 is independent of filtering configured for IPv4. If an UPDATE message includes both IPv4 and IPv6 NLRI, it could be filtered for IPv4 but accepted for IPv6 or vice versa.
To unconfigure neighbor filter lists, use the no form of this command.
| Default | None |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| Listnum | Number to identify an AS path list. The range is from 1 to 500. |
| In | Access list is applied to advertisements received from the neighbor. |
| Out | Access list is applied to advertisements to be sent to the neighbor. |
neighbor prefix-list
This command is used to filter advertisements sent to or receive from a specific neighbor based on the destination prefix of each route. Only one prefix list may be defined for each neighbor in each direction. If you assign a prefix list that does not exist, all prefixes are permitted.
To remove an IP filter list, use the no form of this command.
| Default | None |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| Listname | Name of a prefix list. The list defines which networks are to be received and which are to be suppressed in routing updates, based upon matching destination prefixes in the prefix list. |
| In | Access list is applied to advertisements received from the neighbor. |
| Out | Access list is applied to advertisements to be sent to the neighbor. |
neighbor remote-as
This command is used to configure a neighbor and identify the neighbor’s autonomous system. The neighbor’s AS number must be specified when the neighbor is created. Up to 128 neighbors may be configured.
To remove a neighbor, use the no form of this command.
| Format | neighbor {<ipv4-address> | <ipv6-address> [interface {<slot/port> | vlan {1-4093}}] | autodetect interface <slot/port>} remote-as <as-number> |
no neighbor {<ipv4-address> | <ipv6-address> [interface {<slot/port> | vlan {1-4093}}] | autodetect interface <slot/port>} remote-as
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| As-number | Number of an autonomous system to which the neighbor belongs in the range from 1 to 4294967295. |
| Default | None |
| Mode | Router BGP Config Mode |
neighbor remove-private-as
This command is used to remove private AS numbers when advertising routes to an external peer. This command can only be applied to external peers. Private AS numbers are removed or replaced whether or not the original AS path includes any non-private AS numbers. The AS path advertised to the external peer always includes at least one instance of the local AS number; therefore, removing private AS numbers never results in advertisement of an empty AS_PATH attribute. AS numbers from 64512 to 65535 inclusive are considered private. Although 65535 is a reserved ASN and not technically part of the private range, it is treated as a private AS when removing or replacing private ASNs.
To stop removing private AS numbers, use the no form of this command.
| Default | Private AS numbers are not removed by default |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support under IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support under IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| all replace-as | To retain the original AS path length, replace each private AS number with the local AS number. |
neighbor route-map
This command is used to apply a route map to incoming or outgoing routes for a specific neighbor. A route map can be used to change the local preference, MED, or AS path of a route.
To remove a route map, use the no form of this command.
| Default | None |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |
| route-map-name | Identifier of a configured route map. The route map should be examined to filter the networks to be advertised/received. |
| In | Applies route map to incoming routes. |
| out | Applies route map to outgoing routes. |
neighbor route-reflector-client
This command is used to configure an internal peer as an IPv4 route reflector client. Configuring the first route reflector client automatically makes this router a route reflector. If you configure multiple route reflectors within a cluster, you must configure each route reflector in the cluster with the same cluster ID. Use the bgp cluster-id command to configure a cluster ID. An external peer may not be configured as a route reflector client.
When reflecting a route, BGP ignores the set statements in an outbound route map to avoid causing the receiver to compute routes that are not inconsistent with other routers in the AS.
To remove a route map, use the no form of this command.
| Default | Peers are not route reflector clients |
| Format |
|
| Mode |
Router BGP Config Mode IPv6 Address Family Config Mode IPv4 VRF Address Family |
| Fields | Definition |
|---|---|
| ipv4-address | IPv4 address of the neighboring router. |
| ipv6-address | IPv6 address of the neighboring router. Not support under IPv4 VRF address family mode. |
| Interface | If the neighbor’s IPv6 address is a link local address, the local interface must be specified as well. Not support under IPv4 VRF address family mode. |
| autodetect interface | The routing interface on which the neighbor’s IPv6 link local address is auto detected. |