xStack® DGS-3620 Series Layer 3 Managed Stackable Gigabit Switch CLI Reference Guide
245
Chapter 18
Common Unicast
Routing Command List
config route preference
[static | default | rip | ospfIntra | ospfInter | ospfExt1 | ospfExt2 | ebgp |
ibgp] <value 1-999>
show route preference
{[local | static | default | rip | ospf | ospfIntra | ospfInter | ospfExt1 |
ospfExt2 | ebgp | ibgp]}
create route redistribute dst ospf src
[static | rip | bgp | local] {mettype [1 | 2] | metric <value 0-
16777214>}
config route redistribute dst ospf src
[static | rip| bgp | local] {mettype [1 | 2] | metric <value 0-
16777214>}(1)
create route redistribute dst rip src
[local | static | bgp | ospf [all | internal | external | type_1 |
type_2 | inter+e1 | inter+e2]] {metric <value 0-16>}
config route redistribute dst rip src
[local | static | bgp | ospf [all | internal | external | type_1 |
type_2 | inter+e1 | inter+e2]] {metric <value 0-16>}
create route redistribute dst bgp src
[static | local | rip | ospf [all | internal | external | type_1 |
type_2 | inter+e1 | inter+e2]] {metric <uint 0-4294967295> | route_map <map_name 16>}
config route redistribute dst bgp src
[static | rip | local | ospf [all | internal | external | type_1 |
type_2 | inter+e1 | inter+e2]] {metric <uint 0-4294967295> | [route_map <map_name 16> |
no_route_map]}
delete route redistribute
[dst [rip | ospf | bgp] src [rip | static | local | ospf | bgp]]
show route redistribute
{dst [rip | ospf | bgp] | src [rip | static | local | ospf | bgp]}
18-1
config route preference
Description
This command is used to configure the route type 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 |
ebgp | ibgp] <value 1-999>
Parameters
static
- Configure the preference of static route.
default
- Configure the preference of default route.
rip
- Configure the preference of RIP route.
ospfIntra
- Configure the preference of OSPF intra-area route.
ospfInter
- Configure the preference of OSPF inter-area route.
ospfExt1
- Configure the preference of OSPF external type-1 route.
ospfExt2
- Configure the preference of OSPF external type-2 route.
ebgp
- Configure the preference of BGP AS-external route.
(EI Mode Only Parameter)
ibgp
- Configure the preference of BGP AS-internal route.
(EI Mode Only Parameter)
<value 1-999>
- Enter the route preference value here. This value must be between 1 and 999.