Users Guide

Table Of Contents
Parameters number Enter a number to assign to routes as the degree of preference for those routes. When
routes compare, the route with the higher degree of preference or the local preference value is most
preferred, from 1 to 4294967295.
Default 100
Command Mode ROUTER-BGP
Usage
Information
All routers apply this command setting within the AS. The no version of this command deletes local
preference value.
Example
OS10(conf-router-bgp-1)# default local-preference 200
Supported
Releases
10.3.0E or later
ebgp-multihop
Allows eBGP neighbors on indirectly connected networks.
Syntax
ebgp-multihop hop count
Parameters hop count Enter a value for the number of hops, from 1 to 255.
Default 1 for eBGP. 255 for iBGP.
Command Mode ROUTER-NEIGHBOR
Usage
Information
This command avoids installation of default multihop peer routes to prevent loops and creates neighbor
relationships between peers. Networks indirectly connected are not valid for best path selection. The no
version of this command removes multihop session.
Example
OS10(conf-router-neighbor)# ebgp-multihop 2
Supported
Releases
10.3.0E or later
enforce-first-as
Enforces the first AS in the AS path of the route received from an EBGP peer to be the same as the configured remote AS.
Syntax
enforce-first-as
Parameters None
Default Enabled
Command Mode ROUTER-BGP
Usage
Information
To verify statistics of routes rejected, use the show ip bgp neighbors command. If routes are
rejected, the session is reset. In the event of a failure, the existing BGP sessions flap. For updates
received from EBGP peers, BGP ensures that the first AS of the first AS segment is always the AS of the
peer, otherwise the update drops and the counter increments. The no version of this command turns off
the default.
NOTE: To configure these settings for a non default VRF instance, you must first enter the
ROUTER-CONFIG-VRF sub mode using the following commands:
1. Enter the ROUTER BGP mode using the router bgp as-number command.
2. From the ROUTER BGP mode, enter the ROUTER BGP VRF mode using the vrf vrf-name
command.
Example
OS10(conf-router-bgp-1)# enforce-first-as
626 Layer 3