Users Guide

Layer 3 Routing Commands 1312
neighbor next-hop-self (BGP Router
Configuration)
The neighbor next-hop-self command configures 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.
Syntax
neighbor { ip-address | ipv6-address [ interface interface-id ]} next-hop-self
no neighbor { ip-address | ipv6-address [ interface interface-id ]} next-hop-
self
ip-addressThe neighbor’s IPv4 address.
ipv6-address [ interface interface-id ] – The neighbor’s IPv6 address. If the
neighbor’s IPv6 address is a link local address, the local interface must also
be specified.
Default Configuration
This is not enabled by default.
Command Mode
BGP Router Configuration mode
User Guidelines
When the next hop attribute in routes from external peers is retained,
internal peers must have a route to the external peer’s IP address. This is
commonly done by configuring the IGP on the border router to advertise the
external (or “DMZ”) subnet. The next-hop-self option eliminates the need to
advertise the external subnet in the IGP. The neighbor next-hop-self
command sets the next hop for all routes sent to a neighbor. The VLAN
interface must also be specified if a link-local address is specified.
Command History
Introduced in version 6.2.0.1 firmware.