Set ip next-hop, Set local-preference – Enterasys Networks X-Pedition XSR CLI User Manual
Page 314
BGP Set Commands
6-118 Configuring the Border Gateway Protocol
XSR(config)#router bgp 100
XSR(config)#bgp dampening route-map 1
set ip next-hop
This command specifies where to output packets that pass a match clause of a route map for
policy routing. It modifies the value of the next hop attribute in a BGP routing update message.
The next‐hop attribute identifies the next hop to reach a route. Next‐hop for an EBGP session is the
IP address of the BGP neighbor that announced the route. Next‐hop for IBGP sessions is either the
BGP neighbor that announced the route (for routes that originate inside the AS) or the BGP
neighbor from which the route was learned (for routes injected into the AS via EBGP).
Syntax
set ip next-hop value
Syntax of the “no” Form
The no form of this command removes the next hop value:
no set ip next-hop value
Mode
Route‐map configuration:
XSR(config-route-map)#
Example
The following example sets the IP next hop attribute in the BGP update which matches 10.0.0.0
255.0.0.0 to 1.2.3.4:
XSR(config)#access-list 10 permit 10.0.0.0 255.0.0.0
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match ip address 10
XSR(config-route-map)#set ip next-hop 1.2.3.4
set local-preference
This command modifies the value of the local preference attribute in a BGP routing update
message. This parameter impacts the BGP route selection process for traffic leaving an AS. Be sure
that a match clause has been specified.
Local preference indicates priority given to a particular route when more than one route exists to
the same destination. A higher local preference indicates a more preferred route. Local preference
is local to this autonomous system and is exchanged only with IBGP peers.
Syntax
set local-preference value
value
The next hop IP address.
value
Preference value, ranging from 0 to 2147483647.