xStack DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
350
config route preference
Purpose
Used to configure the route preference of each route type.
Syntax
config route preference [static | rip | ospfIntra | ospfInter |
ospfExt1 | ospfExt2] <value 1-999>
Description
This command is used to set the route preference value for each
routing protocol listed. A lower value will denote a better chance that
the specified protocol is the best path for routing packets.
Parameters
The user may set a preference value for a specific route by first
choosing one of the following and then adding an alternate
preference value:
•
static
– Choose this parameter to configure the preference
value for the
static
route.
•
rip
- Choose this parameter to configure the preference
value for the
RIP
route.
•
ospfIntra
- Choose this parameter to configure the
preference value for the
OSPF Intra-area
route.
•
ospfInter
- Choose this parameter to configure the
preference value for the
OSPF Inter-area
route.
•
ospfExtT1
- Choose this parameter to configure the
preference value for the
OSPF AS External route type-1
route.
•
ospfExtT2
- Choose this parameter to configure the
preference value for the
AS External route type-2
route.
<value 1-999>
- Enter a value between 1 and 999 to set the route
preference for a particular route. The lower the value, the higher the
chance the specified protocol will be chosen as the best path for
routing packets.
Restrictions Only
administrator-level
and operator-level users can issue this
command.
Example usage:
To configure the route preference value for RIP as 50:
DGS-3627:5#config route preference rip 50
Command: config route preference rip 50
Success.
DGS-3627:5#
show route preference
Purpose
Used to display the route preference of each route type.
Syntax
show route preference {[local | static | rip | ospfIntra | ospfInter |
ospfExt1 | ospfExt2]}
Description
This command will display the Route Preference Settings table. The
user may view all route preference settings by entering the
command without any parameters or choose a specific type by
adding the route parameter to the command.
Parameters
local
– Enter this parameter to view the route preference settings for
the
local
route.
static
- Enter this parameter to view the route preference settings for
the
static
route.