To create a virtual routing and forwarding instance (VRF) and enter
VRF configuration mode, use the
vrf router BGP configuration command. To
remove a VRF entry, use the
no form of this command.
vrf context {name | management}
no vrf context {name | management}
Syntax Description
name
|
Name of the VRF. The
name can be any case-sensitive, alphanumeric string up
to 32 characters.
|
management
|
Specifies a configurable VRF name.
|
Command Default
This command has no default settings.
Command Modes
Neighbor address-family configuration
Router bgp configuration
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
The VRF does not become active until you create an identically named
VRF in global configuration mode.
When you enter the VRF configuration mode, the following commands are
available:
- address-family —Configures an
address-family. See the
address-family
(BGP) command for additional information.
- cluster-id
{cluster-id |
cluster-ip-addr } —Configures the Route
Reflector Cluster-ID (router, vrf). Range: 1 to 4294967295. You can enter the
cluster identification as a 32-bit quantity or as an IP address. To remove the
cluster ID, use the
no form of this command. Together, a route
reflector and its clients form a cluster. When a single route reflector is
deployed in a cluster, the cluster is identified by the router ID of the route
reflector.
The
cluster-id command is used to assign a
cluster ID to a route reflector when the cluster has one or more route
reflectors. Multiple route reflectors are deployed in a cluster to increase
redundancy and avoid a single point of failure. When multiple route reflectors
are configured in a cluster, the same cluster ID is assigned to all route
reflectors. This allows all route reflectors in the cluster to recognize
updates from peers in the same cluster and reduces the number of updates that
need to be stored in BGP routing tables.
Note |
All route reflectors must maintain stable sessions between all
peers in the cluster. If stable sessions cannot be maintained, then overlay
route reflector clusters should be used instead (route reflectors with
different cluster IDs).
|
- exit —Exits from the current command mode.
- graceful-restart —Configure Graceful
Restart functionality. See the
graceful-restart
(BGP) command for additional information.
- graceful-restart-helper —Configure
Graceful Restart Helper mode functionality. See the
graceful-restart
(BGP) command for additional information.
- log-neighbor-changes —Enables logging of
the BGP neighbor resets. To disable the logging of changes in BGP neighbor
adjacencies, use the
no form of this command. The
log-neighbor-changes command enables
logging of BGP neighbor status changes (up or down) and resets for
troubleshooting network connectivity problems and measuring network stability.
Unexpected neighbor resets might indicate high error rates or high packet loss
in the network and should be investigated.
Using the
log-neighbor-changes command to enable status
change message logging does not cause a substantial performance impact, unlike,
for example, enabling per BGP update debugging. If the UNIX syslog facility is
enabled, messages are sent to the UNIX host running the syslog daemon so that
the messages can be stored and archived. If the UNIX syslog facility is not
enabled, the status change messages are retained in the internal buffer of the
router, and are not stored to disk. You can set the size of this buffer, which
is dependent upon the available RAM, using the
logging
buffered command.
The neighbor status change messages are not tracked if the bgp
log-neighbor-changes command is disabled,
except for the reset reason, which is always available as output of the
show
ip
bgp
neighbors and
show
bgp
ipv6
neighbors commands.
The
eigrp
log-neighbor-changes command enables logging of
Enhanced Interior Gateway Routing Protocol (EIGRP) neighbor adjacencies, but
messages for BGP neighbors are logged only if they are specifically enabled
with the bgp
log-neighbor-changes command.
Use the
show
logging
command to display the log for the BGP neighbor
changes.
- neighbor —Configures a BGP neighbor. See
the
neighbor command for additional
information.
- no —Negates a command or set its defaults
- router-id
ip-addr —Specifies the IP address to use as
the router-id.
- timers
bestpath-timeout —Configures the bestpath timeout
in seconds. Range: 1 to 3600. Default: 300.
Examples
The following command shows how to enter VRF configuration mode:
switch(config)# router bgp 64496
switch(config-router)# vrf context management
switch(config-router-vrf)#
This example shows how to set the local router as one of the route
reflectors serving the cluster. You configure the cluster ID to identify the
cluster.
switch(config)# router bgp 64496
switch(config-router)# neighbor 192.168.70.24 route-reflector-client
switch(config-router)# cluster-id 10.0.1.2