Specifications

Table Of Contents
Multiprotocol Label Switching Commands
bgp next-hop
MP-15
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
bgp next-hop
To configure a loopback interface as the next hop for routes associated with a VPN routing and
forwarding instance (VRF), use the bgp next-hop command in VRF configuration mode. To return the
router to default operation, use the no form of this command.
bgp next-hop loopba
ck number
no bgp next-hop
Syntax Description
Defaults The IP address of the source interface, from which the route was advertised is set as the next hop when
th
is command is not enabled.
Command Modes VRF configuration
Command History
Usage Guidelines The bg
p next-hop command is used in Multiprotocol Label Switching (MPLS) Virtual Private Network
(VPN) and Tunnel Engineering (TE) configurations. This command allows you to configure a loopback
interface as the next hop for routes that are associated with the specified VRF. This command can be
used, for example, to configure VPN traffic to use a specific Label Switched Path (LSP) through an
MPLS core network.
Examples In the following example, loopback interface 0 is configured as the next hop for VPN traffic associated
wi
th VRF RED:
Router(config)# ip vrf RED
Router(config-vrf)# rd 40000:1
Router(config-vrf)# route-target import 40000:2
Router(config-vrf)# route-target export 40000:2
Router(config-vrf)# bgp next-hop loopback 0
Related Commands
loopback
nu
mber
Specifies the number of the loopback interface. The value that can be entered for
this argument is a number from 1 to 2147483647.
Release Modification
12.2(13)T This command was introduced.
Command Description
ip vrf Configures a VRF routing table.
show ip vrf Displays the set of defined VRFs and associated interfaces.