
Configuring IP Exterior Gateway Protocols (BGP and EGP)
4-12
308628-14.00 Rev 00
For example, the following command line configures a static route to destination
3.2.4.5/255.255.0.0 with default values for static route parameters. The next-hop
address is 2.2.2.4, and the cost is set to 4 hops.
ip#
static-route address 3.2.4.5 mask 255.255.0.0 next-hop-address 2.2.2.4
static-route/3.2.4.5/255.255.0.0/2.2.2.4# cost 4
static-route/3.2.4.5/255.255.0.0/2.2.2.4#
cost 1 (default) to 12 Specifies the number of router hops a
datagram can traverse before reaching the
destination IP address. The IP router uses
the cost value when determining the best
route for a datagram to follow. If you have
enabled ECMP on the router (for
information, see “
Enabling Equal-Cost
Multipath Support” on page 4-5), you can
configure up to 12 equal-cost static routes.
preference 1 (default) to 16 Specifies a weighted value (from 1 to 16,
with 16 being the most preferred) that the IP
router uses to select a route when its
routing tables contain multiple routes to the
same destination.To configure a black hole
static route, enter the maximum preference
value
.
Table 4-1. BCC Static Route Parameters
(continued)
Parameter Values/Defaults Meaning/Instructions
Commenti su questo manuale