To do...
Use the command...
Remarks
Enter global configuration context
configuration
Enter BGP context
bgp
as-number
Configure preferences for external,
internal, local routes
preference {
external-
preference
internal-
preference
local-
preference
}
Optional. The default preferences of
external, internal, and local routes
are 20, 200, and 200 respectively.
Configure weight to be assigned to
received routes from a peer
neighbor {
ip-address
}
weight {
weight
}
Optional
Specify the router as the next hop of
routes sent to a peer
neighbor {
ip-address
}
next-hop-self
Optional. By default, advertisements
to an eBGP peer take the router as
the next hop, while advertisements
to an iBGP peer do not take the
local router as the next hop.
Configure the AS_PATH attribute:
Configure repeating times of local
AS number in routes from a peer
neighbor {
ip-address
}
allow-as-in [
number
]
Optional. The local AS number
cannot be repeated in routes from
the peer.
Specify a fake AS number for a peer
neighbor {
ip-address
}
local-as
as-number
Optional. Not specified by default
This command is only applicable to
an eBGP peer.
Substitute local AS number for the
AS number of a peer in the
AS_PATH attribute
neighbor {
ip-address
} as-
override
Optional. The substitution is not
configured by default.
Configure BGP to not keep private
AS numbers in the AS_PATH
attribute of updates to a peer
neighbor {
ip-address
}
remove-private-as
Optional. By default, BGP updates
carry private AS numbers.
Chapter 17 Border Gateway Protocol (BGP)
383