®
xStack
DGS-3120 Series Layer 3 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3120-24TC:admin# show iproute
Command: show iproute
Routing Table
IP Address/Netmask
------------------
10.1.1.0/24
192.168.1.0/24
Total Entries : 2
DGS-3120-24TC:admin#
89-4
config route preference (RI Mode Only)
Description
This command is used to configure the route preference. The route with smaller preference has
higher priority. The preference for local routes is fixed to 0.
Format
config route preference [static | default | rip | ospfIntra | ospfInter | ospfExt1 | ospfExt2]
<value 1-999>
Parameters
static - Configure the preference of static route. The default value is 60.
default - Configure the preference of default route. The default value is 1.
rip - Configure the preference of RIP route. The default value is 100.
ospfIntra - Configure the preference of OSPF intra-area route. The default value is 80.
ospfInter - Configure the preference of OSPF inter-area route. The default value is 90.
ospfExt1 - Configure the preference of OSPF external type-1 route. The default value is 110.
ospfExt2 - Configure the preference of OSPF external type-2 route. The default value is 115.
<value 1-999> - Specify the value of the preference.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To configure the route preference for static routes to 70:
DGS-3120-24TC:admin#config route preference static 70
Command: config route preference static 70
Success.
DGS-3120-24TC:admin#
Gateway
Interface
---------------
------------
0.0.0.0
System
0.0.0.0
ip1
875
Cost
Protocol
--------
--------
1
Local
1
Local