next-hop-self

To set the IP address of the router as the next hop address, use the next-hop-self command. To revert to the default configuration, use the no form of this command.

next-hop-self

no next-hop-self

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

BGP neighbor address-family configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

This command requires a LAN Enterprise Services license.

Examples

This example shows how to configure the IP address of a router as the next-hop address:

switch# configure terminal
switch(config)# router bgp 102
switch(config-router)# neighbor 192.168.1.3 remote-as 64497
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# next-hop-self
switch(config-router-neighbor-af)#
 

Related Commands

Command
Description
address-family (BGP neighbor)
Enters the BGP neighbor address-family configuration mode.
feature bgp
Enables BGP.
show ip bgp
Displays BGP configuration information.