User Manual

Table Of Contents
NETGEAR M4500 Series Switches CLI Command Reference Manual 803
Format neighbor {<ipv6-address> | autodetect interface <slot/port>} rfc5549-support
no neighbor {<ipv6-address> | autodetect interface <slot/port>} rfc5549-support
Default Enabled
Mode BGP Router Configuration Mode
6.10.2.45. distance
This command is used to set the preference (also known as administrative distance) of BGP routes to specific
destinations. Up to 128 instances of this commands are allowed. If a distance command is configured that
matches an existing distance commands prefix and wildcard mask, the new command replaces the existing
command. There can be overlap between the prefix and wildcard mask configured for different commands.
When there is overlap, the command whose prefix and wildcard mask are the longest match for a neighbors
address is applied to routes from that neighbor.
An ECMP routes distance is determined by applying distance commands to the neighbor that provided the best
path.
The change to the BGP distances does not affect existing routes. To apply a distance change to existing routes,
you must force the routes to be deleted from the routing table and relearned, either by resetting the peers from
which the routes are learnt or by disabling and re-enabling BGP.
To return to the default values, use the no form of this command.
Format distance <1-255> [<peer-range> <wildcard-mask>] [prefix-list]
no distance <1-255> [<peer-range> <wildcard-mask>] [prefix-list]
Default BGP assigns preference values according to the distance bgp command, unless overridden for specific
neighbors or prefixes by this command
Mode Router BGP Config Mode
Fields
Definition
ipv6-address
IPv6 address of the neighboring router.
Autodetect interface
<slot/port>
The routing interface on which the neighbors link local IPv6 address is auto
detected.
Fields
Definition
1-255
The preference value for matching routes. The range is from 1 to 255.
peer-range, wildcard-mask
Routes learned from BGP peers whose address falls within this prefix are assigned
the configured preference value. The wildcard-mask is an inverted network mask
whose 1 bits indicate the dont care portion of the prefix.
prefix-list
A prefix list can optionally be specified to limit the preference value to a specific
set of destination prefixes learned from matching neighbors.