To instruct the Enhanced Interior Gateway Routing Protocol (EIGRP) process to use the local IP address as the next-hop address when advertising these routes, use the ip next-hop-self eigrp command. To use the received next-hop value, use the no form of this command.
ip next-hop-self eigrp instance-tag
no ip next-hop-self eigrp instance-tag
instance-tag
|
Name of the EIGRP instance. The
instance-tag
can be any case-sensitive, alphanumeric string up to 20 characters.
|
EIGRP always sets the IP next-hop value to be itself.
Interface configuration mode
Release
|
Modification
|
---|---|
5.0(3)N1(1)
|
This command was introduced.
|
EIGRP, by default, sets the IP next-hop value to be itself for routes that it is advertising, even when advertising those routes on the same interface from which the router learned them. To change this default, you must use the no ip next-hop-self eigrp command to instruct EIGRP to use the received next-hop value when advertising these routes.
This example shows how to change the default IP next-hop value and instruct EIGRP to use the received next-hop value:
Command
|
Description
|
---|---|
copy running-config startup-config
|
Saves the configuration changes to the startup configuration file.
|
show ip eigrp
|
Displays EIGRP information.
|