xStack
®
DGS-3120 Series Layer 3 Managed Gigabit Ethernet Switch CLI Reference Guide
872
Chapter 89
Routing Command List
create iproute [default | <network_address>] [<ipaddr> {<metric 1-65535>} {[primary | backup |
weight <value 1-4>]} | null0 | ip_tunnel <tunnel_name 12>]
delete iproute [default | <network_address>] [<ipaddr> | null0 | ip_tunnel <tunnel_name 12>]
show iproute {[<network_address> | <ipaddr>]} {[static | rip | ospf | hardware]}
config route preference [static | default | rip | ospfIntra | ospfInter | ospfExt1 | ospfExt2] <value 1-
999> (RI Mode Only)
create route redistribute dst ospf src [local | static | rip] {mettype [1 | 2] | metric <value 0-
16777214> | route_map <map_name 16>} (RI Mode Only)
config route redistribute dst ospf src [local | static | rip] {mettype [1 | 2] | metric <value 0-
16777214> | [route_map <map_name 16> | no_route_map]} (RI Mode Only)
delete route redistribute dst ospf src [local | static | rip] (RI Mode Only)
create route redistribute dst rip src [local | static | ospf [all | internal | external | type_1 | type_2 |
inter+e1 | inter+e2]] {metric <value 0-16> | route_map <map_name 16>} (RI Mode Only)
config route redistribute dst rip src [local | static | ospf [all | internal | external | type_1 | type_2 |
inter+e1 | inter+e2]] {metric <value 0-16> | [route_map <map_name 16> | no_route_map]}
delete route redistribute dst rip src [local | static | ospf] (RI Mode Only)
show route redistribute (RI Mode Only)
show route redistribute dst ospf {src [local | static | rip]} (RI Mode Only)
show route redistribute dst rip {src [local | static | ospf]} (RI Mode Only)
config ecmp algorithm {ip_destination | [ip_source | crc_low | crc_high] | tcp_udp_port} (RI
Mode Only)
show ecmp algorithm (RI Mode Only)
show ipfdb {[ip_address <ipaddr> | interface <ipif_name 12> | port <port>]}
show route preference {[local | static | default | rip | ospf | ospfIntra | ospfInter | ospfExt1 |
ospfExt2]} (RI Mode Only)
enable ecmp ospf (RI Mode Only)
disable ecmp ospf (RI Mode Only)
89-1 create iproute
Description
This command is used to create an IP static route.
Selecting “primary” or “backup” means the newly created route is a floating static route.
If none of the following, “primary” or “backup”, is selected, the default route will:
1. be primary if there is no primary route that has the same destination;
2. be backup if there has been a primary route that has the same destination.
3. fail to create if there have been a primary route and a backup route that have the same
destination.
4. fail to create if there has been one static multipath route that has the same destination.
It will fail if a user wants to create a floating static route and there has been one static multipath
route with the same destination.
It will fail if a user wants to create a static multipath route and there has been a floating static route,
whether primary or backup.