D-Link xStackTM DGS/DXS-3300 Series User Manual

Page of 362
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
 
 
 
343
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 users can issue this command. 
Example usage: 
 
To configure the route preference value for RIP as 50: 
DGS-3324SRi:4#config route preference rip 50 
Command: config route preference rip 50 
 
Success. 
 
DGS-3324SRi:4# 
 
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.