![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/c/f9/cf9abe3c-cbdc-4cee-9477-3b670eb02cf4/cf9abe3c-cbdc-4cee-9477-3b670eb02cf4-bg2ca.png)
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
710
create iproute
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.
Parameters
default - Create an IP default route (0.0.0.0/0).
network_address - The IP address and net mask of the destination of the route. The address
and the mask can be set by the traditional format (for example, 10.1.2.3/255.0.0.0 or in CIDR
format, 10.1.2.3/16).
null0 - Specify null interface as the next hop.
ipaddr - The IP address for the next hop router.
metric - The default setting is 1.
primary - Specify the route as the primary route to the destination.
backup - Specify the route as the backup route to the destination.
weight - Specify the route as the static multipath route. The default setting is 1.
One route’s weight will determine its ratio when used by data packets forwarding to one
destination.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To add a floating static route and a static multipath route:
DGS-3627:admin# create iproute 10.48.74.121/255.0.0.0 10.1.1.254 primary
Command: create iproute 10.48.74.121/8 10.1.1.254 primary
Success.
DGS-3627:admin# create iproute 11.53.73.131/8 10.1.2.11 weight 2
Command: create iproute 11.53.73.131/8 10.1.2.11 weight 2
Success.
delete iproute default
Purpose Used to delete an IP route entry from the switch’s IP routing table.
Syntax
delete iproute [default | <network_address>] [null0 | <ipaddr>]
Description Use this command to delete an IP static route.
Parameters
default - Deletes an IP default route (0.0.0.0/0).
network_address - The IP address and net mask of the destination of the route. The address
and the mask can be set by the traditional format (for example, 10.1.2.3/255.0.0.0 or in CIDR
format, 10.1.2.3/16).
null0 - Specify null interface as the next hop.
ipaddr - Specify the next hop IP address of the route need to be deleted.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To delete an IP static route: